Log in

View Full Version : AVI Video Files Stuck with PCM Audio


Vu Man
16th August 2006, 09:38
Hey guys,

I did a search for PCM for all forums and I couldn't find one with an issue I've been having.

I'm using the XVID binary (XviD-1.1.0-30122005 _Final Release_) to compress a video source into an AVI file of reasonable size. The original video was made using SNES9x and I am using Virtualdub Mod (1.5.10.1) to make the AVI file with XVID set as the compression. The only other codecs I have installed is the March 6 2006 version of the Combined Community Codec Pack.

The problem is no matter what settings I use in the XVID bitrate calculator the resulting AVI file is stuck with the same Audio data the original video file has: 1536 kbps PCM (I want VBR-MP3). The resulting XVID AVI files have 60 frames/second or higher for the video even though in the Bitrate calculator I have set it to something different. I have a hunch my resulting AVI files are huge because of the audio bitrate and the frames/second I keep ending up with. I would like to know what my options are to get a MP3-VBR audio stream and lower the frames/second. I apologize if this is an unintelligent theory on my part and if this has already been answered.

Original File Information
http://suprfile.com/src/2/2j2isz0/avi.jpg (http://suprfile.com/get.php?id=2j2isz0)

XVID Settings
http://suprfile.com/src/2/2j3c818/xvid.jpg (http://suprfile.com/get.php?id=2j3c818)

Sample XVID Encoded AVI with above settings
http://suprfile.com/src/2/2j3uscj/sample.jpg (http://suprfile.com/get.php?id=2j3uscj)

I want this resulting video
http://suprfile.com/src/2/2j3xedn/blackjack27.jpg (http://suprfile.com/get.php?id=2j3xedn)

check
16th August 2006, 09:46
xvid is a video compressor, it will only compress the video data. If you want to compress the audio you will need to compress it seperately.
I'd recommend you demux the audio (save WAV) and then encode that with the encoder of your choice - BeLight is reasonably easy to use. Then you can readd the newly compressed audio to the compressed video either via VD or with an AVI muxer such as Avimux_GUI.

If you wish to decimate the framerate (ie remove frames) you can use the inbuilt frame rate conversion feature of VD to do so.
Also, the xvid calculator is for calculation only, changing options within it does not affect the encoding parameters.

Vu Man
17th August 2006, 12:03
Thanks for the help check. I successfully made the mp3 audio stream in Belight and added it to the Virtualdub streamlist. The frame rate conversion also worked too, I can't believe I didn't see that.

Is it possible to change the output video file's resolution in Virtualdubmod? Also what affects the video's data rate and video sample size?

CWR03
17th August 2006, 19:26
You may want to switch to Gordian Knot or the simpler AutoGK for your tasks. Gordian Knot has an active preview so you can immediately see the changes making an effect on the output file, and a lot of the other settings are made simpler by the fact that you can enter a parameter in the appropriate field instead of calculating by hand. You'll still have the control with Gordian Knot that you do with VirtualDub; AutoGK takes away most of that and figures it all out for you.

Vu Man
18th August 2006, 12:28
You may want to switch to Gordian Knot or the simpler AutoGK for your tasks. Gordian Knot has an active preview so you can immediately see the changes making an effect on the output file, and a lot of the other settings are made simpler by the fact that you can enter a parameter in the appropriate field instead of calculating by hand. You'll still have the control with Gordian Knot that you do with VirtualDub; AutoGK takes away most of that and figures it all out for you.

Thanks CWR03 I will definitely experiment with those programs. I don't want to get into the fine details too extensively but I keep wondering why my files get into the 50 MB filesize range when they're < 320 X 240 and only a couple minutes long. I did read the XVID FAQ and changed the Overflow Treatment Values according to the poster. Maybe these programs will help me experiment to find the right settings.

I'm having another issue when I use an existing MP3 I have from my CDs when I add it to the VirtualDubMod's stream list. I disable the video file's original audio stream and when I make the final video, the new audio only plays for about 9 seconds or skips around. This only happens when I delete frames in the video in VirtualDubMod, am I demuxing the audio wrong?

In one instance I ran an audio file through BeSweet and turned it into a CBR 128 kbps stream. This file stopped playing around the point in the video where I made the first edit in VDM. I used another audio file that is also the same bitrate but it played all the way through, but skipped ahead when I cut out video frames in VDM. The only difference between the two is VDM recognizes the first audio file as being Joint Stereo while the second audio file is merely stereo. What am I doing wrong?

And here's the video file I'm attaching the audio stream to.
http://suprfile.com/src/2/2ksypca/avi.jpg (http://suprfile.com/get.php?id=2ksypca)

smok3
18th August 2006, 13:34
i think you have to make a new file 1st, that is via 'direct stream copy', only then load that file into vdubmod and edit it,

or edit the original file with pcm audio and the work on that new audio track (extract, encode to mp3, mux back i mean).