Converting DVD tracks to 41.1KHz & Normalizing

This forum is for video and audio help and discussion.

Converting DVD tracks to 41.1KHz & Normalizing

Postby Sabihato » Sat Jan 24, 2009 2:46 pm

I've been following A&E's technical guide quite religiously, but I'm having some difficulty converting some audio that the guide doesn't get into in more detail. As inferred from the thread title, it's a two-part problem: first, converting DVD audio to 41.1KHz; and second, normalizing tracks.

Problem 1
When indexing my DVD footage with DGIndex, I had "Demux All Tracks" selected. The guide recommended this as the best means of going about at it since other applications can handle the later tasks. The result is a .wav file that, according to Winamp, is 16bit and at 48.0KHz. The following was the determined quality of my original audio source according to DGIndex:

Track 1: PCM 48K 16bit 2ch
Track 2: AC3 2/0 192

So far so good, I believe. Now, the problem is I use 64-bit Windows Vista Ultimate, so after installing AMVapp, BeSweetGUI doesn't seem to want to work, complaining that MSVBVM50.DLL was not found on my system (a similar message occured during the AMVapp test). I've searched a good majority of the guide for any leads on other programs that might do the trick, but to no avail. It doesn't place a lot of faith in the quality of DGIndex and dBpoweramp Music Converter has changed to the point that the settings the guide recommended no longer exist.

I do, however, have the Adobe CS3 Master Collection, and I use Adobe Premiere Pro CS3 to edit my footage. The reason I'm converting the DVD audio is because the song and other clips I may choose to use are at 44.1KHz. I've set my project up for such a sample rate. I'm worried that if I mix DVD quality audio into the 44.1KHz project, it will conflict and/or screw up the end result. Is this true? Am I right to be concerned about changing the bit rate? Is there an Adobe program somewhere in my collection that might do the trick (I saw Adobe Soundbooth CS3 but I didn't see a converter)? Is there another recommended program to use?


Problem 2
The audio track I plan to use is 16 bit and at 44.1KHz according to Winamp, originally .FLAC and converted to .WAV using dBpoweramp Music Converter. It has about 30 seconds of softness beginning and end, mixed with beats and guitars so loud it pretty much maximizes in the red. Please see this picture for an idea of the wave (snapshotted from Adobe Soundbooth CS3). I want to normalize the beginning at least so that it doesn't sound so mute because honestly, under normal circumstances with the speakers at normal settings, audiences will think the AMV has no audio for the first 30 seconds.

As I described in Problem 1 above, because of some conflict with AMVapp and 64-bit Windows Vista Ultimate, I can't use BeSweetGUI, dBpoweramp Music Converter doesn't have a normalization option in its latest release, and this method here in A&E's technical guide is no longer available. The only thing it leads to is BeSweet 1.5, which I assume is the same as what's provided by AMVapp. I do have the Adobe CS3 Master Collection, but I'm not too avid about the various programs yet, and I don't see a normalization option in Adobe Soundbooth CS3.

The questions I want to throw out there is: what easy-to-obtain program can do the normalization I'm looking to do? Based on the waveguide in this picture, do you think normalization is even necessary? Would it be better to simply use Adobe Premiere Pro CS3 and just raise the volume in that area I want to make louder? Is there any drawbacks to that method? And finally, is the audio I'm using a problem, since it caps so much in the red for a majority of the song?


Thanks for reading and I appreciate any help you all can provide.
Sabihato
 
Joined: 23 Dec 2008

Re: Converting DVD tracks to 41.1KHz & Normalizing

Postby Scintilla » Sat Jan 24, 2009 11:34 pm

Given that the audio seems to jump to a more normal volume range pretty suddenly, I'd think you could probably just raise the volume in Premiere for the quiet part without any major problems.

