[FFmpeg-user] Several audio tracks encoding issue

Andrey Aleksandrovich andrey.aleksandrovich at googlemail.com
Sat Apr 6 19:10:22 CEST 2013


I have still no result :(

As it is mentioned there
http://ffmpeg.org/trac/ffmpeg/wiki/Encoding VBR (Variable Bit Rate) mp3 audio
the parameter -q:a:1 5 tells encoder (libmp3lame) to use "audio
quality" at value 5, which means ~120-150Kbps VBR.
But, the command:

$ ffmpeg -i v.avi -i a1.wav -i a2.wav -map 0:0 -map 1:0 -map 2:0
-q:v:0 3 -q:a:0 5 -q:a:1 5 final.avi

generates bad second audio track (32Kbps, instead of specified quality setting).
What's wrong? How to set this correctly?

On 4/2/13, Andrey Aleksandrovich <andrey.aleksandrovich at googlemail.com> wrote:
> Ok, will try. Thanks.
>
> On 4/2/13, Carl Eugen Hoyos <cehoyos at ag.or.at> wrote:
>> Andrey Aleksandrovich writes:
>>
>>> localhost $ ffmpeg -i v.avi -i a1.wav -i a2.wav -map 0:0
>>> -map 1:0 -map 2:0 -c:v mpeg4 -qscale:v:0 3 -c:a:0 libmp3lame
>>> -qscale:a:0 4 final.avi -c:a:1 libmp3lame -qscale:a:1 4 -newaudio
>>
>> The newaudio option was dropped years ago, map is sufficient now.
>> Note that options after an output file name have no effect on
>> the output file - in your case "-c:a:1 libmp3lame".
>> (Does qscale really work for lame?)
>>
>>> ffmpeg version 0.10.3 Copyright (c) 2000-2012 the FFmpeg developers
>>
>> Please update to current git head, 0.10 is
>> quite outdated.
>>
>> Carl Eugen
>>
>> _______________________________________________
>> ffmpeg-user mailing list
>> ffmpeg-user at ffmpeg.org
>> http://ffmpeg.org/mailman/listinfo/ffmpeg-user
>>
>


More information about the ffmpeg-user mailing list