Log in

View Full Version : FFmpeg (Unix): how to get mp4 with good quality (h.264/AVC,3pass,VBR, more...?)


Doctor_x86
26th December 2009, 23:45
Hello!
Merry Christmas, Friends! :)

What settings need to get the good quality in minimum size (optimized for the web)?

Maybe this is h.264/AVC 3pass,VBR, sophisticated algorithms - subme (1-7), me (dia, hex, umh), more... I do not know the specific parameters and should look like the command line for FFmpeg

Under windows there are many programs, which provide stunning quality at small size.

When encoding ffmpeg with with parameters "-b 768k -ab 64k -ar 44100 -async 1 -r 25 -vcodec libx264 -acodec libmp3lame" I can not get those results :(((

Thanks for advance and sorry for my bad english!

Blue_MiSfit
26th December 2009, 23:51
Does ffmpeg allow access to the same presets / tuning system that x264's CLI now offers? If so, use the slowest preset you can afford in order to maximize quality at a given bitrate. If you need to setup a VBV for streaming, do so! If you can't use the preset system, look at x264.exe's --fullhelp and read the details on each preset, and adapt your ffmpeg command appropriately.

3 pass isn't necessary - ever. 2 passes is always enough.

Basically, the slower the better!

~MiSfit

Dark Shikari
27th December 2009, 00:24
Follow the guide (http://rob.opendot.cl/index.php/useful-stuff/ffmpeg-x264-encoding-guide/).

Blue_MiSfit
28th December 2009, 02:05
Nice link! I didn't know of this!

~MiSfit

Doctor_x86
30th December 2009, 09:49
thanks! will try