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 > Video Encoding > MPEG-4 Encoder GUIs

Reply
 
Thread Tools Search this Thread Display Modes
Old 22nd March 2009, 12:14   #1  |  Link
larénion
Registered User
 
Join Date: Mar 2009
Posts: 20
problems with audio /video synch with megui

Hi, excuse me for my english but I’m french
I have problems with audio /video synch with megui
Here is my procedure :

Dvd decrypter (2.70a)
- Rip the dvd with dvd decrypter and i get some vob files (I use the file mode and choose the vob manually because in IFO mode there are not one big pgc but several small pgc !)
Megui (0.3.1.1017)
- create d2v file and ac3 file with d2v creator
- the ac3 file have 0ms delay mentionned
- Open the d2v file in Avisynth creator
o No change in input DAR
o Auto crop
o Resize (suggest resize)
o Mpeg2 deblocking
o Colour correction
o I check Anime (because it is)
o I check analyse button and let him choose the good filter to deinterlace
o Resize filter « Lanczos »
o I save
- The d2v and ac3 files is charged in megui automatically
- I use unrestricted 2 pass anime toons HQ for the video
- I use NDAAC HE 64kbps for the audio
- I use auto encode and select a file size and a mp4 box and queue
- I start jobs in Queue

The audio and video synch is OK at the beginning of the film but the decalage is progressive along the film. The audio is then before the video at the end of the film.

Please help !
larénion is offline   Reply With Quote
Old 23rd March 2009, 03:24   #2  |  Link
Sharktooth
Mr. Sandman
 
Sharktooth's Avatar
 
Join Date: Sep 2003
Location: Haddonfield, IL
Posts: 11,768
first of all things, let megui auto-update to the latest version (get ALL the updates) and also use a newer ripping program, like DVDFab HD Decrypter.
also ensure the video FPS are correct before encoding.
Sharktooth is offline   Reply With Quote
Old 23rd March 2009, 09:31   #3  |  Link
larénion
Registered User
 
Join Date: Mar 2009
Posts: 20
Hi,
Thanks for your response.
it's OK for MeGui's update
I will try DVD fab today.
But how can I check if the fps is good or not?
larénion is offline   Reply With Quote
Old 23rd March 2009, 13:44   #4  |  Link
Sharktooth
Mr. Sandman
 
Sharktooth's Avatar
 
Join Date: Sep 2003
Location: Haddonfield, IL
Posts: 11,768
there are several ways.
the easier one is to play the avs file in MPC(HC), dub the audio and check if it is in synch.
Sharktooth is offline   Reply With Quote
Old 23rd March 2009, 20:10   #5  |  Link
larénion
Registered User
 
Join Date: Mar 2009
Posts: 20
Hi,
I don't understand "dub the audio"

I use dvd fab (full disk mode because of the several small pgc)
I create D2V file and the avs script.
I play avs script file in MPC HC and the audio/video is not synch (OK at the beginning and not synch at the end), exactly like the mp4 files I have done before.

What can I do?

Thanks
larénion is offline   Reply With Quote
Old 23rd March 2009, 22:40   #6  |  Link
b66pak
Registered User
 
b66pak's Avatar
 
Join Date: Aug 2008
Location: The Land Of Dracula (Romania - EU)
Posts: 934
post your .avs...
_
b66pak is offline   Reply With Quote
Old 24th March 2009, 05:50   #7  |  Link
larénion
Registered User
 
Join Date: Mar 2009
Posts: 20
Hi,

Here is the .avs
--
DGDecode_mpeg2source("C:\Users\Bertrand\Documents\Films\VOB\Tchoupi musicien\dvd fab\FullDisc\TCHOUPY_MUSICIEN_SCN\VIDEO_TS\VTS_01_1.d2v", cpu=4, info=3)
ColorMatrix(hints=true, interlaced=true, threads=0)
Load_Stdcall_Plugin("C:\Program Files\megui\tools\yadif\yadif.dll")
Yadif(order=1)
crop( 0, 2, 0, -2)

