is there a package eg xmms2 that can normalize audio for mp3/mp4/flv

Asked by oddasee

Normalize-audio is recommended for mp3, I'd like a similar tool for mp4 and flv files.
Thanks

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu xmms2 Edit question
Assignee:
No assignee Edit question
Solved by:
mycae
Solved:
Last query:
Last reply:
Revision history for this message
Best mycae (mycae) said :
#1

Video? You need to extract the audio channel (which is usually mp3), normalise it, then re-sync it. Use ffmpeg to do this

flv is not a well supported video format for editing, and is usually considered a publishing format.

Revision history for this message
oddasee (stamour-robert) said :
#2

Thanks very much for your answer mycae: I took your advice. I'm a bit of a
novice with bash scripting and came up with this:

for p in "$@";
do
      ffmpeg -i "$p" -y ffout.wav
      normalize-audio ffout.wav
     ffmpeg -i "$p" -i ffout.wav -y "out"."$p"
done

which seems to work pretty good. With libextra52, or whatever it's called (
ffmpeg's additional codecs ) the script handles *.mp4 and *.flv.

Just curious if you might have any suggestion regarding ffmpeg options which
might produce a superior result.

Thanks Again
Robert

On Fri, Nov 26, 2010 at 2:56 PM, mycae <<email address hidden>
> wrote:

> Your question #135543 on xmms2 in ubuntu changed:
> https://answers.launchpad.net/ubuntu/+source/xmms2/+question/135543
>
> Status: Open => Answered
>
> mycae proposed the following answer:
> Video? You need to extract the audio channel (which is usually mp3),
> normalise it, then re-sync it. Use ffmpeg to do this
>
> flv is not a well supported video format for editing, and is usually
> considered a publishing format.
>
> --
> If this answers your question, please go to the following page to let us
> know that it is solved:
>
> https://answers.launchpad.net/ubuntu/+source/xmms2/+question/135543/+confirm?answer_id=0
>
> If you still need help, you can reply to this email or go to the
> following page to enter your feedback:
> https://answers.launchpad.net/ubuntu/+source/xmms2/+question/135543
>
> You received this question notification because you are a direct
> subscriber of the question.
>

Revision history for this message
oddasee (stamour-robert) said :
#3

I used ffmpeg as per the suggestion and came up with this:

for p in "$@";
do
      ffmpeg -i "$p" -y ffout.wav
      normalize-audio ffout.wav
     ffmpeg -i "$p" -i ffout.wav -y "out.$p.mp4"
done

Revision history for this message
oddasee (stamour-robert) said :
#4

I spoke too soon... flv doesn't copy the audio such that VLC works. It does
work forcing the output format to mp4, changing the last line to:

     ffmpeg -i "$p" -i ffout.wav -y "out.$*.mp4*"

On Fri, Nov 26, 2010 at 11:40 PM, Robert St.Amour
<email address hidden>wrote:

> Thanks very much for your answer mycae: I took your advice. I'm a bit of a
> novice with bash scripting and came up with this:
>
> for p in "$@";
> do
> ffmpeg -i "$p" -y ffout.wav
> normalize-audio ffout.wav
> ffmpeg -i "$p" -i ffout.wav -y "out"."$p"
> done
>
> which seems to work pretty good. With libextra52, or whatever it's called
> ( ffmpeg's additional codecs ) the script handles *.mp4 and *.flv.
>
> Just curious if you might have any suggestion regarding ffmpeg options
> which might produce a superior result.
>
> Thanks Again
> Robert
>
>
>
>
> On Fri, Nov 26, 2010 at 2:56 PM, mycae <
> <email address hidden>> wrote:
>
>> Your question #135543 on xmms2 in ubuntu changed:
>> https://answers.launchpad.net/ubuntu/+source/xmms2/+question/135543
>>
>> Status: Open => Answered
>>
>> mycae proposed the following answer:
>> Video? You need to extract the audio channel (which is usually mp3),
>> normalise it, then re-sync it. Use ffmpeg to do this
>>
>> flv is not a well supported video format for editing, and is usually
>> considered a publishing format.
>>
>> --
>> If this answers your question, please go to the following page to let us
>> know that it is solved:
>>
>> https://answers.launchpad.net/ubuntu/+source/xmms2/+question/135543/+confirm?answer_id=0
>>
>> If you still need help, you can reply to this email or go to the
>> following page to enter your feedback:
>> https://answers.launchpad.net/ubuntu/+source/xmms2/+question/135543
>>
>> You received this question notification because you are a direct
>> subscriber of the question.
>>
>
>