简体   繁体   English

FFmpeg添加空白帧

[英]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 :-). 示例:我有im1.jpg img2.jpg,我想生成im1.jpg空白,空白im2.jpg(4帧)这是一个示例,我不想使用4帧视频:-)。

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

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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