LanczosResize(720,528) # Lanczos (Sharp)
#denoise
--
larénion is offline   Reply With Quote
Old 24th March 2009, 19:48   #8  |  Link
larénion
Registered User
 
Join Date: Mar 2009
Posts: 20
Hi,

I think the progressive audio/video decalage is perhaps due to the type of dvd. My son has several dvd wich contains severals cartoons. Every cartoons lenght is 5min, so we have on the dvd several pgc of 5min and not a big pgc which include all the cartoons.

I try an other cartoons which have one big pgc 50min lenght and i didn't have the progressive audio/video decalage.Just a very small constant decalage.

Thanks you for help.
larénion is offline   Reply With Quote
Old 24th March 2009, 20:59   #9  |  Link
Inspector.Gadget
Registered User
 
Join Date: May 2008
Posts: 1,618
DGIndex can be used on a VOB that represents only a single 5 minute cartoon and (barring silent leading cells) calculate the audio delay correctly. Try the following AVS Script in MPC (remember to allow ffdshow to decode YV12):

Code:
vid = DGDecode_mpeg2source("C:\Users\Bertrand\Documents\Films\VOB\Tchoupi musicien\dvd fab\FullDisc\TCHOUPY_MUSICIEN_SCN\VIDEO_TS\VTS_01_1.d2v", cpu=4, info=3).ColorMatrix(hints=true, interlaced=true, threads=0)
aud = DirectShowSource("C:\Users\Bertrand\Documents\Films\VOB\Tchoupi musicien\dvd fab\FullDisc\TCHOUPY_MUSICIEN_SCN\VIDEO_TS\youraudiofile.ac3", video=false).DelayAudio($)
AudioDub(vid, aud)
Where "$" is your audio delay. Example: If your audio delay is -13 milliseconds, you would use the value -.013 in DelayAudio().

If you still have trouble with progressive desync, there's a problem with your video framerate somewhere; do you perhaps use DGIndex with "Ignore Pulldown Flags" or "Force Film" enabled?
Inspector.Gadget is offline   Reply With Quote
Old 24th March 2009, 21:21   #10  |  Link
b66pak
Registered User
 
b66pak's Avatar
 
Join Date: Aug 2008
Location: The Land Of Dracula (Romania - EU)
Posts: 934
if its only 5 min .vob then post it...use mediafire or megaupload...
_
b66pak is offline   Reply With Quote
Old 25th March 2009, 05:55   #11  |  Link
larénion
Registered User
 
Join Date: Mar 2009
Posts: 20
Hi,

I will try to understand the response of Inspector.Gadget. Thanks

On ONE dvd there are 13 cartoons 5min lenght (13 pgc when I decrypt) and my vobs files include all the cartoons and are 65min lenght.

I'll come back with results.
larénion is offline   Reply With Quote
Old 25th March 2009, 21:04   #12  |  Link
larénion
Registered User
 
Join Date: Mar 2009
Posts: 20
Hi,

