1 comment
( 147 views )
| permalink
| related link
View road movie
Time lapse movies made with Flix.
To convert avi to flv I use ffmpeg (you can download the latest windows binary here), it's a command line tool, the commands I use for two-pass encoding:
first command (on one line):
ffmpeg.exe -i input.avi -vcodec libx264 -s 448x336 -g 300 -vb 512k -qmin 10 -qmax 51 -pass 1 output.flv
second command is exactly the same, except for '-pass 2'.
where:
-i: input video file
-vcodev: video codec, in this case h.264
-s: size, [width]x[height]
-g: gop (group of pictures) size. 300 means a keyframe each 300 frames
-vb (or -b): video bitrate
-qmin: minimum video quantizer scale
-qmax: maximum video quantizer scale (these two quantizer values makes it possible to get close to the desired video bitrate)
In case you have audio in the avi, add these options:
-acodec: audio codec (libmp3lame is default with flv)
-ab: audio bitrate (e.g. 64k)
-ar: audio sampling frequency (e.g. 22050)
For a complete ffmpeg manual see http://ffmpeg.mplayerhq.hu/ffmpeg-doc.html
Update 2020 (second corona wave)
Luckily I converted to h.264 codec, so conversion to mp4 is lossless.
Now html5 is playing the videos.
Back Next