How to convert videos by looping from the directory to images using ffmpeg?

472 Views Asked by At

I'm learning how to do image video conversion using ffmpeg. I know how to convert from 1 video to several frames, but which commands to use to convert several videos into frames?

1

There are 1 best solutions below

3
devcrazy On

Let assume your images are placed in tmp directory and the file names are "1.jpg, 2.jpg, ...."

Then you can use this command

ffmpeg -r [fps] -i tmp/%d.jpg -vcodec mpeg4 -y [video_name]