[ffmpeg] How can I combine hundreds of images into a movie

FFmpeg is a light and complete, cross-platform solution to record, convert and stream audio and video. This software is free and and powerful to use especially when you are about to work with images and videos. There are tons of tutorial you may find on the internet (here, or may be here). As a FFmpeg-beginner I would love to share my experience on combining numerous images in one folder to be compiled into a movie (for example “.avi” format video, etc).

Source of images:

You only need to type this script:

ffmpeg -r 25 -i "imagePath.jpg" -vcodec mjpeg -sameq out.avi

in my case, I execute this script:

ffmpeg -r 25 -i "conditionA_conditionH_%04d.png" -vcodec mjpeg -sameq SURFresult.avi

Video result:

Other script:
Movie ⇒ Image frames †

ffmpeg -i input.mpg -f image2 -vcodec mjpeg (-qscale 1 -qmin 1 -qmax 1) (-ss 1.5 -t 10.5) "imgFrame%06d.jpg"

Movie ⇒ Sound †

ffmpeg -i input.mpg -vn (-ac1) music.wav

Image capture †

ffmpeg -f x11grab -s xga -r 30 -qscale 1 -i :0.0 out.mpg

One response to this post.

  1. full source code for free pls

    Reply

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: