PDA

View Full Version : Audio out of sync when I backup with MeGui


sven_pether
22nd December 2006, 22:39
Dear Gentlemen,

I have started to make some backups of some of my DVD movies to put on my HTPC. I did National Treasure, Glory Road, Tommy Boy and Talladega Nights. Only National Treasure came out in sync, all the others was out of sync for some reason. I'm using MeGui to create an H264 AVC encode with x264 and 6ch ACC sound using MeGui and Nero DIgital Audio. I do it in the following steps and I use the same settings every time in MeGui.
1. Create dv2 project
2. Create avisynth script
3. Encode Video & Audio
4. Mux with mp4box in MeGui.
Maybe it's the way I prepaire the file before, I don't know.
How can I find out the easiest way to correct the delay before I mux the files together?
Also , If I mux the H264 video file together with the original ac3 file in a MATROSKA container and put in the correct delay shown in the ac3 file, it's still out of sync
Pether

buzzqw
22nd December 2006, 23:15
just miss the 0 pass: what ripping program ?

give a try to ripit4me :)

BHH

sven_pether
23rd December 2006, 06:13
BHH Thanks for your answer.

Step 0: All DVD backups was made with Ripit4me.

Pether

check
23rd December 2006, 07:41
when you extract the audio with dgindex (is this how you do it?) it should say in the filename "DELAY __ms". Use this value to correct for any audio delay.

