Reputation: 435
I am struggling with this command:
ffmpeg -loop 1 -r 5 -i img_0.jpg -c:v libx264 -preset slow -tune stillimage -crf 24 -t 20 $frame_target
it creates 20 sec video with one image. i need to put more images, so i make this like:
ffmpeg -loop 1 -r 5 -i img_%d.jpg -c:v libx264 -preset slow -tune stillimage -crf 24 -t 20 $frame_target
but this thing create video of 20 sec but images are changing multiple times. basically i want to divide time interval and every image should show ones only.
Upvotes: 0
Views: 3424
Reputation: 435
I found the answer:
ffmpeg -loop 1 -f image2 -r 0.5 -b 1800 -i img_%d.jpg -c:v libx264 -preset slow -tune stillimage -r 5 -t 22 -y output.mp4
here -r 0.5
changes the image after every two seconds and -t
makes the video 22 seconds long.
Thanks Preet
Upvotes: 4