ffmpeg-python icon indicating copy to clipboard operation
ffmpeg-python copied to clipboard

Duration flag

Open blackjam-alex opened this issue 8 years ago • 2 comments

I want to use the duration flag: -t duration

I'm rendering a video using a .png as input, like this:

ffmpeg -loop 1 -framerate 23.98 -t 60 -i "background.png" output.mp4

Is there a way to accomplish this? Thanks for the help.

blackjam-alex avatar May 02 '18 05:05 blackjam-alex

ffmpeg.input('background.png', t=60, framerate=98, loop=1).output('output.mp4').run()

kkroening avatar May 20 '18 07:05 kkroening

It works! Thank you.

blackjam-alex avatar May 20 '18 13:05 blackjam-alex