If you don't hear any distortion, then the wave is probably fine. I mean, if it was originally a FLAC file, then that means there's been no data loss between the CD (assuming it didn't come from a record) and the file you have now... right? So, if there IS actually any clipping going on, then it's the fault of whoever did the mixing/mastering for the album, and there's nothing you can do to fix it.
ImageImage
:pizza: :pizza: Image :pizza: :pizza:
User avatar
Scintilla
(for EXTREME)
 
Joined: 31 Mar 2003
Location: New Jersey
Status: Quo

Re: Converting DVD tracks to 41.1KHz & Normalizing

Postby Sabihato » Sun Jan 25, 2009 1:21 pm

Yeah, Scintilla. Even at extremely high volume, the song sounds virtually flawless... apart from the heavier-than-normal bass, but I believe that's a result of my Winamp equilizer and subwoofer. Alright, then I will do what you recommend by simply "normalizing" that section of the track in Premiere Pro itself. That answers Problem 2.
Sabihato
 
Joined: 23 Dec 2008

Re: Converting DVD tracks to 41.1KHz & Normalizing

Postby mirkosp » Sun Jan 25, 2009 1:50 pm

Problem 1 is easily fixed. I had that issue myself, and I fixed it by downloading and putting the MSVBVM50.DLL into "C:\Windows\System32".
You can get the dll by going here and then getting the "http://activex.microsoft.com/controls/vb5/MSVBVM50.CAB". After downloading it, extract the MSVBVM50.DLL and put it in "C:\Windows\System32" and then BeSweetGUI should work.
Image
User avatar
mirkosp
MODkip
 
Joined: 24 Apr 2006
Location: Gallarate (VA), Italy
Status: (」・ワ・)」(⊃・ワ・)⊃

Re: Converting DVD tracks to 41.1KHz & Normalizing

Postby Sabihato » Mon Jan 26, 2009 1:12 am

I gave that a go, mirkosp, but it hasn't changed anything. Even restarting the computer, BeSweetGUI still haggles me about the missing file. But the .zip did come with two files. Is there a more elaborate, more specific way to install it other than copying and pasting?
Sabihato
 
Joined: 23 Dec 2008

Re: Converting DVD tracks to 41.1KHz & Normalizing

Postby Scintilla » Mon Jan 26, 2009 6:36 pm

Was the second file a .INF file? Then usually you want to unpack it someplace, then right-click it in Windows Explorer and select "Install" from the menu.
ImageImage
:pizza: :pizza: Image :pizza: :pizza:
User avatar
Scintilla
(for EXTREME)
 
Joined: 31 Mar 2003
Location: New Jersey
Status: Quo

Re: Converting DVD tracks to 41.1KHz & Normalizing

Postby Sabihato » Tue Jan 27, 2009 12:55 am

Yeah, it came with an .inf file. I tried it under that basis and didn't fix anything, not even after a proper restart. Maybe it's just not 64-bit compliant.

For all intents and purposes, it is important that I convert 48.0KHz tracks to the rest of the audio in my project which is 41.1KHz... right? :?
Sabihato
 
Joined: 23 Dec 2008

Re: Converting DVD tracks to 41.1KHz & Normalizing

Postby Scintilla » Tue Jan 27, 2009 6:47 am

44.1 kHz. Important distinction.

Well, either you do the conversion yourself beforehand, or Premiere Pro will do the conversion on the fly when you export. I have no idea how good Premiere's sample rate conversions sound; you may want to give it a try and see if it's passable.

You can always try manually registering the DLL from the command line or the Run dialog box:
Code: Select all
regsvr32 C:\windows\system32\MSVBVM50.DLL
ImageImage
:pizza: :pizza: Image :pizza: :pizza:
User avatar
Scintilla
(for EXTREME)
 
Joined: 31 Mar 2003
Location: New Jersey
Status: Quo

Re: Converting DVD tracks to 41.1KHz & Normalizing

Postby Qyot27 » Tue Jan 27, 2009 2:47 pm

Personally, I stopped updating dBPowerAMP when they stopped making their MP3 linking free under pressure from Thomson (never mind that the encoder was just the Lame executable file, it wasn't even built into the program integrally). So I use the old version of it and manually update the version of Lame it references.

But even in that case, you could use SSRC (http://www.rarewares.org/others.php, look for Shibatch) to resample to the proper frequency. Either the main SSRC executable, or the AviSynth function, like so:
Code: Select all
WAVSource("dvdaudio.wav").SSRC(44100,fast=false)


If you've comfortable using the command line, then take a look at wavi (http://sourceforge.net/project/showfile ... _id=196137) - it can write the audio tracks out from scripts that don't have video enabled. It's as simple as doing this:
Code: Select all
wavi "input.avs" "output.wav"


It can also pipe, which I normally use with aften to produce AC3 files straight from the scripts. Always make sure to check the output file after doing one of these things, though - there have been times I've gotten corrupted noise, but that's generally few and far between.
My profile on MyAnimeList | Quasistatic Regret: yeah, yeah, I finally got a blog
User avatar
Qyot27
Surreptitious fluffy bunny
 
Joined: 30 Aug 2002
Location: St. Pete, FL
Status: Creepin' between the bullfrogs

Re: Converting DVD tracks to 41.1KHz & Normalizing

Postby Sabihato » Tue Jan 27, 2009 11:05 pm

The run command was something I tried as well, but had no effect. Interestingly it doesn't find the file specified, even after it's been clearly placed there.

The second method Qyot27 mentioned sounds promising, since I'm not able to find the older versions of dBpoweramp and SSRC appears to be for MAC OS only. I've downloaded wavi and extracted it. Unfortunately, it doesn't tell me where to place the contents and the applications flash momentarily before disappearing. I think I could use AviSynth to get this done, but the question is where should I include the script lines to convert the audio? In a blank, brand new .avs file or should I use one of my existing scripts I've used to modify the video portion of my DVD source (see example script below)?

Code: Select all
MPEG2Source("C:\Users\********\Desktop\*** ****** *******\DVD_01.d2v", cpu=4)
Deen("w3d,3,3,5")
vmToon(strength=24)
LanczosResize(848,480)
ConvertToRGB32()


Somewhere in there? And lastly, am I correct in assuming I'll be using VirtualDubMod to get the audio converted? Or the wavi application? Or are they both different methods in themselves? I appreciate just a little bit more instruction. Thanks, everyone.
Sabihato
 
Joined: 23 Dec 2008

Re: Converting DVD tracks to 41.1KHz & Normalizing

Postby Qyot27 » Wed Jan 28, 2009 12:09 pm

Sabihato wrote:The second method Qyot27 mentioned sounds promising, since I'm not able to find the older versions of dBpoweramp and SSRC appears to be for MAC OS only.

On that page, you'd go for the ICL10 build, I believe it's the one right above the OSX build.

Forewarning: this is more or less a crash course in using CLI apps - I also use Windows XP, so the methodology may differ a bit on Vista. It should still exist, though, so it may require a little Googling to find the exact way to do it on Vista (that is, if it doesn't work the way I describe).
I've downloaded wavi and extracted it. Unfortunately, it doesn't tell me where to place the contents and the applications flash momentarily before disappearing. I think I could use AviSynth to get this done, but the question is where should I include the script lines to convert the audio? In a blank, brand new .avs file or should I use one of my existing scripts I've used to modify the video portion of my DVD source (see example script below)?

Code: Select all
MPEG2Source("C:\Users\********\Desktop\*** ****** *******\DVD_01.d2v", cpu=4)
Deen("w3d,3,3,5")
vmToon(strength=24)
LanczosResize(848,480)
ConvertToRGB32()


Somewhere in there? And lastly, am I correct in assuming I'll be using VirtualDubMod to get the audio converted? Or the wavi application? Or are they both different methods in themselves? I appreciate just a little bit more instruction. Thanks, everyone.

wavi and VirtualDubMod are two separate methods - wavi's major benefit over VirtualDubMod is that it can handle files with no video stream, whereas VDubMod will reject video-less files. wavi also streamlines into batch scripts more easily than VDubMod can.

wavi is a command-line application, just as SSRC is (although on SSRC's benefit, it is able to link into GUI apps; there's a couple GUIs that can use wavi, but generally it's easier not to). That's why clicking on them makes them flash for a second and go away.

So, what you need to do is place wavi.exe into C:\WINDOWS or whatever that folder actually is on Vista (well, feasibly you could put it anywhere as long as you go into Windows' Environment Variables and add the directory to your PATH, but C:\WINDOWS is just easier most times). Now, you can either use Run to call up the command prompt and navigate into the directory your files are in to run the command (by typing in cmd and hitting Enter, then using cd to go up and down the directory tree to get to your files), or you can create a Windows batch script in that directory and avoid trying to wrangle with the Prompt at all. In which case, copy and paste this into a text file using Notepad (after saving, change the extension of the file from .txt to .bat):
Code: Select all
wavi "input.avs" "output.wav"
pause

Changing, of course, input and output to the correct names - if you have spaces in the filenames, those quotes are still necessary. You can leave the 'pause' line out if you would prefer the prompt window to close automatically. Pause will make it to where after the operation is finished, you have to press a button to make the window close (or continue on with the script, if there's something after that line).

Now, wavi uses the AviSynth script, so the frequency change has to be done in the script for wavi to recognize it. So, with your script as a reference, it would look like this with the frequency change inserted:
video = MPEG2Source("C:\Users\********\Desktop\*** ****** *******\DVD_01.d2v", cpu=4).Deen("w3d,3,3,5").vmToon(strength=24).LanczosResize(848,480).ConvertToRGB32()
audio = WAVSource("audio.wav")
AudioDub(video,audio).SSRC(44100,fast=false)

(new parts in bold; the change in formatting is to make it easier to acknowledge which parts are for the video stream and which parts aren't - AviSynth recognizes periods between functions the same way it recognizes the functions being on new lines)

HOWEVER, if you don't want to change your video's script so dramatically, then you could load just the WAV inside of its own script, like so:
Code: Select all
WAVSource("audio.wav")
SSRC(44100,fast=false)

And opening this script is why using wavi is a benefit, since VDubMod won't open it due to the lack of a video stream (sure, you could use BlankClip to make one, but that's almost as much work as the adjustments I illustrated on the .d2v-loading script above). As a point of reference, you could also use DirectShowSource or FFmpegSource or AVISource itself and simply negate the video by using video=false (for DSS or AVISource) or vtrack=-2 (for FFmpegSource).

If it wasn't for the fact you use a 64-bit version of Vista, I would suggest you look at the Microsoft 'Open Command Window Here' PowerToy for XP - I don't know if it would work with Vista at all, but if it does, then I would expect it only would be able to work with the 32-bit version, as it integrates into Explorer as a Shell Extension. It would remove the need to do the batch script stuff, as you could just right-click on the folder name and bring up the command prompt already in the directory you need to work in, without having to navigate with cd commands. I suppose for the 64-bit version you could just make a point of using a 32-bit Explorer clone, like ExplorerXP and see if the Powertoy works with it.
My profile on MyAnimeList | Quasistatic Regret: yeah, yeah, I finally got a blog
User avatar
Qyot27
Surreptitious fluffy bunny
 
Joined: 30 Aug 2002
Location: St. Pete, FL
Status: Creepin' between the bullfrogs

Re: Converting DVD tracks to 41.1KHz & Normalizing

Postby Qyot27 » Wed Jan 28, 2009 12:12 pm

Qyot27 wrote:If it wasn't for the fact you use a 64-bit version of Vista, I would suggest you look at the Microsoft 'Open Command Window Here' PowerToy for XP - I don't know if it would work with Vista at all, but if it does, then I would expect it only would be able to work with the 32-bit version, as it integrates into Explorer as a Shell Extension. It would remove the need to do the batch script stuff, as you could just right-click on the folder name and bring up the command prompt already in the directory you need to work in, without having to navigate with cd commands. I suppose for the 64-bit version you could just make a point of using a 32-bit Explorer clone, like ExplorerXP and see if the Powertoy works with it.

Never mind this paragraph, there is something for Vista that does this, and works with 64-bit:
http://www.ktechcomputing.com/cmdopen/

(But apparently Vista has a built-in Open Command Window Here option if you hold down SHIFT while right-clicking.)
My profile on MyAnimeList | Quasistatic Regret: yeah, yeah, I finally got a blog
User avatar
Qyot27
Surreptitious fluffy bunny
 
Joined: 30 Aug 2002
Location: St. Pete, FL
Status: Creepin' between the bullfrogs

Re: Converting DVD tracks to 41.1KHz & Normalizing

Postby Sabihato » Thu Feb 05, 2009 2:13 am

Yeesh, sorry about my silence; I was working on some of my non-leisure projects for the past week and was too busy to check back on this. But after some thorough reading and trial-and-error, Qyot27, I can proudly say:

Victory!

I was able to successfully convert a sample audio track into 41.1KHz thanks to the wavi application you provided. Some steps I originally overlooked included saving the Notepad file into .bat and putting the wavi.exe application into C:\Windows. I had hoped there was another way to execute the wavi program; I'm not used to making any modifications inside the C:\Windows directory apart from installing new fonts. But I don't think leaving it there will cause any harm to my system.

It should be said that I tried making the modifications to my original script to no success. I added the following per your instructions:
- video = before MPEG2Source
- audio = WAVSource("C:\Users\********\Desktop\*** ****** *******\DVD_01 T01 48K 16bit 2ch.wav") after my video adjustment lines such as vmToon and Deen (the audio name is how it is by default after demuxing through DGIndex)
- AudioDub(video,audio) in the line below that
- SSRC(44100,fast=false) in the line below that

Code: Select all
video = MPEG2Source("C:\Users\********\Desktop\*** ****** *******\DVD_01.d2v", cpu=4)
Deen("w3d,3,3,5")
vmToon(strength=24)
LanczosResize(848,480)
ConvertToRGB32()
audio = WAVSource("C:\Users\********\Desktop\*** ****** *******\DVD_01 T01 48K 16bit 2ch.wav")
AudioDub(video,audio)
SSRC(44100,fast=false)


But I don't believe this modified .avs script is designed to be ran through wavi. And VirtualDubMod seems to have problems with the text. It seems to have trouble recognizing lines. The specific error message I get is "Script error: Invalid arguments to function "Deen"". I don't know if there are things I need to substitute in place of, add, or omit. I've even tried the period format as well and the same thing results.

Nevertheless, you have provided me with a working solution. And for that, you and Scintilla and mirkosp deserve cookies and milk. Come to San Jose. :) Now I can finally begin my AMV with all the other audio and file format tidbits resolved - no small potatoes.
Sabihato
 
Joined: 23 Dec 2008

Re: Converting DVD tracks to 41.1KHz & Normalizing

Postby Scintilla » Thu Feb 05, 2009 6:42 am

Sabihato wrote:
Code: Select all
video = MPEG2Source("C:\Users\********\Desktop\*** ****** *******\DVD_01.d2v", cpu=4)
Deen("w3d,3,3,5")
vmToon(strength=24)
LanczosResize(848,480)
ConvertToRGB32()
audio = WAVSource("C:\Users\********\Desktop\*** ****** *******\DVD_01 T01 48K 16bit 2ch.wav")
AudioDub(video,audio)
SSRC(44100,fast=false)


But I don't believe this modified .avs script is designed to be ran through wavi. And VirtualDubMod seems to have problems with the text. It seems to have trouble recognizing lines. The specific error message I get is "Script error: Invalid arguments to function "Deen"".

You've put the closing quotation mark in the wrong place. It should be:
Deen("w3d",3,3,5)
ImageImage
:pizza: :pizza: Image :pizza: :pizza:
User avatar
Scintilla
(for EXTREME)
 
Joined: 31 Mar 2003
Location: New Jersey
Status: Quo

Re: Converting DVD tracks to 41.1KHz & Normalizing

Postby Sabihato » Thu Feb 05, 2009 10:26 pm

Gave a try on that one, Scintilla, but it still presented the same error message, word for word.

Egads, this quotation mishap has been present through all of the clips I've extracted thus far. Does this mean the Deen effect didn't go through on any one of them? I thought the script was supposed to warn me on something like that. :!:
Sabihato
 
Joined: 23 Dec 2008

Next

Return to Video & Audio Help

Who is online

Users browsing this forum: No registered users and 3 guests