简体   繁体   中英

How to pad video with black frames to a given length with FFmpeg?

I am aware that tpad filter has the stop_duration parameter that adds frames to the end of video. How do I make sure that the resulting video is say 5 seconds in length when the input length is unknown (but less than 5s)?

添加修剪过滤器以限制总持续时间,例如

ffmpeg -i in -vf tpad=stop=-1,trim=end=5 out

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