Home > Uncategorized > Sony Vegas 10 takes ages to import, with Building Peaks running incredibly slowly at max CPU

## Sony Vegas 10 takes ages to import, with Building Peaks running incredibly slowly at max CPU

I spent a couple of hours troubleshooting why Vegas 10 seemed not to like my Flip Mino AVI files. Although it eventually imported the file – taking over an hour for a minute of SD video! – the audio was empty. Since the hard work seemed to be in ‘Building Peaks’ (detecting the audio track peaks in order to show it graphically), I assumed a codec imcompatibilility.

The Flip Mino AVI files are Microsoft ADPCM, 4bit, 44kHz. Assuming a problem with the drivers, I reinstalled them, but to no avail, even after a reboot. I therefore took the more drastic action of recoding all the audio into a format it could work with.

VirtualDub is a great tool for this – straightforward and free. Having changed the defaults to set Video mode to Direct Stream (ie. don’t touch it), and setting Audio to Full Processing, I set the Audio Compression to PCM (ie. uncompressed, lossless). I then processed a sample file, and tried it in Vegas.. and it worked great!

Both uncompressed PCM and MP3 seem to be readable in Vegas 10 without problem (PCM only adds around 5% file size to the compressed ADPCM, and should be lossless). Virtualdub ran through 1GB of video files in under 2 minutes.

To run this on a batch of files through the GUI would mean adding each file individually to a job list. Much easier, is to process an entire directory with the command line form of Virtualdub, using a saved settings file with the above configuration. You can save the settings from the UI to a file, which I quote here, since it’s just a textfile. I suspect this may not work on your system if  the codecs are in a different order, but have a try.

Flip ADPCM to PCM for Vegas.vcf

VirtualDub.audio.SetSource(1);
VirtualDub.audio.SetMode(1);
VirtualDub.audio.SetInterleave(1,500,1,0,0);
VirtualDub.audio.SetClipMode(1,1);
VirtualDub.audio.SetConversion(0,0,0,0,0);
VirtualDub.audio.SetVolume();
VirtualDub.audio.SetCompression();
VirtualDub.audio.EnableFilterGraph(0);
VirtualDub.video.SetInputFormat(0);
VirtualDub.video.SetOutputFormat(7);
VirtualDub.video.SetMode(0);
VirtualDub.video.SetSmartRendering(0);
VirtualDub.video.SetPreserveEmptyFrames(0);
VirtualDub.video.SetFrameRate2(0,0,1);
VirtualDub.video.SetIVTC(0,0,-1,0);
VirtualDub.video.SetCompression();
VirtualDub.video.filters.Clear();
VirtualDub.audio.filters.Clear();

Command line for using this file is (including my paths):

C:\Program Files\VirtualDub>virtualdub /s "C:\Documents\! projects\Video Editing\Flip ADPCM to PCM for Vegas.vcf" /b "C:\Documents\! projects\Video Editing\to_process" "C:\Documents\! projects\Video Editing\processed" /r

Job done!