简体   繁体   中英

FFmpeg adding blank frames

I'm using this command to generate a video given a set of frames and audio:

ffmpeg -y -i index%2d.jpg -i audio.mp3 -acodec copy -vcodec mjpeg -s 1680x1050 -aspect 16:9 result.avi

It works amazing, the thing is, what if I have a gap in the index?

Or the other way around, I don't have a gap, but WANT a gap, ie blanks frames in the output video.

Given this command and either (whatever option is the best) of not gapped images index or gapped to generate a video with a gap?

Example: I have im1.jpg img2.jpg and i want to generate im1.jpg blank, blank im2.jpg (4 frames) IT IS AN EXAMPLE, I DO NOT WANT A 4 FRAMES VIDEO :-).

如果您是指全黑或全白,则用空白表示,您可以生成这些图像并将其与需要它们的插槽中的其他图像一起使用!

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM