Skip to content

Commit 7b0115a

Browse files
committed
Only map video for thumbnail extract command
1 parent 472d0be commit 7b0115a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ff-utils-winforms/Media/FfmpegExtract.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -304,7 +304,7 @@ public static async Task ExtractSingleFrameAtTime(string inputFile, string outpu
304304
Size res = await GetMediaResolutionCached.GetSizeAsync(inputFile);
305305
string vf = res.Height > maxH ? $"-vf scale=-1:{maxH.RoundMod(2)}" : "";
306306
string noKeyArg = noKey ? "-skip_frame nokey" : "";
307-
string args = $"{noKeyArg} -ss {skipSeconds} -i {inputFile.Wrap()} -vframes 1 {pixFmt} {vf} {outputPath.Wrap()}";
307+
string args = $"{noKeyArg} -ss {skipSeconds} -i {inputFile.Wrap()} -map 0:v -vframes 1 {pixFmt} {vf} {outputPath.Wrap()}";
308308
await RunFfmpeg(args, LogMode.Hidden);
309309
}
310310

0 commit comments

Comments
 (0)