[FFmpeg-user] Change Volume of a Track Without Affecting Other Tracks
Brandon A. Olivares
brandon at cocreationcoaching.org
Fri Jan 6 19:05:02 EET 2017
I'm trying to basically take a main audio track (podcast), and add an intro and outro to it. However, the music is very loud, so I need to turn down the volume.
However, when I use the volume filter on the intro/outro tracks, I notice that the main audio track is also lower than in the original audio.
Here's the command I'm using right now:
ffmpeg -i ccyl011-audio.mp3 -i ambient_travel_stinger.wav -i ambient_travel_stinger.wav -filter_complex "[0:a]adelay=4600,apad,aformat=sample_fmts=fltp:sample_rates=44100:channel_layouts=stereo[audio];[1:a]volume=0.15:precision=fixed,apad,aformat=sample_fmts=fltp:sample_rates=44100:channel_layouts=stereo[intro];[2:a]volume=0.15:precision=fixed,adelay=2354600,aformat=sample_fmts=fltp:sample_rates=44100:channel_layouts=stereo[outro]; [audio][intro][outro]amerge=inputs=3,pan=stereo|c0<c0+c2+c4:c1<c1+c3+c5[out]" -map "[out]" -c:a libmp3lame -q:a 4 ccyl011.mp3
Any suggestions would be much appreciated.
More information about the ffmpeg-user