We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5cc8c07 commit b832b23Copy full SHA for b832b23
1 file changed
Khernet.UI/Khernet.UI.Presentation/Files/MediaHelper.cs
@@ -271,7 +271,7 @@ public static async Task<Size> GetVideoSize(string fileName)
271
return await Task.Run(() =>
272
{
273
Size videoSize = new Size();
274
- string argument = $"-loglevel error -show_entries stream=width,height -of csv=p=0 \"{fileName}\"";
+ string argument = $"-v error -hide_banner -of default=noprint_wrappers=1 -print_format csv=p=0 -select_streams v:0 -show_entries stream=width,height \"{fileName}\"";
275
276
string result = StartProbeProcess(argument);
277
string[] stringSize = null;
0 commit comments