如何组合这些 FFmpeg 命令?
// Add Pad to video
ffmpeg -i input.mp4 -vf pad=width=100:height=100:x=0:y=0:color=black output.mp4
// Extract image at 10 seconds from the video
ffmpeg -i input.mp4 -ss 00:00:10.000 -vframes 1 output.jpg
// Extract image at 30 seconds from the video
ffmpeg -i input.mp4 -ss 00:00:30.000 -vframes 1 output.jpg
这些命令的文档位于:
FFmpeg图像提取:https://trac.ffmpeg.org/wiki/Create%20a%20thumbnail%20image%20every%20X%20seconds%20of%20the%20video
FFmpeg 垫: https://ffmpeg.org/ffmpeg-filters.html#Examples-73
任何帮助均感激不尽。
答案1
您可以链接输出:
ffmpeg -i input.mp4 -vf pad=width=100:height=100:x=0:y=0:color=black output.mp4
-ss 00:00:10.000 -vframes 1 output1.jpg
-ss 00:00:30.000 -vframes 1 output2.jpg