[FFmpeg-user] having trouble encoding mov to mp4 H.264 level 3.0 baseline for HTML5 iOS
James Darnley
james.darnley at gmail.com
Tue Feb 19 13:21:32 CET 2013
On 2013-02-19 13:08, Antony Peiris wrote:
>> 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
You need to run with -pass 1 first then -pass 2
> 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?
There's just 'aac' but that is pretty poor in terms of quality. There
are also other AAC encoder libraries available. It doesn't look like
they were enabled either. If you're going to compile, have a look at
./configure --help to see what is available
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 552 bytes
Desc: OpenPGP digital signature
URL: <http://ffmpeg.org/pipermail/ffmpeg-user/attachments/20130219/1de46ad9/attachment.asc>
More information about the ffmpeg-user
mailing list