Log in

View Full Version : AVI Files: Change Audio Frequency


mkanar
17th February 2002, 15:41
Hello,

I capture with VirtualDub and my sound card captures audio at a consistant frequency of 44.107.0 KHz. Does anyone know of an easy way that I can modify the AVI file so that it self-describes itself to have a 44.107KHz audio frequency instead of a 44.100KHz frequency? A more appropriate solution is for me to open the .AVI file and tell VirtualDub to 'force the audio datarate' to 44107Hz; then, I can convert the audio datarate to 44100 Hz and save a new AVI file (direct stream copy for the video, full processing for the audio). However, the problem with this is time and diskspace.

I realize that this doesn't mean squat when it comes to 'playing' the avi file....my sound card obviously doesn't natively support 44.107KHz. My reason for desiring this change has to do with when I convert the .AVI file to SVCD with DVD2SVCD/AVI2SVCD; AVI2SVCD is in early Beta stage.

I guess that I'm not interested in debating the benefits of this issue but rather would like to know if anyone knows how to easily make this change. There is a similar utility available that can change the AVI framerate. If the information is located as plain-text within the AVI file, does anyone know how to accurately locate it? If I find this out then maybe I can write myself a small utility to make this change.

Thank You,
MKanar

hyc
11th March 2002, 07:42
Go to http://www.rahul.net/jfm/ and download the vidtrace program. This command-line utility decodes the headers in an AVI file. It's extremely useful when you want to poke around inside the file. The rest of the site has a lot of useful info on AVI format in general. Then you can use a binary file editor to tweak the bytes as needed, this is a very simple change I think.

I used these tools to figure out why Sony's DVGate Motion software wouldn't read my standard AVI files, and then wrote a converter to fix the AVI headers so that DVGate would read them. Now I can create DV AVI files in Ulead or whatever and spit them out using DVGate, which does frame-accurate transfers.

mkanar
13th March 2002, 23:01
hyc: Thanks for the tip!

In reference to the Sony tools, do you happen to have the Sony tool that captures 'still images' from the Sony Camcorder rather than streaming video? I have the DVC-TRV310 NTSC and it has a 'still picture' capture button, but there isn't an easy way to move these still images to the computer via DV/iLink/1394/FireWire 'as' still images.

Thanks!
MKanar