View Full Version : Sound out of sync when using mpeg file
alan.lovedog
17th October 2004, 11:24
hi guys,
love auto gk - great for a simpleton like me!
anyway - maybe someone else has spotted this before but....
whenever i use the option to encode a mpeg file (rather than a dvd rip) i always, no matter what end up with out of sync audio.
starts off ok but by the end it's a few seconds out - say with a 60 min tv show.
the mpeg files are created by me via video capture - they are PAL and in sync right to the end.
if however i turn the mpeg file into a dvd, then rip it, then feed the rip into autogk it creates an xvid or divx with perfect sync.
is this a known issue?
thanks
len0x
18th October 2004, 21:33
My guess would be that your source has some bad video/audio frames (its quite common for captures probably), so when dumixing in AutoGK there is no synch correction as it works only on a perfect source. When you make DVDs out of it the program that you use correct those errors by dropping/inserting frames so that audio and video are in synch, that why afterwards you don't have any problems.
ukb007
21st October 2004, 04:36
Are we talking about mpeg1>avi here?
I've done quite a bit of this, and, predictably, the results were awful. Not to mention the real pain-in-the-ass audio. For one thing VDubMod ALWAYS quit in the middle somewhere because of errors in the audio stream. So I had to demux the mpeg1 into mpg (video) and mp2 files with TMPGEnc, and work separately on them: mp2 > mp3-for-avi in BeSweet and mpg > avi in VDubMod, then mux them. All sorts of audio asynch usually resulted, and their correction was the pain in the ass.
It isn't worth the time. If we're talking about mpeg1>avi, of course.
Regards.
len0x
21st October 2004, 10:50
Its about mpeg2. AutoGK cannot work with mpeg1 and probably never will for the reasons you mentioned (I found most mpeg1 sources to be real pain too).
alan.lovedog
21st October 2004, 16:52
thanks for the reply.
the mpeg in question is from a tivo - i have a turbonet card and extract it to the pc.
i guess you must be right and it's no hardship to make a dvd image first of all so i'll continue that way.
metropolis2004
13th December 2004, 17:05
I would like to reopen this thread, because I think, I have the same problem (sometimes).
I have an MPEG2 file captured with a DVB-T device. I first demultiplex that file with ProjectX, then edit (cut) the resulting files in Cuttermaran and after that multiplex the cut video- and the audio-files with TMPGEnc. The result is an MPEG2-file that contains all the desired frames only. Audio and video is perfectly in sync (I guess all "problems" have been eliminated by ProjectX in the first step).
However when converting that file with AutoGK into an XviD, audio and video is out of sync.
Strangely this happens very rarely (1 out of 10 files), but it always happens with the same file (which I also tried to multiplex with the appropriate function of Cuttermaran).
Since the conversion always takes hours, I am not keen on a great number of new tries. Anybody here with simple ideas?
len0x
13th December 2004, 17:27
Originally posted by metropolis2004
Audio and video is perfectly in sync (I guess all "problems" have been eliminated by ProjectX in the first step).
This means nothing, because its upto playback filter/player to have stuff properly in synch. When it comes to demuxing - things can be very different.
Originally posted by metropolis2004
However when converting that file with AutoGK into an XviD, audio and video is out of sync.
Like how? Gradually out of synch? (but starts OK) This means the length of video and audio after demuxing is different. So the shortest of two gets streched causing gradual out of synch (this is how AVI dshow filters seem to work). I had several TS/captures that behave like this and only manual demuxing with mplayer (nothing else) solved my problems.
metropolis2004
14th December 2004, 10:48
Thanks for your reply.
First of all - it's not a codec problem. Yesterday I tried to convert it into a DivX (previously all my tries were XviD) but the result was the same.
Originally posted by len0x
I had several TS/captures that behave like this and only manual demuxing with mplayer (nothing else) solved my problems.
But at which step should I use mplayer? The only step where I demux something is the very first step (before cutting out unwanted scenes). As soon as I start AutoGK, everything runs automatically.
len0x
14th December 2004, 11:35
Well, manual steps are necessary:
- do normal AutoGK encode
- demux audio with mplayer from original source and encode it (if needed) manually
- open AVI in VDubMod, delete existing track and add new one (keep in mind if you had delay set in the original audio file demuxed by DGIndex then you have to apply it to your manually demuxed as well)
metropolis2004
15th December 2004, 10:21
Hmm... didn't really work. I converted the original audio file "manually" into MP3 (by using BeSweet) and added the track to the Video file. The gap between audio and video was still there. I will try to experiment with the delay setting a bit and let you know what happened.
len0x
15th December 2004, 12:24
Let get this straight - do you you have constant or gradual out of synch? (my solution only covered gradual) Constant can easily be solved buy just remuxing the whole avi and adding a certain delay.
sjchmura
17th December 2004, 14:20
While I am not sure my issue is the same as the above it is close:
Encoding ATSC transport streams (USA) HDTV
1920x1080i source or
1280x720p source
The audio is playing "too early" by 500ms". Remuxing in Vdub 1.61 solves this problem by entering "500ms" into the interleave box
This is new - have not seen it but in the last few releases
WinXP Pro
1GB
3Ghz
2 pass encoding
Target (for 42 min Enterpriser episode) = 1GB
AC3 option (of course)
Elecard Demuxer and Video decoder with Intervideo 6 audio
Windows Media Encoder 9 can take that file (using the same graph) and play it fine. Ditto with Zoomplayer Media.
len0x
17th December 2004, 14:36
Originally posted by sjchmura
While I am not sure my issue is the same as the above it is close:
No, its not the same. And nothing was changed in that part of AutoGK for months now, so manual remuxing is the only solution atm.
okljs
25th February 2005, 13:32
I'm having a problem with video and audio being out of synch, too.
Funnily, it happened all of a sudden. It worked perfect for me and all of a sudden, it is not anymore.
In my case, it is constant, the video is always a bit ahead.
Here's what I did:
I did a TV-rip, demuxed the files with ds.jar, cut out commercials etc. with mpeg2schnitt, patched the header with DVD patcher and created "DVD-files" (so to say) with vobedit. Then I used AutoGK.
I manually checked all of the created files step by step to see if any of the other tools created out of synch files that'd of course end up out of synch after being encoded by AutoGK, but nope! All of the files play correctly.
Tried it with xvid and divx. Reinstalled AutoGk - no good.
As I said, I used it for a long time and was more than happy with the results. I did nothimg different, but it just won't create in synch files anymore...
Any ideas?
len0x
25th February 2005, 14:52
Why not just cut the commercials with ProjectX and feed single PS/TS into latest AutoGK?
okljs
25th February 2005, 15:56
Thanks for your reply!!!!!!!!
I am actually VERY happy with mpeg2schnitt and as I said, it worked fine for a long time.
Anyway, I will give your suggestion a try and see if it works okay!!!
Thanks again, I will report the results tomorrow!
travisbell
2nd March 2005, 22:35
I have had a few gradual audio problems as well. What I have found works best for me is just adjusting the audio delay with a basic avi info tool like YAAI.
http://www.videohelp.com/tools?toolsearch=YAAI&Submit=Search&s=&orderby=Name&hits=50&convert=&dvdauthorfeatures=&listuser=
Cheers,
dlight
4th May 2005, 13:36
Originally posted by len0x
Well, manual steps are necessary:
- do normal AutoGK encode
- demux audio with mplayer from original source and encode it (if needed) manually
- open AVI in VDubMod, delete existing track and add new one (keep in mind if you had delay set in the original audio file demuxed by DGIndex then you have to apply it to your manually demuxed as well)
Does the newest version of mplayer do this? I couldn't figure out how. The version I have is from sourceforge (6.4.8.4). I have seen Media Player Classic referred to as mplayer, is that my problem? Is mplayer a different program?
MPlayer (http://www.mplayerhq.hu/homepage/design7/news.html) is not MPC.
vBulletin® v3.8.11, Copyright ©2000-2026, vBulletin Solutions Inc.