More fun with VirtualDub and encoding vid files
While making the DivX file for Duende, I finally figured out how to really get the file size down (the trick is to compress the audio to MP-3 instead of leaving it in WAV format), and as I was about to gloat about this to
melina123, it occurred to me that maybe some of the rest of you would be interested in how Virtual Dub can be used both for this, and for getting clips out of a DivX or similar type file that can be used in Premiere or a similar editing package.
So, here's how it works (this is for Windows only, sorry).
ETA 2/28/2007
To change instructions to use the AMV App instead of downloading codecs separately.
ETA 7/15/2006
Changes:
- VirtualDubMod *can* do audio processing, it's just done via the Streams->Stream list menu. So I have updated these instructions to use VirtualDubMod instead of VirtualDub.
1. Using VirtualDub to get clips out of a downloaded or ripped file that can be used in Premiere
These clips will now work just fine and be frame-accurate in Premiere.
2. Using VirtualDub to encode a vid for online distribution
Voila -- you will now have a high-quality XviD file. The second pass thing is critical for getting the quality up, and the audio compression step is critical for getting the size down. If you don't do that, more than half your file will be uncompressed WAV audio.
So, here's how it works (this is for Windows only, sorry).
ETA 2/28/2007
To change instructions to use the AMV App instead of downloading codecs separately.
ETA 7/15/2006
Changes:
- VirtualDubMod *can* do audio processing, it's just done via the Streams->Stream list menu. So I have updated these instructions to use VirtualDubMod instead of VirtualDub.
1. Using VirtualDub to get clips out of a downloaded or ripped file that can be used in Premiere
- Get and install the Panasonic DV codec.
- Get an AVI or MPEG source file from somewhere -- you can either rip a DVD or download an AVI.
- Open the source file in VirtualDubMod (current version is 1.5.10.1).
- Open up Vdub.
- Go to Video -> Filters and select "Add..."
- Add a "resize" filter and select "Configure". Resize into 720x480 size. If the file has a wonky aspect ratio, you can use the preview and combine the 'resize frame and letterbox image' in combination with the image resize to get the video to look right. The important thing is that you end up with a frame of 720x480.
- Go to Video -> Compression and select the Panasonic DV codec from the list.
- (Optional, saves disk space) Go to Streams -> Stream list. This will show you the audio. Select the audio stream and then click the "Disable" button in the lower right hand corner. This will give you only the video instead of the audio.
- You can either convert the entire source file (will be gigantic; M&C converted was about 46 GB -- yes, that's *gigs*, not megabytes) or set start and end points for the clip you want.
- To actually get the clip, go to File -> Save As AVI. You can also batch up a bunch of clips to run them overnight.
These clips will now work just fine and be frame-accurate in Premiere.
2. Using VirtualDub to encode a vid for online distribution
- Get and install the AMV App. This will install the XviD and MP3 codecs for you along with Virtual Dub Mod.
- Export your movie from Premiere or whatever editing program you use, into a DV AVI. This will be very large. (e.g., it was 660 MB for Duende, which is under 3 minutes.)
- Open up VirtualDubMod.
- Open your DV avi file in VDub.
- Go to Streams -> Stream list. This will show you the audio stream.
- Right-click on the audio stream and select "Full Processing Mode".
- Right-click on the audio stream again, and now "Compression" will be an available choice.
- Select Compression and select MPEG Layer-3 from the list on the left, and then "192 kBits/s, 24,000 Hz, Stereo" from the list on the right.
- Go to Video->Compression and select XviD MPEG-4 Codec from the list. Hit Configure.
- Under "Encoding type" choose Twopass - 1st pass Click OK.
- Go to File->Save as AVI. Save the file as whateveryouwant_1.avi. Wait until the file has saved. (Will take a while.)
- Go to Video->Compression and choose XviD again and hit Configure.
- Under "Encoding type" choose Twopass - 2nd pass.
- In the "Target size (kbytes) field, put in the target size. I usually go for 30000. (30 MB) Click OK.
- Go to File->Save as AVI. Save the file with the real final name you want.
- When done, trash the whateveryouwant_1.avi file.
- You are done!
- Old DivX instructions preserved for legacy use:
- Go to Video->Compression and choose DivX 5.1 from the list. Hit Configure.
- Under "Variable bitrate mode" pick Multipass, 1st pass (VERY IMPORTANT!).
- Under "Encoding bitrate" enter 768 kbps. Click OK.
- Now go to File->Save as AVI. Save the file as whateveryouwant_1.avi. Wait until the file has saved.
- Next, go to Video->Compression and again select Divx 5.1, and hit Configure.
- Under "Variable bitrate mode" pick Multiplass, nth pass. Leave bitrate at 768 kbps. Click OK.
- Go to File->Save as AVI. Save the file with the real final name you want.
- When done, trash the whateveryouwant_1.avi file.
- Go to Video->Compression and choose DivX 5.1 from the list. Hit Configure.
Voila -- you will now have a high-quality XviD file. The second pass thing is critical for getting the quality up, and the audio compression step is critical for getting the size down. If you don't do that, more than half your file will be uncompressed WAV audio.
I now will have to either redownload KB or else save these instructions for something else, but I'm so glad you posted them. Thank you again.
Help?
Waldo.
Tried it exactly as you said, but I only get sound in the output.
Help?! :(
belated feedback
anywho, here are general thoughts and feedback for your Blew 'Em Away vid:
first of all, I only watched a couple of episodes of Highlander, so I only recognize Duncan, but this was fun! The bit where he jumped on the car (love the timing on that!) and punches the bear! ::giggles:: Also love the "color change at "business suit" and how it's like "voi-LA!" And the first "Blow them away" has marvelous timing! With the "three whole lanes" part! ::bounces:: LOVE the timing at "I got to get to where I'm going quick" and second "Blow them away" too.
Also? ::MUCH DYING AT "honk my horn":: DYING I SAY! And I don't know *why* the motocycle line is so funny, maybe the ambiant laughter?? Maybe the way he got on it? dunno, but it is.
The kiss at "Knocked him over"! ::glee::
The "Here Fifi" part!! ::giggles::
Overall, some very very funny/amusing clip choices to the lyrics and lovely timing of movement, the bounce-sweep kinda rhythm that you set with the clips that matches the strumming of the guitar; it somehow made everything light and bouncy and pulled me along despite my not knowing the source too well. Thank you for making this! =)
Your post has been invaluable to be,without it I would never have got the hang of premiere or been able to export my vid.
I have referred back to it on many occasions,and it has been the best source of information,in what is a very confusing subject.
Thank you.
the Panasonic DV codec.
also I found that virtual dub when ripping from dvd especially woudl loose audio tracking. have you found or fixed this?
Re: the Panasonic DV codec.
The PDV codec does some compression, so I suspect it will produce smaller clips than raw, and it's a native format for Premiere, so no rendering required if you choose project settings that match the frame rate/resolution. But any frame-accurate codec will work reliably.
(Anonymous)
Re: the Panasonic DV codec.
This really helped me get a web-publishable version of my first vid ready.
Second, I tried to follow the link to the mp3 codec, but it just takes me to an index for a video editing forum. I tried searching for the cdec there, but had no luck. Do you have any suggestions for where I might be able to find the codec or a way to work around not having it?
Thanks again.
any ideas as to what i could use to open them and take clips from them?
(do you know any reason why vdub might be not allowing me to encode with mpeg layer-3 any higher than 56 kb/s? the source is a .wav made from a 192 kb/s mp3, so I am confused.)
(I just ended up encoding with Lame MP3, which is what I've done in the past, but since another person was once having the same issue as me, I am curious.)
Edited at 2008-01-01 11:51 am (UTC)