[FFmpeg-user] Make video from snapshots

Lou lou at lrcd.com
Wed Jan 16 21:21:52 CET 2013


On Wed, 16 Jan 2013 11:44:59 +0100
Joana Moll <joanamoll at gmail.com> wrote:

> Hi Anders,
> 
> I did something pretty similar about a year ago. Here is the ffmpeg code I
> am using:
> 
> ffmpeg -y -r 7 -i ".folder path."img%d.jpg -r 7 -b 1000K -vcodec libx264
> -flags +loop -me_method hex -g 250 -qcomp 0.6 -qmin 10 -qmax 51 -qdiff 4
> -bf 3 -b_strategy 1 -i_qfactor 0.71 -cmp +chroma -subq 8 -me_range 16
> -coder 1 -sc_threshold 40 -flags2
> +bpyramid+wpred+mixed_refs+dct8x8+fastpskip -keyint_min 25 -refs 3 -trellis
> 1  -directpred 1 -partitions -parti8x8-parti4x4-partp8x8-partp4x4-partb8x8
> -threads 0 qt-faststart -y ".folderpath."video.mp4"

Off-topic, but declaring individual libx264 options is not recommended
and you can simply use an encoding preset instead. Also, qt-faststart
is another command-line tool, and not an ffmpeg option. A similar
command to yours would be:

ffmpeg -y -r 7 -i input -c:v libx264 -preset medium -crf 23 \
-movflags faststart output.mp4

I switched -b:v 1000k to -crf 23 to provide maximum compression
effectiveness since you appeared to be using just one pass.

See the FFmpeg and x264 Encoding Guide
https://ffmpeg.org/trac/ffmpeg/wiki/x264EncodingGuide


More information about the ffmpeg-user mailing list