This zsh, using ffmpeg and normalize-audio, seems to do it. But it is slow. Remember normalize-audio is lightning fast so time is spent getting and putting together the audio with the movie. Perhaps it can be optimized somehow - do tell, if you know...
The file: http://user.it.uu.se/~embe8573/conf/.zsh/audio The code: normalize-audio-in-movies () { local -a movies local -a songs local name local audio local ext=mp3 movies=($@) songs=() for m in $movies; do get-audio-from-movie $m name=${m:r} audio=$name.$ext songs+=($audio) done normalize-audio $songs for m in $movies; do name=${m:r} audio=$name.$ext put-song-into-movie $audio $m done } put-song-into-movie () { local song=$1 local movie=$2 local name=${movie:r} local ext=${movie:e} ffmpeg -i $song -i $movie ${name}-norm.$ext } get-song-from-movie () { local movie=$1 local name=${movie:r} local song=$name.mp3 ffmpeg -i $movie $song } -- underground experts united http://user.it.uu.se/~embe8573 _______________________________________________ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-devel