[FFmpeg-devel] ffmpeg audio volume for multiple audio tracks

Sailaja Mahendrakar smahendrakar at rgbnetworks.com
Fri Nov 2 23:37:36 CET 2012


I have the below query with the usage of audio volume for the multiple audio tracks:

I am using the ffmpeg audio volume for the multiple audio tracks and see that only the last audio track gets the volume applied and not to all the audio tracks.

I have the ffmpeg command line as:

./ffmpeg -i ../TestInput.ts -f mpegts -map 0:1 -codec:a:0 libfaac  -b:a:0 128000 -ar:a:0 48000 -ac:a:0 2 -af:a:0 volume=2.511886 -map 0:2 -codec:a:1 libfaac -b:a:1 96000 -ar:a:1 48000 -ac:a:1 1 -af:a:1 volume=3.981072 ../Volume.ts

I see only the last audio filter is getting initialized. Am I missing something in connecting the 2 filters?

-Sailaja
 
-----Original Message-----
From: Sailaja Mahendrakar
Sent: Friday, November 02, 2012 11:07 AM
To: ffmpeg-devel at ffmpeg.org; 'Nicolas George'
Cc: Don Binford
Subject: RE: ffmpeg audio volume for multiple audio tracks

I am using the ffmpeg audio volume for the multiple audio tracks and see that only the last audio track gets the volume applied and not to all the audio tracks.

I have the ffmpeg command line as:

./ffmpeg -i ../TestInput.ts -f mpegts -map 0:1 -codec:a:0 libfaac  -b:a:0 128000 -ar:a:0 48000 -ac:a:0 2 -af:a:0 volume=2.511886 -map 0:2 -codec:a:1 libfaac -b:a:1 96000 -ar:a:1 48000 -ac:a:1 1 -af:a:1 volume=3.981072 ../Volume.ts

I see only the last audio filter is getting initialized. Am I missing something in connecting the 2 filters?

-Sailaja

-----Original Message-----
From: Nicolas George [mailto:nicolas.george at normalesup.org]
Sent: Friday, November 02, 2012 10:03 AM
To: Sailaja Mahendrakar
Cc: Don Binford
Subject: Re: ffmpeg audio volume for multiple audio tracks

Le nonidi 9 brumaire, an CCXXI, Sailaja Mahendrakar a écrit :
> I was using the ffmpeg audio volume for the multiple audio tracks and 
> see that only the last audio track gets the volume applied.
> 
> I have something like this:
> 
> -codec:a:0 XXX_Encoder -streamid 2:53 -b:a:0 576000 -ar:a:0 48000
> -ac:a:0 6 -af:a:0 volume=2.511886 (gain of about 8 dB)
> -codec:a:1 XXX_Encoder -streamid 3:54 -b:a:1 320000 -ar:a:1 48000
> -ac:a:1 2 -af:a:1 volume=3.981072 (gain of about 12 dB)
> 
> I guess only the last audio filter is getting initialized. Am I 
> missing something in connecting the 2 filters?

I suspect you should be addressing your mail to the ffmpeg-user mailing-list. Note that you will be asked to provide your full command line and not just an excerpt, and the full corresponding console output.

Regards,

--
  Nicolas George


More information about the ffmpeg-devel mailing list