Welcome Guest ( Log In | Register )


Important

The forums will be closing permanently the weekend of March 15th. Please see the notice in the announcements forum for details.

 
Audio Sync And Invalid Format Problems
« Next Oldest | Next Newest » Track this topic | Email this topic | Print this topic
Thermopyle
Posted: Oct 28 2002, 05:34 AM


Unregistered









Ok, I have nearly four hours of DV footage from my recent vacation. I capture it with ulead Videostudio 6.0 and join all my tapes and export the whole file as a Type-2 DV file so vdub can read the audio. While I'm doing this I use the Lame ACM codec to encode the audio to 192 kbps at 48000 hz.

First thing I did is open this avi in WMP which plays it just fine with synchronized audio.

I then open the file with vdub, enable the de-interlace filter, set audio to direct stream copy, set video to full-processing mode and encode with Divx 5.0.2 at a bitrate of 1800 and do 2-pass, first pass.

When it's done, I just select the codec again and change it to 2-pass, second pass, and save the avi.

When that's done I get way out of sync audio, and if I use the seek bar to go to anywhere in maybe the first 15 minutes of the video I get the "file format is invalid" message box and the video stops playing, but I can just his play again and it will play the video.

I'm very stumped on this one, I've been fooling with this for weeks and can't figure it out. Any ideas anyone?
 
  Top
pathfinder
Posted: Oct 28 2002, 08:26 AM


Unregistered









Hi Termopyle

I was solving a similar problem a week ago (may be related): tried to synchronize DV -> DivX Video with mp3 audio and get rid of that error about invalid file format. The ACM MP3 codec in VDub only suggested 24 kHz for my 48 kHz sound (I mean the highest) wich syncronized perfectly in the final file. But I tried to experiment with encoding audio into 48 kHz mp3 externally. I used several different programs (Waver [shareware Lame/Blade based], Steinberg WaveLab, Cakewalk Sonar, Sequoia and I think even CoolEdit 2000 - all except Waver use professional (licensed) mp3 encoder). The whole weekend went by with no success: first the file got approx. 70 ms longer (34 ms of silence in the beginning and ~40 ms in the end). Chopping off the silence didn't help - looked like the file was stretched irregularly within the 'right' duration.

Luckily enough on Sunday night (!!! X(8->)) I noticed a little option in mp3 encoding in WaveLab called Padding: ISO compliant, Alway and Never. The option 'ISO compliant' solved all the problems. The sound mixed perfectly with video in VDub (I had to change the file header into WAV by mpa2wav (cool program!)) and no 'invalid format' errors.

Seems like you have similar problem with synch and that error, perhaps the problem has similar root - padding during encoding.... Hope this will ketch the eye of someone who knows mp3/acm specifics.
 
  Top
ChristianHJW
Posted: Oct 28 2002, 04:40 PM


Advanced Member


Group: Moderators
Posts: 1768
Member No.: 2
Joined: 7-July 02



Lame is a great MP3 codec, but if you were using it in 'VBR' mode ( Variable Bitrate ) its very likely your AVIs run our of sync. Try to get hold of the ( illegal ) RADIUM MP3 codec, of course just to test if this will solve your problem ( Radium is CBR = Constant Bitrate ). Then you finally have to buy the Fraunhofer MP3 Professional codec, as the standard MP3 codec coming with Windows will only allow very low bitrates and quality, and using Radium is illegal .... tongue.gif

--------------------
Visit the unofficial Virtualdub support forum on http://forums.virtualdub.org - help to reduce the big number of emails Avery Lee is getting every day !!
Support matroska as container and Gstreamer as the only truely open, x-platform multimedia platform ....
 
       Top
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:
2 replies since Oct 28 2002, 05:34 AM Track this topic | Email this topic | Print this topic

<< Back to Advanced Video Processing