[FFmpeg-user] Recommended x.264 preset for live x.264 encoding

Tom Evans tevans.uk at googlemail.com
Tue Feb 14 11:16:29 CET 2012


On Mon, Feb 13, 2012 at 10:49 PM, Stas Oskin <stas.oskin at gmail.com> wrote:
> Thanks, that seems very useful.
>
> So in order to encode live video for mobiles (iOS and Android), would the
> following settings suffice:
> ffmpeg -i input -c:libx264 -profile:baseline -preset:ultrafast -level 1.2
> (from http://en.wikipedia.org/wiki/H.264/MPEG-4_AVC#Levels)
>
> Thanks.
>

Yes, except using the correct syntax that I had in my email, rather
than the gobbledegook you had. Eg '-c:v libx264', not '-c:libx264',
'-profile:v baseline', not '-profile:baseline' etc. See the example
below again.

BTW when I encode for iphone/ipad I use a higher level than that, Main at L3.0

>> Eg, if you want a video at Main at L3.1, then you can use this:
>>
>> ffmpeg -i input -c:v libx264 -profile:v main -preset:v fast -level 3.1
>>


More information about the ffmpeg-user mailing list