[FFmpeg-user] having trouble encoding mov to mp4 H.264 level 3.0 baseline for HTML5 iOS
Antony Peiris
acct_reg at fireslug.com
Tue Feb 19 13:08:14 CET 2013
> Did you try the other one (the first one) I posted?
>
>>>> ffmpeg -y -i in.mov -filter:v scale=640:-1 -c:v libx264 -preset:v
>>>> slow -profile:v baseline -x264opts
>>>> "level=3.0:vbv-maxrate=750:vbv-bufsize=3750:ref=1" -b:v 500k -r:v
>>>> 25/1 -force_fps -movflags faststart -c:a libfaac -b:a 80k -pass X
>>>> out.mp4
Not at first, but I did try now. Initially I got an error about -pass since it is expecting a number and not X. So I changed the command like so:
ffmpeg -y -i in.mov -filter:v scale=640:-1 -c:v libx264 -preset:v
slow -profile:v baseline -x264opts
"level=3.0:vbv-maxrate=750:vbv-bufsize=3750:ref=1" -b:v 500k -r:v
25/1 -force_fps -movflags faststart -c:a libfaac -b:a 80k*-pass 2*
out.mp4
Just to see if it would work. I assume 2 passes? Next, I got the
following error: Unknown encoder 'libfaac'
Does this mean I have to recompile ffmpeg with libfaac, and if so how? I
previously followed these instructions to compile:
http://ffmpeg.org/trac/ffmpeg/wiki/CentosCompilationGuide
Is there a compatible encoder that I can use other than libfaac,
alternatively?
Thank you so much once again!
On 19/02/2013 5:27 PM, James Darnley wrote:
> On 2013-02-19 12:32, Antony Peiris wrote:
>> Thank you, I totally agree that's a lot better. I did not come up with
>> the command myself, had some help.
>>
>>> ffmpeg -y -i in.mov -vf scale=640:-1 -vcodec libx264 -vpreset slow
>>> -vprofile baseline -x264opts
>>> "level=3.0:vbv-maxrate=750:vbv-bufsize=3750:ref=1" -vb 500k -r 25/1
>>> -force_fps -movflags faststart -acodec libfaac -ab 80k -pass X out.mp4
>>
>> Tired what you recommend, but this gave me the following error:
>> Unrecognized option 'vpreset'.
> Did you try the other one (the first one) I posted?
>
>>>> ffmpeg -y -i in.mov -filter:v scale=640:-1 -c:v libx264 -preset:v
>>>> slow -profile:v baseline -x264opts
>>>> "level=3.0:vbv-maxrate=750:vbv-bufsize=3750:ref=1" -b:v 500k -r:v
>>>> 25/1 -force_fps -movflags faststart -c:a libfaac -b:a 80k -pass X
>>>> out.mp4
>
>
>
> _______________________________________________
> ffmpeg-user mailing list
> ffmpeg-user at ffmpeg.org
> http://ffmpeg.org/mailman/listinfo/ffmpeg-user
More information about the ffmpeg-user
mailing list