Ι have an avi file that has different levels of audio. Is there a way to decrease and increase appropriately where needed the audio of my file using ffmpeg?
- Anybody can ask a question
- Anybody can answer
- The best answers are voted up and rise to the top
You can use
Example from the documentation
Make music with both quiet and loud passages suitable for listening to in a noisy environment (whatever that means):
The video is stream copied (re-muxed) in this example since you probably don't want to touch the video.
You can use FFmpeg to adjust the levels in your video files. There is an answer on SU that explains how to do that: http://superuser.com/questions/323119/how-can-i-normalize-audio-using-ffmpeg
As AJ suggests, there may be ffmpeg commands to compress, but I suspect that in any case you'll need to separate the audio and video (demux), operate on the audio, and remux or re-encode. Ffmpeg, AviMux, and other tools can demux and remux most AVIs.
If there are defined sections with different levels, you can manually intervene using something like (free) Audacity to raise the levels of the quiet sections to match the louder ones. A final normalizing step, or even slight compression, could also help.