Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Compression Techniques FFMPEG: Add black frames at start and end of video

  • Andrew Baldinger

    October 9, 2019 at 7:16 pm

    What is that 60 after the -t doing?

  • 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]" output

    Right?”

    That will work assuming you only want video and no audio.

Page 3 of 3

We use anonymous cookies to give you the best experience we can.
Our Privacy policy | GDPR Policy