Activity › Forums › Compression Techniques › FFMPEG: Add black frames at start and end of video
-
FFMPEG: Add black frames at start and end of video
Lou Logan replied 6 years, 8 months ago 6 Members · 22 Replies
-
Lou Logan
October 9, 2019 at 7:47 pm[Andrew Baldinger] “What is that 60 after the -t doing?”
That’s the total output duration. So the output will be 60 seconds in that example. I had to add -t to manually declare an output duration because -shortest isn’t working. This is only needed for the example with audio. The -t value should be input duration + stop_duration.
[Andrew Baldinger] “
ffmpeg -i input -filter_complex "[0:v]tpad=stop_duration=10:color=black[v]" -map "[v]" outputRight?”
That will work assuming you only want video and no audio.
Reply to this Discussion! Login or Sign Up