Skip to main content

Notice

Please note that most of the software linked on this forum is likely to be safe to use. If you are unsure, feel free to ask in the relevant topics, or send a private message to an administrator or moderator. To help curb the problems of false positives, or in the event that you do find actual malware, you can contribute through the article linked here.
Topic: Mass sound normalisation on music videos (Read 5190 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

Mass sound normalisation on music videos

Hi,

I have a range of music videos which i would like to remaster so that
the sound level is at the consistancy rather than there being a sudden
sound level drop during the changing of videos.

can anyone recommend a good way to automatically extract
the audio, adjust volume/normalise and process the new video
file. I think the files are mostly .mpg

Recommendation of good cmdline utilities that i can extract
the audio, adjust volume and resample the video/audio back
together again would be great.

regards,
yates.

Mass sound normalisation on music videos

Reply #1
ok after a few days i figured out a way to do this automatically
with a few different tools, so i will share my solution.

all videos were demultiplexed using
  http://www.videohelp.com/~liquid217/downlo...chdemux0.14.zip

all the mp2 files were batched normalised and saved as wav files using
  http://www.goldwave.com/release.php

the wav files were converted to mp2 files using
  http://users.tpg.com.au/adslblvi/
(i had to write a c program to batch encode)

the video and audio was put back together using
  http://members.aon.at/johann.langhofer/mplex1.htm
(i had to write a c program to batch encode)


the orignal idea was to convert the mp2 to mp3 and use mp3gain,
but i found after putting back the audio there was always the
end of the audio missing. Besplits mp2 normalise also did not work
for me, the volume did not change.

so thats my solution, if anyone has any improvements let me know,

regards,
    yates.

Mass sound normalisation on music videos

Reply #2
iam using virtualdub for extracting audio (for avi files), bat code is something like:

Code: [Select]
echo ------------------------------------ vdub extract audio to pcm 
title extract audio to pcm %video%

echo VirtualDub.Open(VirtualDub.params[0]); > "%~dp1%~n1.script"
echo VirtualDub.SaveWAV(VirtualDub.params[1]); >> "%~dp1%~n1.script"



@vdub /i "%~dp1%~n1.script" "%~dp1%~n1%~x1" "%~dp1%~n1_vdub.wav"

related: http://forums.virtualdub.org/index.php?act=ST&f=5&t=9549



you could also use mplayer,

Code: [Select]
mplayer -ao pcm -vo null -vc dummy film.avi


then i use wavegain for track replaygain... and so on, surely you will get some ideas from this (virtualdub can open mpeg1 files, virtualdubmod can open vob/mpeg2 files as well.)
PANIC: CPU 1: Cache Error (unrecoverable - dcache data) Eframe = 0x90000000208cf3b8
NOTICE - cpu 0 didn't dump TLB, may be hung

Mass sound normalisation on music videos

Reply #3
Quote
then i use wavegain for track replaygain... and so on, surely you will get some ideas from this (virtualdub can open mpeg1 files, virtualdubmod can open vob/mpeg2 files as well.)
[a href="index.php?act=findpost&pid=351863"][{POST_SNAPBACK}][/a]


ah ok, thanks for the info.