How to increase audio volume of AVI WITHOUT re-encoding?

Started by pstein, October 29, 2013, 02:20:43 PM

Previous topic - Next topic

pstein

Occasionally I got AVI videos with a rather low audio volume. The audio is stored in a MP3 track.

Ok, I could re-ecnode the whole AVI vieo with a (much) higher volumen but I want to avoid re-encoding.

Is there a way to just change a header field or volume level indicator but leave the audio track (almost) untouched?

Does this work in Avidemux?

Peter


zakk


styrol

Quote from: pstein on October 29, 2013, 02:20:43 PM
Is there a way to just change a header field or volume level indicator but leave the audio track (almost) untouched?
Use FFmpeg and the following parameter to gain e.g. 10dB:
ffmpeg -i inputfile.avi -c copy -af "volume=10dB" -y outputfile.avi

pstein

Quote from: styrol on October 30, 2013, 08:13:44 PM
Use FFmpeg and the following parameter to gain e.g. 10dB:
ffmpeg -i inputfile.avi -c copy -af "volume=10dB" -y outputfile.avi

Interesting. Thank you. However I tried it out with big values but found NO difference in results.
I tried e.g.

ffmpeg -i inputfile.avi -c copy -af "volume=30dB" -y outputfile.avi
and
ffmpeg -i inputfile.avi -c copy -af "volume=3" -y outputfile.avi

On tutorial site I found a slightliy different syntax:

ffmpeg -i inputfile.avi -vcodec copy -af "volume=10dB" -y outputfile.avi

Whats the difference?

Is "-c copy" equal to "-vcodec copy  -acodec copy"?


styrol

Quote from: pstein on November 02, 2013, 12:38:58 PM
Is "-c copy" equal to "-vcodec copy  -acodec copy"?
Yep, "-c copy" means "copy codecs (both audio and video)"