View Full Version : Desynchronization Audio/Video MPEG2
flanagann
10th November 2008, 12:53
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
10th November 2008, 12:56
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.
setarip_old
10th November 2008, 15:10
Hi!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...
Guest
10th November 2008, 15:25
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.
flanagann
10th November 2008, 17:37
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.
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
10th November 2008, 18:10
Yeah!! fccHandler's MPEG2 Plugin for VirtualDub (http://home.comcast.net/~fcchandler/Plugins/MPEG2/index.html) works nice!
No desync before and after the compression, perfect!!
vBulletin® v3.8.11, Copyright ©2000-2026, vBulletin Solutions Inc.