View Full Version : Batch file info for VOB files
quacka
7th December 2010, 11:41
Hi,
Through out the years, I have been splitting out all my karaoke files into VOB files with multiple audio tracks.
When I recently put them into a player, I have noticed two major things wrong with them.
1. Some VOB files, the Vocal channel is in x80 and the Karaoke x81 and some the Vocal is in xC0 and Karaoke in xC1.
2. Since they come from all different source, they have all different volume level which can be annoying since I am playing them from the one player.
Anyone knows of a way I can scan through all the VOB files with visual studio and get the peak volume of each song so I can display them on my song book so it can be adjusted before the song start.
Also how do I tell which VOB file has xc0 and which is at x80?
I am wishing to do this in visual studio and export the vob file info into a text or excel file.
Ghitulescu
7th December 2010, 13:21
I don't see any change in your "daily work" by using a batch identifier. Comparing two audio by means of peak level is not what a sound engineer would do when s/he needs to create a compilation (actually here lies his/her genius), two different genera (classic music vs. hip-hop, to give an extreme example) would sound very differently at the same peak level.
Besides, I am not aware of any software that could rewrite the packets in order to change the audio IDs, one usually needs to demux/remux each song (one can do this directly in some authoring tools, other tools need anyway elementary streams).
Selur
7th December 2010, 16:14
One could use:
- mediainfo to identify the id of the audio tracks.
- mencoder&sox to get peak values, reencode the all the audio files to a common level
- remux audio&video (not sure about a good way for remuxing DVDs)
it will probably take a few days to implent this unless you are familiar with mediainfo,mencoder and sox.
Cu Selur
quacka
8th December 2010, 07:58
I have around 8,000 so any batch processing will be better then doing them one by one :(
The media player I have can specify the volume level for each file in the playlist to I am planning to tag each file with the volume that I want. I am trying to avoid demux/remux the file as this can take a long time.
I am currently working on the export format for mediainfo currently to populate the playlist with the correct audio information.
After this is just looking for a way to get the peak value without having to demux the audio part first.
Ghitulescu
8th December 2010, 08:10
Well, a month's worth of karaoke!
Supposing there's such a software, one that could peek into the VOB without demuxing, there's AFAIK no software that could directly change the audio volume inside a VOB.
I'm afraid you have to do some work by hand. Selur gave you already some good advices about the software to use (freeware). If you want to do everything automatically (not by hand), then find someone to do it for you ;)
Selur
8th December 2010, 11:41
After this is just looking for a way to get the peak value without having to demux the audio part first.
Decode with mencoder to wav and pipe the output to sox. I'm pretty sure SOX got a analyse mode or something like that where it can output peak value (and a bunch of other stuff) for a specific input.
Cu Selur
quacka
8th December 2010, 12:10
Since this is in the programming section. I was hoping more for an api that can handle this :p
I played with directshow previously and managed to get a few application running playing media files, switchign audio stream, etc... I was hoping there would be a plugin or something similiar that would allow me to logthe audio output of one of the channel after playing it a few seconds at random interval. This should be adequate to get a good idea what the sound level of one song is like compare to the rest and set it in the playlist. I don't need to have it demux, normalized and then remux.
vBulletin® v3.8.5, Copyright ©2000-2012, Jelsoft Enterprises Ltd.