PDA

View Full Version : problems with audio /video synch with megui


larénion
22nd March 2009, 12:14
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 !

Sharktooth
23rd March 2009, 03:24
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.

larénion
23rd March 2009, 09:31
Hi,
Thanks for your response.:thanks:
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?

Sharktooth
23rd March 2009, 13:44
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.

larénion
23rd March 2009, 20:10
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:thanks:

b66pak
23rd March 2009, 22:40
post your .avs...
_

larénion
24th March 2009, 05:50
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
24th March 2009, 19:48
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.

Inspector.Gadget
24th March 2009, 20:59
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):

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?

b66pak
24th March 2009, 21:21
if its only 5 min .vob then post it...use mediafire or megaupload...
_

larénion
25th March 2009, 05:55
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.
:thanks:

larénion
25th March 2009, 21:04
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
28th March 2009, 21:28
Hi,

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

Thanks

poisondeathray
28th March 2009, 21:37
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)

larénion
6th April 2009, 11:33
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.

poisondeathray
6th April 2009, 16:37
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()

larénion
8th April 2009, 21:08
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...)

b66pak
8th April 2009, 22:15
if its only 5 min .vob then post it...use mediafire or megaupload...
_

again...
_

larénion
11th April 2009, 20:48
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?

Sharktooth
12th April 2009, 14:47
... where's the link?

larénion
12th April 2009, 21:51
Here is the link

http://www.mediafire.com/?sharekey=bbbff143e0dcc7266e7203eb87368129025d1c5d65da579ace018c8114394287

2 files .zip (I had to create 2 files to upload)

b66pak
13th April 2009, 19:59
here is my avs:


DGDecode_mpeg2source("F:\VTS_01_1.d2v", info=3)

ColorMatrix(hints=true, interlaced=true, threads=0)

#blank deinterlace line

crop( 4, 2, -4, -2)

Spline36Resize(720,528) # Spline36 (Neutral)

#denoise


the audio has a +192 ms delay...


here is the encoded version (h264@1000mbs in .mkv + original .ac3)

http://www.mediafire.com/?xlhxn2tmbja
_

larénion
14th April 2009, 20:52
Hi,
Thanks for your job.

I download the .mkv
How did you find the +192ms delay?

Do you have an idea of the origin of this delay?

larénion
23rd April 2009, 16:10
Hi,

The initial vob and the dvd have already an V/A delay, so to get the exact sync, 192ms is a good value.

But to have the same delay of the dvd, I think that 50 ms is perhaps good.

So to conclude, I have 10 small pgc ( of 5 min cartoons) on the dvd. Each cartoons produce a 50ms delay when we make the .avs
When I encode the entire dvd, I note an approximately 500ms delay between Video and audio at the end of the film but it is progressive delay!!!

So if I can't remove those delays, can somebody tell me how can modify the framerate of the video (in the .avs script?) to make the V/A synch at the end of the film.

Thanks for help

sat-jokar
2nd May 2009, 06:49
this is from one guy name guns1inger and its work fantastic ,

open the avi in g-spot 2.60beta and check the audio. There is a good chance that the audio has been encoded with VBR MP3, which seems to cause sync issues with a lot of encoders. The latest version of ConvertXtoDVD (DivxtoDVD's big brother) has a lot less problems with it, but even it isn't immune.

If this is the case, open the avi in virtualdubmod (click OK to the VBR warning you will get), then go Streams->Stream List. Right click on the audio and select Full Processing. Right-click again and select Compression. Choose Uncompressed PCM. Click OK, then click Save WAV and create new file. The file size should be around 100mb per 10 minutes of footage (i.e. 90 minute file should produce a 900mb file, give or take a few MB). Once this completes, click on Add, and select your wav file. Click on the MP3 audio track, then click on the disable button. Click OK, then go File->Save as. Make sure it is set to Direct Stream Copy, and save a new avi file with just your new audio track. Finally, open this new avi file, and test it for audio sync. If everything is good, use this in DivxtoDVD and see how it goes.

Of course, if it isn't VBR MP3 audio, you have something else to worry about, so do a scan for bad frames in virtualdubmod at this point.


the source

http://forum.videohelp.com/topic309224.html

7ekno
6th May 2009, 06:38
Tried DGIndexing each individual cartoon as the video starts (to avoid the common anti-ripping measure of blank audio cells to havoc sync)?!?

That is, find the first full video frame, step one frame back from that, and mark the DGIndex start, then set the end marker at the end of video ...

Use DGIndex on each cartoon, queue them all in MeGUI seperately (but can keep the single VOB in which they will reference) ...

Progressive sync problems are either VBR audio issues, or blank audio cells in the VOB inserted delibreately to hamper ripping (a common Disney trick) ...

7ek