Sharktooth
23rd December 2006, 15:06
Check, IIRC megui should automatically use that value to correct the delay (unless something has changed and i've missed it...).

sven_pether
23rd December 2006, 16:34
Thanks for your answers, I did another try with Tommy Boy last night from the beginning.

1. Ripped "Movie Only" with ripit4me
2. Created "dv2" file and demuxed with MeGui
the ac3 file used showed DELAY 0ms
3.Created Avisynth with MeGui.
4. Encoded picture and sound with x264 and Nero Digital Audio with MeGui. I made sure delay was 0ms.
5. Muxed the two streams together with mp4box through MeGui, made sure it still said 0ms.

Now this is what I discoverd this time. The sound is slowly getting out of sync during the duration of the movie. It's pretty good in the beginning and slowly getting worse.

I have used the same settings for encodings in the past, but for some reason I can't get this to work anymore.

I have MeGui set up on two different computers and I have the same problem on both.

The vob files created by ripit4me are in sync and good.

Pether

sven_pether
23rd December 2006, 18:05
I did the same test on the other computer with Glory Road, same result:confused:

buzzqw
23rd December 2006, 20:16
please post the avs script

BHH

sven_pether
24th December 2006, 00:26
Ok, Here's the AVS file.
:thanks:

sven_pether
24th December 2006, 04:02
Ok Gentlemen, This is what I have done so far.

I took the same ripped files of Glory Road and used Nero Recode. The result was perfect. Everything was in sync.
So i tried to demux the nero file and take the sound off that file and mux it with the file created by MeGui and x264. The sound was out of sync.
I guess something goes wrong in the process of creating the d2v file, the avs file or the encoding itself, i don't know. Please help, would like to be able to create my files using MeGui rather than Nero since I have more control.

Pether

sven_pether
24th December 2006, 04:17
Ok
I decided to include the Movie Info files from the two encodes also, maybe it can help. Nero is the one that came out good and MeGUI is the one that came out bad ( out of sync ).

Sharktooth
24th December 2006, 14:42
Track # 1 Info - TrackID 1 - TimeScale 24000 - Duration 01:57:51.898
and
Track # 1 Info - TrackID 1 - TimeScale 24000 - Duration 01:57:59.864

The first is nero video track info, the second's megui....

audio is for both:
Track # 2 Info - TrackID 2 - TimeScale 48000 - Duration 01:57:58.144

So the megui encode has something wrong. Please check the avisynth script (and the FPS) before encoding the video track.

sven_pether
26th December 2006, 17:41
Can't get it to work,
Tried by manually creating an d2v file outside of MeGUI but still audio is out of sync on most ( not all ) of my encodes.
Will use Nero Recode since I can't get MeGUI to work anymore.
:thanks:

buzzqw
28th December 2006, 13:37
could you try my automkv... since the workflow of megui and automkv are similar i want to exclude problems within megui

thanks

BHH

sven_pether
28th December 2006, 15:07
could you try my automkv... since the workflow of megui and automkv are similar i want to exclude problems within megui

thanks

BHH

I sure will give it another try, I'll get back to you.

Pether

recover
2nd January 2007, 02:02
I'm having the EXACT same problem...
However, I'm not using MeGUI.
What I have done is:
*got the .vob files from a friend, and they play perfectly in MPlayer/VLC (no audio out-of-sync)
*created a .d2v file with DGIndex, got a .ac3 file with DELAY 0ms.
*made a simple avisynth script with load the .d2v file and the audio file and put them together to a clip.
*played the avisynth script in virtualdub and noticed the audio out of sync.

I'm also experiencing that the out-of-sync isn't as bad in the beginning of the clip as in the end. (I suspect there is some silence between the clips in the .vob file which isn't getting into the audio file, since the audio seems to be playing at the correct speed all along, I may be wrong however)
I have even tried exporting audio as .wav, same result.

When looking at the file details in virtualdub I get this:
Video:
Frame size, fps: 720x576, 25.000 fps
Length: 48293 frames (32:11.71)
Audio:
Sampling rate: 48000Hz
Length: 93129216 samples (32:20.19)

Thanks for all your help! :)

check
2nd January 2007, 09:19
hmm, losing 11 seconds is very random, are you sure the video encoder finished properly? Post your log, you can find old logs in the megui folder.

Franky
3rd January 2007, 13:29
I had almost the exact same problem. Try downloading the nicefps avisynth plugin and add nicefps() at the end of your script, that solved it for me.

recover
3rd January 2007, 15:40
Unfortunately, that didn't solve it for me... :/

Student Driver
3rd January 2007, 16:14
I have had the same delay issue (about 9 seconds) for several movies, and stopped using MeGUI altogether because of it since Recode doesn't have this issue. I might try the NiceFPS plugin and see what happens.

Sharktooth
3rd January 2007, 17:07
I think the problems come from the source.
Student Driver and recover, did you recode a DVD or an already encoded source?

Student Driver
3rd January 2007, 18:41
I think the problems come from the source.
Student Driver and recover, did you recode a DVD or an already encoded source?

This happens with both. If it was already encoded (such as DivX or XviD) it almost always has a gradual delay. DVDs fail to hold sync for about 50% of the time. My last DVDs were NWD 6 and 7, along with ROAM (mountain bike movies) and I think NWD 6 worked OK with MeGUI with the others had gradual delays. I tried adjusting the framerate several times, and it didn't make any discernable difference.

Sharktooth
3rd January 2007, 18:45
what was the framerate and output container?

Student Driver
3rd January 2007, 18:50
MP4, and I think it was 25fps (matched to source) and fiddled a bit with 23.97... as well. As I am at work, I can't get to my box to run another test encode and get all the settings.

Sharktooth
3rd January 2007, 18:54
i have no NTSC movies but i tried with 25 fps (PAL) ones an there was no desynch. so i suppose there's some approximation in frame rate somewhere... something like 23,97 instead of 23.97602
to prove it check if the encoded video stream duration is lower than the source (audio stream should be ok).

Student Driver
3rd January 2007, 21:15
I was able to do a quick check with one video, and DG came up with 29.970030 during the index build. I am running this video again through 2 pass to see if it's one of the ones that goes out of sync.

recover
4th January 2007, 00:44
Sharktooth, I think you're on to something...
I'm able to make sync the audio and video at some places by AssumeFPS()ing with different values, but when it's synced at one place, another place becomes out-of-sync.
DGIndex reports 25.000000 fps (PAL) in the "Video" box while in the "Status" box it jumps around all from 24.92 to 25.02, I have no idea if this have any meaning.

Could any of you mention any other program, which doesn't have this issue, I might use to convert the .vob files to maybe uncompressed .avi and then edit it as usual after that?

Thanks.

check
4th January 2007, 04:28
sounds like a funky stream. instead of using assumefps(), try convertfps(), or any other filter that will change the framerate to the desired one.

Oxygen
4th January 2007, 11:33
I also have a progressive desynch issue with a dvb-t/mpg catpure file converted into a mkv file (something like 1100ms per hour).
The pipe for the encoding is the folowing:
1. capture as a mpg file
2. create a dv2 file shorter than the capture
3. encode

I fixed it by re-adjusting the audio speed, not very clean but it works.

As the dv2 creation gives a GOP error, i suppose it's from that part, i'm trying a ts capture this time see if it gives better results.

recover
4th January 2007, 18:01
ConvertFPS() did not work either, no matter what value I gave it, the audio was always at the same place in the video (and the length of both the video and audio stream didn't change as well).
I'm trying some other programs now...

Sharktooth
4th January 2007, 18:57
@recover: the same issue happens with bencos... so i think the problem lies in how the source was encoded. i still think is a FPS issue.

Sirber
4th January 2007, 18:59
Maybe it's a new kind of protection from Sony and M$... ;)

sven_pether
4th January 2007, 21:14
Ok, so I made another try with MeGUI

Took one of my older movies " Episode1" wich I have done before. The sound is still out of sync the same way as in all the other encodes. AS a matter of fact I can't get any encodes to work anymore without going slowly out of sync.

Not sure yet what the problem is but I'm sure it's the video stream that goes bad, just as it was stated in one of my earlier mails. The sound stream created muxes good with a file encoded with Recode.

This is the process I have been using all the time, but has only the last month giving me problems.
1. RipIt4me (movie only)
2. create dv2 stream through MeGUI
3. create avs script through MeGUI
4. encode video and audio with x264 & NeroACC through MeGUI
5. Mux with mp4box through MeGUI

Result stream is slowly going out of sync always.

I do only NTSC encodes since I live in an NTSC country.

I even tried to rip the file and then open it with DVDshrink and reauthor the file with no result. All my VOB files stays in sync when played and if I encode with Nero Recode it works.

This has become a big mystery for me since I have been using MeGUI for 7 months without any problem, not sure what could have happend. Everything checks out good and I'm using the latest updates for MeGUI.

Any help or suggestions on what to continue with would be greatly appreciated.

Pether

Carpo
4th January 2007, 21:42
do you use ffdshow by any chance - only time i have had sync issues was with an old version of that tool

sven_pether
4th January 2007, 22:02
I'm using Nero Showtime to play my mp4 files

Carpo
4th January 2007, 22:04
give media player classic a try - that plays near on everything and something i have been using for last 18 months when a friend put me onto it and i have not had one issue with any of the files i have backed up using megui, MP10 and MP11 on the other hand.......

JarrettH
4th January 2007, 23:14
Check, IIRC megui should automatically use that value to correct the delay (unless something has changed and i've missed it...).

There's two opportunities to add the delay correction: in the audio encoder and muxer...which do you input the delay? :cool:

sven_pether
4th January 2007, 23:56
give media player classic a try

Carpo, I'm sorry to say I have, and as i said earlier I have the same problem on my other computer. I used media player classic to see if there was a delay correction that could be adjusted, but I found out it's slowly going out of sync.

Sharktooth
5th January 2007, 00:36
This thing is driving me crazy...
From what i've understood the video duration is lower than it should be but the FPS are ok...
Can you verify if the source frames number is the same as the encode frames number?

sven_pether
5th January 2007, 02:39
This thing is driving me crazy...

Same here. I will start working some more on it tommorow. I'm kind of overloaded at work.

check
5th January 2007, 03:18
I don't live in NTSC land, but could this be caused by using DGIndex with 'honor pulldown flags' enabled and a hybrid stream?

Sharktooth
5th January 2007, 03:58
yes...

sven_pether
5th January 2007, 18:30
a hybrid stream

With a hybrid stream i guess you are talking about a mix of progressive and interlaced chapters?

falcon2000eg
5th January 2007, 18:32
I have this problem also but only with some NTSC movies and never happened with PAL.But i do not think it is DGIndex problem because i have it when i recompressed some old AVI i have.

TheOne0908
6th January 2007, 18:57
Yep, d2v audio delay information is not correct with older versions of Megui and d2v. Check the information file that comes from DVD Decrypter and look for the audio stream delay in the text file. Give that a try tell me if it helps. Normally, an error with the d2v audio delay is the cause of must audio not syncing. It's is a simple fix with double checking the audio delay. Enjoy!

Oxygen
9th January 2007, 15:51
Good news, with a TS source converted into an mpg file via HDTV2MPEG it's good now :)

LARRYB
10th January 2007, 03:11
Am I glad someone else is having sync issues.
I posted several links on another thread regarding the Vidoera program that was lagging the audio by 10 to 11 sec. Even though the delay was 0ms.

I got stung buying a program on the internet for $14.95 which guaranteed good performance. What I got was, DVD decrypter and Videora links with some instructions. What a rip off. I already had those programs and they didnt work.

I downloaded Ipod video suite free eval program last night. Made several mp4 conversions and all worked great. Will also allow you to convert to larger sizes to be played on a tv.

The eval will only allow you to make a 3 to 10 minute movie, but all that I tried worked.

Yeah it costs $39.00 but all the time I wasted trying to get DVD D and Videora, aysinc, MeGui to work I figure that I'm money ahead on the wasted time.

Just my $.02 worth
:o

Larry

Sharktooth
10th January 2007, 03:45
ok, now put your ads elsewhere. Thanks.

LARRYB
10th January 2007, 05:01
ok, now put your ads elsewhere. Thanks.

This is not a advertisement.

I am just a end user just like everyone else on the forum.

I only tried to advise others like me that there is other ways to get it done without pulling your hair out trying to get it to work. I also feel that they should be warned when someone is trying to rip off end users.

No one is twising there arms to BUY software. That is why they come to these type of forums. I am only posing my experiences for others to be aware of.

Sharktooth, :cool: it.

Larry

elguaxo
12th January 2007, 16:38
A little sync problem.

DVD Decrypter Stream Information:
0x20 - Subtitle - Chinese - [SubPicture 01: Wide] / LBA: 30311 / PTS: 00:00:53.353 / Delay: 53053ms
0x21 - Subtitle - Chinese - [SubPicture 02: Wide] / LBA: 30313 / PTS: 00:00:53.353 / Delay: 53053ms
0x22 - Subtitle - English - [SubPicture 03: Wide] / LBA: 30315 / PTS: 00:00:53.353 / Delay: 53053ms
0x23 - Subtitle - Chinese - [SubPicture 01: Letterbox] / LBA: 30318 / PTS: 00:00:53.353 / Delay: 53053ms
0x24 - Subtitle - Chinese - [SubPicture 02: Letterbox] / LBA: 30319 / PTS: 00:00:53.353 / Delay: 53053ms
0x25 - Subtitle - English - [SubPicture 03: Letterbox] / LBA: 30322 / PTS: 00:00:53.353 / Delay: 53053ms
0x80 - Audio - AC3 / 6ch / 48kHz / DRC / Chinese / LBA: 299 / PTS: 00:00:00.736 / Delay: 435ms
0x82 - Audio - AC3 / 6ch / 48kHz / DRC / Chinese / LBA: 300 / PTS: 00:00:00.736 / Delay: 435ms
0x83 - Audio - AC3 / 2ch / 48kHz / DRC / Chinese / LBA: 265 / PTS: 00:00:00.671 / Delay: 371ms
0x89 - Audio - DTS / 5ch / 48kHz / DRC / Chinese / LBA: 234 / PTS: 00:00:00.671 / Delay: 371ms
0xE0 - Video - MPEG-2 / 720x480 (NTSC) / 16:9 / Letterboxed / LBA: 1 / PTS: 00:00:00.300 / Delay: 0ms

I am using only the 1st audio track. Megui made this file after demuxing:
VTS_01_1 T01 3_2ch 384Kbps DELAY 502ms.ac3 and a delay of 502ms was used by Megui during the muxing process, but the correct value is 435ms (see Stream Information).

I think this is the first time that this happened to me and Megui is updated:
http://img294.imageshack.us/img294/9612/meguiam8.th.png (http://img294.imageshack.us/img294/9612/meguiam8.png)

Any hints? Thanks!

Sharktooth
12th January 2007, 19:19
the audio delay was calculated by dgindex and megui used what DGIndex wrote in the filename.
If the dalay is incorrect please re-rip the DVD with the appropriate tools.

recover
12th January 2007, 19:51
Okay.... I have not been successful correcting my audio in any way...
I have used DVD Decrypter and got a delay, contrary to what I got when I used DGIndex...
I'm not using MeGUI (have no idea what it is, will give it a try soon though) and haven't been able to add a delay in VirtualDub and then export the audio *with* the delay...
If anyone want he/she can post a step-by-step how to export the audio with delay from virtualdub.
Thanks!

elguaxo
12th January 2007, 20:06
the audio delay was calculated by dgindex and megui used what DGIndex wrote in the filename.
Yes, I know that! And Megui used that name later during remuxing, so something went wrong one step earlier.

My sequence was: 1) DVD -> DVD Decrypter (BTW, the DVD is not new, it was released in 2004)
And then MeGUI for: 2) D2V Creator (also used for audio demuxing) -> AviSynth Script Creator -> Autoencode.

The strange thing is that DVD Decrypter did the job right and the Stream Information created in the first step shows the correct delay values. But MeGUI-DGIndex's D2V Creator step didn't pick those as supposed.

As I said in my first post it is a small problem. I checked the stream file and fixed it by hand. I will try other versions of DGIndex. Thanks!

Adub
13th January 2007, 05:16
It looks like DGIndex messed up. What version are you using? Maybe this is a bug.

elguaxo
13th January 2007, 05:22
The latest version updated by MeGUI: 1.48

Carpo
13th January 2007, 15:54
what are you using to mux the audio and video with ? i have had issues in the past with the muxer megui uses, but have not had any issue with avi_mux

elguaxo
13th January 2007, 16:04
Muxing was perfect. The filename said DELAY 502ms and MeGUI/mkvmerge did exactly that. The error was introduced earlier than that.

buzzqw
13th January 2007, 16:17
dumb question: how megui deal with delay ?
in automkv i use delaycut, in autogk is done by azid... but in megui ?

BHH

sven_pether
3rd September 2007, 16:59
Ok, I'm back

I istalled the latest Nero Recode on my new laptop and all movies come out slowly getting out of sync. If the movie is shorter than 80 minutes you can hardly see it but i used some that wos over two and three hours and the sound is gradually getting out of sync.
I'm encoding to Nero Digital Standard AVC and ACC 5.1 sound.

I have EXACTLY the same problem on my desktop also after upgrading to the latest version.

Pether