-
MPEG-2 SD – getting smart resample to work
It took me a while to work out how to do this, so I thought it would be a good idea to share the info with other Creative Cow readers.
My out-of-date Sony DCR-SX20E only records to MPEG-2 format – it’s a bit of a pain to make Sony Vegas work properly with it.
First, do the obvious things – load up Vegas, load the MPEG-2 file, and go down to project properties. At the top right of the window, click on “match media settings”. Pay particular attention to the Width, Height, Pixel aspect ratio and Frame rate – also, note the Field order.
Vegas now “understands” your file.
MPEG-2 is a lossy format, and ideally you don’t want to render it multiple times, or the quality of your videos will suffer. If all you are doing is cutting and splicing a few bits of video together before putting the results on DVD or Youtube, you definitely want to avoid rendering multiple times. Apart from the quality loss, it will take a long time for the whole video to render, especially on older hardware.
Fortunately, there is a solution. Vegas “smart resample” works out which parts of your video don’t need to be rendered again, and integrates them with other parts of your video which you may have changed or added effects to. It’s a great time-saver.
Unfortunately, Vegas doesn’t advise you what your best possible render settings are in order to take advantage of “smart resample” – you have to figure this out for yourself. Luckily, there is a good free open-source program out there that can help you with this – google, download, and install the program called “MediaInfo”.
Open MediaInfo and click on the top left to find the file you wish to analyze,browse for it and load it. Go to the bottom right of the window and select “Tree”. This gives you a big list of all the properties of your file. Scroll down and you will see lots of information about your file – particularly useful are Bit rate mode (can be variable or constant), Bit rate and Nominal bit rate. Leave the program open for now.
Hopefully you already made a note of the Width, Height, Pixel aspect ratio and Frame rate! Now you can click on Vegas>File>Render as. With MPEG-2, our only choice is the MainConcept MPEG-2, so select this and go to Template. Select the option that most closly matches your product (fps, width, height, and pixel aspect ratio). In my particular case, it was “DVD Architect PAL Widescreen video stream”. Make sure in partcular that you choose a project matching your pixel aspect ratio.
If you wish, you can now go ahead and click “save” in the Render As window. If you see the magic words “No Recompression Required” in the preview window, then congratulations – no further changes are needed.
If, as is more likely, the video started slowly rendering, then cancel the render, go to file>render as, and make sure the template that you chose before is still selected. Now click “custom”. This will present a confusing list of options – don’t panic! Check each option against the information in MediaInfo. In my case, I had to change the “Field Order” from “Lower Field First” to “Upper Field First”.
Now the crucial information – bit rate! In my case, the bit rate was variable, and even MediaInfo could not tell me the maximum and minimum bit rates. My solution was to select constant bit rate instead, entering the “Nominal bit rate” value from MediaInfo (9,100,000). I clicked OK, saved the render and finally I saw the “No Recompression Required” text appear in the preview window. If your bit rate is constant already, I’m guessing that the same thing will work.
The only downside to converting variable bit rate to constant is that the files get a little bigger – in my case 20% larger. For me, it’s a small price to pay so that I can make full use of the “smart resample” function, but each Vegas user’s priorities are different.
Disclaimer: I am new to Vegas, so this little help guide is by no means definitive. If you happen to have the same problem that I did, hopefully it will help to guide you to a solution!
And if you know that there are mistakes in the above text, feel free to point them out to help other users. In particular, if you know how to smart resample variable bit rate MPEG-2 SD files without converting to constant bit rate, please add your thoughts to help me and other Vegas users 🙂