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
Posted by phKids on October 18, 2016 at 8:34 am
full source code for free pls