Quantcast
Channel: VideoHelp Forum
Viewing all articles
Browse latest Browse all 45948

? normalizing audio volume using new ffmpeg options

$
0
0
I gather that ffmpeg "-vol" option is deprecated and ffmepg has new audio options, eg http://ffmpeg.mplayerhq.hu/ffmpeg-filters.html#volume
  • volumedetect
  • volume=volume=+3.1dB

but neither googling nor the ffmpeg documentation show me how to use these new options (in windows) to normalize audio volume.

I hope someone can show me how to do something broadly along the lines:
Code:

ffmpeg -i a.mpg [audio parsing options to establish normalization value]
ffmpeg -i a.mpg [video conversion options] [audio conversion options] -af "volume=+[?normalization increase?]dB" out.mp4

Sample scripts and advice would be most welcome.

... if worst comes to worst, then I guess I will need to extract the audio and normalize in separate steps, similar to
http://superuser.com/questions/32311...o-using-ffmpeg
and
http://1024.gr/blog/normalize-audio-...nd-sox-windows
and use something this to recode/mux the video and normalized audio at the same time:
Code:

ffmpeg -i a.mpg -i a_normalized.wav -map 0:v -map 1:a [video conversion options] [audio conversion options] out.mp4
(I gather -map 0:v excludes the audio from the first input file, since we need to discard that un-normalized audio ?)


PS also, is this still true of the current version of ffmpeg ? :
http://ffmpeg.org/trac/ffmpeg/ticket/720
Quote:

-af was never integrated in the main repository,
and using -vf for audio filters i evidently wrong,
so the only way to use audio filtering is through the lavfi input device.
You use it this way:
ffmpeg -f lavfi -i "amovie=INFILE,volume=0.1" OUTFILE
edit: http://forum.videohelp.com/threads/3...=1#post2209366 show -af works OK

PPS if anyone knows how to compress the audio range at the same time, some hints would be handy

Viewing all articles
Browse latest Browse all 45948

Latest Images

Trending Articles



Latest Images