I try the AVS script in MPC and the decalage is always progressive exactly like before.(I don't touch anything about the YV12)

Please could you clarify: "do you perhaps use DGIndex with "Ignore Pulldown Flags" or "Force Film" enabled?"

Thanks
larénion is offline   Reply With Quote
Old 28th March 2009, 21:28   #13  |  Link
larénion
Registered User
 
Join Date: Mar 2009
Posts: 20
Hi,

Could somebody tell me how to use "Force film" or "Ignore Pulldown Flags" in DGDecode syntax?

Thanks
larénion is offline   Reply With Quote
Old 28th March 2009, 21:37   #14  |  Link
poisondeathray
Registered User
 
Join Date: Sep 2007
Posts: 5,414
Quote:
Originally Posted by larénion View Post
Hi,

Could somebody tell me how to use "Force film" or "Ignore Pulldown Flags" in DGDecode syntax?

Thanks
I don't think you can with the the built in tool in megui

You can do it manually with DGIndex (not through megui) (video=>field operation)
poisondeathray is offline   Reply With Quote
Old 6th April 2009, 10:33   #15  |  Link
larénion
Registered User
 
Join Date: Mar 2009
Posts: 20
Hi,
I try with DGindex and use "Force film" or "Ignore Pulldown Flags" but the results was the same. I also had an audio delay at the beginning of the film. What can i do to correct the lenght of video or audio?

On the other hand, I encode other cartoons with have one large pgc when i decrypt. With this kind of dvd, I haven't a progressive but a constant decalage of audio (the audio was late).
I managed to correct it before encode (thanks to Sharktooth): I preview the avs script in MPC and I use the Audio options (audio time shift) to find the correct delay to use in Megui muxer.
For example, in "Robin des bois" cartoon, I use -500ms to have a correct synch!!.

I have some questions:
- Does the problem of synch is due to "deinterlacing method"?
- are there some tools which give the exact length of video and audio which could prevent us with progressive decalage before encode?


Thanks for help.
larénion is offline   Reply With Quote
Old 6th April 2009, 15:37   #16  |  Link
poisondeathray
Registered User
 
Join Date: Sep 2007
Posts: 5,414
1) No the deinterlacing method should not cause A/V sync issues
2) You can use mediainfo to determine stream lengths. Gspot or avinaptic may also give you some information

For the delay issue, when you demux the audio, it will have the delay value written in the name. You either implement it into the script with DelayAudio() - See Inspector.Gadget's post above, or directly enter that audio into the megui audio (you will see the delay value change in the box). I would construct a script as above, then test it in a media player for A/V sync. If you are not re-encoding the audio, just enter that value as the delay when muxing.

You might try another source input filter e.g. DirectShowSource()
poisondeathray is offline   Reply With Quote
Old 8th April 2009, 20:08   #17  |  Link
larénion
Registered User
 
Join Date: Mar 2009
Posts: 20
I understand what i can do if there is constant V/A sync problems.
But if the V/A décalage is progressive. What can I do?
Perhaps modify the video fps? how?
is there a syntax in AVS script creator?

For my cartoons dvd I'll try to find why there is a desync all the same...

Can somebody help me with the decrypt options in DVD decrypter or DVDFab (to perhaps prevent from bad frame...)
larénion is offline   Reply With Quote
Old 8th April 2009, 21:15   #18  |  Link
b66pak
Registered User
 
b66pak's Avatar
 
Join Date: Aug 2008
Location: The Land Of Dracula (Romania - EU)
Posts: 934
Quote:
Originally Posted by b66pak View Post
if its only 5 min .vob then post it...use mediafire or megaupload...
_
again...
_
b66pak is offline   Reply With Quote
Old 11th April 2009, 19:48   #19  |  Link
larénion
Registered User
 
Join Date: Mar 2009
Posts: 20
Hi,

I manage to send the vob file to mediafire.

I decrypt just one cartoon (5 min) on the dvd and I compare the vob file and the .avs file create by avs creator in megui. I use VirtualDub. Here is the results:

FICHIER VOB: durée: 0:05:01:280
IMAGE 0: black
image 1: beginning of the cartoon(0:00:00:040)
...
image (last-1): end of cartoons
image (last): black

7532 FRAMES

FICHIER avs: durée: 5:01:280
IMAGE 0: black
image 1: black
image 2: beginning of the cartoon(0:00:00:080)
...
image (last-1): end of cartoons
image (last): black

7532 FRAMES

We can see that in the avs script, the cartoon begin at the image 2 whereas in the vob file it's at the image 1 and the delay beetwen the two image is 40ms I think.

What do you think about that?
larénion is offline   Reply With Quote
Old 12th April 2009, 13:47   #20  |  Link
Sharktooth
Mr. Sandman
 
Sharktooth's Avatar
 
Join Date: Sep 2003
Location: Haddonfield, IL
Posts: 11,768
... where's the link?
Sharktooth is offline   Reply With Quote
Reply

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 15:19.


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