Skip to content

Commit b832b23

Browse files
author
Luis
committed
Modify command line to get the size of video container.
1 parent 5cc8c07 commit b832b23

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Khernet.UI/Khernet.UI.Presentation/Files/MediaHelper.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -271,7 +271,7 @@ public static async Task<Size> GetVideoSize(string fileName)
271271
return await Task.Run(() =>
272272
{
273273
Size videoSize = new Size();
274-
string argument = $"-loglevel error -show_entries stream=width,height -of csv=p=0 \"{fileName}\"";
274+
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}\"";
275275

276276
string result = StartProbeProcess(argument);
277277
string[] stringSize = null;

0 commit comments

Comments
 (0)