PDA

View Full Version : Normalizing AVIs


chrisstavrou
1st September 2007, 20:29
Hi all,
i am trying to normalize some AVIs (DIVX+MP3) by following the next process:

- Demux using mencoder:
mplayer -dumpaudio original.avi -dumpfile audio.mp3
mplayer -dumpvideo original.avi -dumpfile video.avi

-Normalize using mp3gain
mp3gain -a audio.mp3

-Remux using mencoder:
mencoder -ovc copy -oac copy -ffourcc DX50 -mc 0 -noskip -audiofile audio.mp3 -o final.avi video.avi

The resulting final.avi seems to be corrupted as it is not playable.

Can any1 help me identify what i am doing wrong ?

Thank you in-advance
Chris

chrisstavrou
2nd September 2007, 13:52
I have managed to do it, below is the script for any1 that might have the same question

#Demux
mplayer -nojoystick -noconsolecontrols -nolirc -dumpaudio "$INFILE" -dumpfile audio.mp3
mencoder -idx -ovc copy -nosound "$INFILE" -o video.avi

#-Normalize using mp3gain
mp3gain -a -m 1 -c -s r audio.mp3

#-Remux using mencoder:
mencoder -ovc copy -oac copy -ffourcc DX50 -mc 0 -noskip -audiofile audio.mp3 -o "$OUTFILE" video.avi

Placio74
3rd September 2007, 10:48
...
- Demux using mencoder:
mplayer -dumpaudio original.avi -dumpfile audio.mp3
mplayer -dumpvideo original.avi -dumpfile video.avi
...
The resulting final.avi seems to be corrupted as it is not playable.

Can any1 help me identify what i am doing wrong ?
It's dump raw stream without container.