-
[ffmpeg] Best settings for quick images @ 720p MP4
Hello everybody,
I am doing some tests to find the best settings to create MP4 files using x264 codec video and MP3 audio at a resolution of 1280×720, regarding quick fluid images (action stories, fast zoomings, quick fadings, etc…).
I am using Ubuntu 12.10 as o.s.Using this particular setting:
ffmpeg -i input_file -vcodec libx264 -s 1280x720 -b 1750k -acodec libmp3lame -ac 2 -ab 160k -threads 4 output_file.mp4I managed to convert this full hd 1920×1080 test video (112MB) of the famous n****a graphic card
ale@beast:~/Scrivania$ ffmpeg -i fullhd_test.mp4
ffmpeg version 0.8.4-6:0.8.4-0ubuntu0.12.10.1, Copyright (c) 2000-2012 the Libav developers
built on Nov 6 2012 16:51:11 with gcc 4.7.2
*** THIS PROGRAM IS DEPRECATED ***
This program is only provided for compatibility and will be removed in a future release. Please use avconv instead.Seems stream 1 codec frame rate differs from container frame rate: 59.83 (29917/500) -> 29.92 (29917/1000)
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'fullhd_test.mp4':
Metadata:
major_brand : mp42
minor_version : 0
compatible_brands: isomavc1mp42
creation_time : 2010-01-07 12:05:03
Duration: 00:04:21.99, start: 0.000000, bitrate: 3427 kb/s
[b]Stream #0.0(und): Audio: aac, 44100 Hz, stereo, s16, 125 kb/s[/b]
Metadata:
creation_time : 2010-01-07 12:05:03
[b]Stream #0.1(und): Video: h264 (High), yuv420p, 1920x1080 [PAR 1:1 DAR 16:9], 3298 kb/s, 29.92 fps[/b], 29.92 tbr, 29917 tbn, 59.83 tbc
Metadata:
creation_time : 2010-01-07 12:05:03
At least one output file must be specified
ale@beast:~/Scrivania$into another one of 64MB (half the size!), without losing significant video quality.
What other thngs could I do to improve it?
I’m using “-threads 4” option ’cause I have a quad-core.