|
1 | | -using System.Diagnostics; |
| 1 | +using System.Diagnostics; |
2 | 2 | using System.Text.Json; |
3 | 3 | using System.Text.Json.Serialization; |
4 | 4 | using FFMpegCore.Arguments; |
@@ -36,7 +36,7 @@ public static async Task<IMediaAnalysis> AnalyseAsync(string filePath, FFOptions |
36 | 36 | public static async Task<IMediaAnalysis> AnalyseAsync(Uri uri, FFOptions? ffOptions = null, CancellationToken cancellationToken = default, |
37 | 37 | string? customArguments = null) |
38 | 38 | { |
39 | | - return await AnalyseCoreAsync(uri.AbsoluteUri, ffOptions, cancellationToken, customArguments).ConfigureAwait(false); |
| 39 | + return await AnalyseCoreAsync(uri.IsFile ? uri.LocalPath : uri.AbsoluteUri, ffOptions, cancellationToken, customArguments).ConfigureAwait(false); |
40 | 40 | } |
41 | 41 |
|
42 | 42 | public static async Task<IMediaAnalysis> AnalyseAsync(Stream stream, FFOptions? ffOptions = null, CancellationToken cancellationToken = default, |
@@ -88,7 +88,7 @@ public static async Task<FFProbeFrames> GetFramesAsync(string filePath, FFOption |
88 | 88 | public static async Task<FFProbeFrames> GetFramesAsync(Uri uri, FFOptions? ffOptions = null, CancellationToken cancellationToken = default, |
89 | 89 | string? customArguments = null) |
90 | 90 | { |
91 | | - return await GetFramesCoreAsync(uri.AbsoluteUri, ffOptions, cancellationToken, customArguments).ConfigureAwait(false); |
| 91 | + return await GetFramesCoreAsync(uri.IsFile ? uri.LocalPath : uri.AbsoluteUri, ffOptions, cancellationToken, customArguments).ConfigureAwait(false); |
92 | 92 | } |
93 | 93 |
|
94 | 94 | public static async Task<FFProbeFrames> GetFramesAsync(Stream stream, FFOptions? ffOptions = null, CancellationToken cancellationToken = default, |
|
0 commit comments