Welcome to Doom9's Forum, THE in-place to be for everyone interested in DVD conversion.

Before you start posting please read the forum rules. By posting to this forum you agree to abide by the rules.

 

Go Back   Doom9's Forum > Capturing and Editing Video > VirtualDub, VDubMod & AviDemux

Reply
 
Thread Tools Search this Thread Display Modes
Old 10th November 2008, 12:53   #1  |  Link
flanagann
Registered User
 
Join Date: Jul 2005
Posts: 12
Desynchronization Audio/Video MPEG2

Hi!!

I'm capturing some MPEG2 stuff with my DVB card. When I play it in VLC Audio and Video are perfectly synchronizated; nevertheless when I play it in VirtualDubMod audio is a little bit delayed.

It's a different delay depending on capture length and channel, so I cannot fix it just delaying audio in the Interleaving section.

My final aim is to compress video to MPEG4 and audio to AAC.

What can I do?? Why MPEG2 plays OK in VLC and not in VDubMod?

Any help is appreciated!
flanagann is offline   Reply With Quote
Old 10th November 2008, 12:56   #2  |  Link
flanagann
Registered User
 
Join Date: Jul 2005
Posts: 12
Quote:
Originally Posted by flanagann View Post
It's a different delay depending on capture length and channel, so I cannot fix it just delaying audio in the Interleaving section.
I mean I can solve it manually for each video, but I'm trying to automate the process for a lot of captures, so each Interleaving value would be different.
flanagann is offline   Reply With Quote
Old 10th November 2008, 15:10   #3  |  Link
setarip_old
Registered User
 
setarip_old's Avatar
 
Join Date: Aug 2005
Posts: 16,267
Hi!
Quote:
What can I do?? Why MPEG2 plays OK in VLC and not in VDubMod?
As long as it plays properly in TRUE players, such as VLC, I'd suggest to you that the file is in synch - and you shouldn't attempt to change that.

Although VirtualDubMOD has playback ability, it is primarily a VIDEO EDITOR and shouldn't be relied upon as a player...
setarip_old is offline   Reply With Quote
Old 10th November 2008, 15:25   #4  |  Link
Guest
Guest
 
Join Date: Jan 2002
Posts: 21,901
You can automate it by using DGIndex to generate an Avisynth script from a template that contains a DelayAudio() call in conjunction with the __del__ macro. Here is an example template:

vidmpeg2source("__vid__")
aud=mpeg2source("__aud__").DelayAudio(__del__)
AudioDub(vid,aud)

This will serve the audio and video together into VirtualDub and in sync.
Guest is offline   Reply With Quote
Old 10th November 2008, 17:37   #5  |  Link
flanagann
Registered User
 
Join Date: Jul 2005
Posts: 12
Quote:
Originally Posted by setarip_old View Post
Hi!As long as it plays properly in TRUE players, such as VLC, I'd suggest to you that the file is in synch - and you shouldn't attempt to change that.

Although VirtualDubMOD has playback ability, it is primarily a VIDEO EDITOR and shouldn't be relied upon as a player...
The thing is that audio and video are desync before (in VDubMod, not in VLC) and after compression (both VDubMod and VLC). It's strange that VDubMod has problems with the input file.

Quote:

You can automate it by using DGIndex to generate an Avisynth script from a template that contains a DelayAudio() call in conjunction with the __del__ macro. Here is an example template:

vidmpeg2source("__vid__")
aud=mpeg2source("__aud__").DelayAudio(__del__)
AudioDub(vid,aud)

This will serve the audio and video together into VirtualDub and in sync.
I've never used Avisynth but I'll try to work on what you suggest. What about VirtualDub-MPEG2 by fccHandler?? Does it work in a different way? I'll take a look, too.

Thanks for the answers!
flanagann is offline   Reply With Quote
Old 10th November 2008, 18:10   #6  |  Link
flanagann
Registered User
 
Join Date: Jul 2005
Posts: 12
Yeah!! fccHandler's MPEG2 Plugin for VirtualDub works nice!

No desync before and after the compression, perfect!!
flanagann is offline   Reply With Quote
Reply

Tags
audio, desynchronization, mpeg2, video

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 13:36.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.