View Full Version : Vdub input/output AR displayed wrong
DVFs_DrinkOrDie
14th May 2008, 08:45
I've been doing this video stuff 8 years and I guess I haven't learned anything.
I have a VOB on the hard drive from a DVD I own. Plays in Nero Vision perfectly. Plays in any program that supports VOB, no problems.
When I open the VOB in virtualdubMod, it stretches vertically a noticable amount. Not only that, the audio is WAY out of sync.
Let's stick with the video problem for now. This stretching is annoying. It carries over into the transcoded AVI as well. I don't understand why. Can anyone shed light on this? TKS in advance.
attached is a sample of what vdub puts out, and input looks the same, even though the file does not play like this in any other program. You can clearly see the stretching.
GodofaGap
14th May 2008, 10:16
VirtualDubMod does not stretch vertically, players stretch horizontally. Standard DVD resolutions (e.g. 720x480, 720x576) are neither 4:3 or 16:9 on a 1:1 PAR display (like computer monitors). To correct for this media players resize the video on-the-fly by reading an AR signal in the video stream. When editing your video you do not want this to happen and therefor things appear unnatural. When saving the AVI however this signal may get lost if the codec does not support AR signalling.
The audio issue is probably related to VDM not supporting pulldown.
manono
15th May 2008, 09:51
This stretching is annoying. It carries over into the transcoded AVI as well.
Been doing this for 8 years, you say?
As mentioned, the source VOB is 720x480. It was encoded as 16:9 which tells the player how it's to be resized at playback time. It will play at roughly 854x480 (480 x 16/9 = 853.33). AVIs, on the other hand, are usually encoded as 1:1. To get rid of the stretched video you have to resize it, and not leave it at the original aspect ratio. In your case, although I haven't checked out your pic for an accurate crop/resize, after cropping away the black bars, 640x272 might be one acceptable resize.
As for the audio, don't rely on VDubMod to play it in synch. It's not designed as a player.
DVFs_DrinkOrDie
20th May 2008, 02:39
AVIs, on the other hand, are usually encoded as 1:1.
That is sooo strange. I've never seen an AVI that was reported as being 1:1 using Mediainfo or any other other similar program. Seems to me that the width would have to be the same as the hight for that to happen.
As for the audio, don't rely on VDubMod to play it in synch. It's not designed as a player.
I realize that. I wasn't talking about how vdub plays it. It does play it out of sync, but that's not what I'm concerned with. It often does that. Even if I choose to save the audio track as a wav, the wav ends up being nearly an hour longer than the video. Obviously, this will cause a sync problem in the output avi.
DVFs_DrinkOrDie
20th May 2008, 03:32
Sorry about the double post. Just wanted to let you know how it turned out. As far as your calculations are concerned, they are perfect. Using vdub I cropped out the black bars and used your resize dimensions and it turned out great.
Also, I wanted to explain that although I've been doing this since 2000, I've never tried working with VOB's directly. I always used programs that made AVI's directly from DVD. That method produces mixed results and allows little real control so I decided to try what I am doing now, using VOB's on the HDD.
As far as the audio is concerned, I was being a bit stupid. I used Vdub in full process mode for the audio, converted it to 44.1 and came up with a wav of the proper length. For some reason, even when I use this wav, the audio is still out of sync in the final AVI.
unskinnyboy
20th May 2008, 03:45
That is sooo strange. I've never seen an AVI that was reported as being 1:1 using Mediainfo or any other other similar program. Seems to me that the width would have to be the same as the hight for that to happen.1:1, here refers to the Pixel Aspect Ratio (PAR), means every pixel in an AVI would be square, which isn't the case with the pixels on the DVD. Read up on it. There are many threads discussing this.
As far as the audio is concerned, I was being a bit stupid. I used Vdub in full process mode for the audio, converted it to 44.1 and came up with a wav of the proper length. For some reason, even when I use this wav, the audio is still out of sync in the final AVI.Why did you convert to 44.1KHz and to what format? The audio track on the DVD would be 48KHz, and should be kept at the same frequency.
GrofLuigi
20th May 2008, 07:11
DVFs_DrinkOrDie,
About the audio length, there was answer already...
The audio issue is probably related to VDM not supporting pulldown.
Learn about Pulldown or Inverse Telecine (IVTC).
GL
DVFs_DrinkOrDie
21st May 2008, 23:53
1:1, here refers to the Pixel Aspect Ratio (PAR), means every pixel in an AVI would be square, which isn't the case with the pixels on the DVD.
OK, thanks. That clears it up.
Why did you convert to 44.1KHz and to what format? The audio track on the DVD would be 48KHz, and should be kept at the same frequency.
I used vdub in full process mode for the audio, to create a wav. I kept the 48K frequency this time. The thing I don't understand is why vdub reports the original audio track as being way too long, but when I convert it to 48k wav, the wav comes out the correct length. Still, it doesn't sync when I use the wav for the avi, and it doesn't sync when I convert the wav and use MP3 for the avi.
I have plenty of space on my HDD but there's no sense in keeping VOB's on it if I can make a decent avi under 2 gig. So that's what I'm trying to do here. I'd like to get my DVD's into avi's on my HDD.
Thanks for the help everyone. I'll research everything I can find about Pulldown or Inverse Telecine and see what I can find out about getting the audio to sync in my avi.
DVFs_DrinkOrDie
22nd May 2008, 03:47
The audio issue is probably related to VDM not supporting pulldown.
My version of VdubM does support inverse telecine, and pulldown removal (?) as my attached picture shows.
GodofaGap, thanks for leading me in the right direction, you lead me to find the solution to the audio sync problem. As the screenshot shows, I changed the video frame rate to match the audio duration. The output AVI is now in sync.
Manono, thanks for the advice for cropping and resizing to get the video looking like it should.
Now everything seems to be right in 'conversion land'.
vBulletin® v3.8.11, Copyright ©2000-2026, vBulletin Solutions Inc.