digitalFAQ.com Forums [Archives]

digitalFAQ.com Forums [Archives] (http://www.digitalfaq.com/archives/)
-   Video Encoding and Conversion (http://www.digitalfaq.com/archives/encode/)
-   -   KVCD: Audio sync problem? (http://www.digitalfaq.com/archives/encode/2917-kvcd-audio-sync.html)

Wolfi 03-08-2003 05:27 PM

KVCD: Audio sync problem?
 
I just viewed the mpg. file the first 5 minutes and by then i had no sync problems. So I burned it with nero a watched the movie with my dvd player :)

But after...30 minutes (something around that) the audio was 1 second before the picture of the movie :x

So a looked for a good way to fix this problem. I find this on vcdhelp :arrow: http://www.dvdrhelp.com/sync.htm .

But as you can see it only tells you how to sync if the audio is before the video or if the audio is after the video from the beginning,when the movie starts. But my sync problem started after :!: 30 MINUTES :!: not at the start of the movie.

Do you understand my problem,if not, tell me to explain a bit more :roll: If you understand, please help me :P would be great...

jorel 03-08-2003 06:07 PM

hi Wolfi :wink:

i can't see in your post what file you have!(mpeg1 or 2,kvcd) :wink:

but read this tutorial from ChickenMan,
fantastic administrator,
good friend and master from cdrsoft forum!

maybe it help you:

http://www.cdrbase.com/showthread.php?s=&threadid=10651

read some from tutorial:
"2. The Audio can be in sync at the start of the movie but progressively gets further in front or trails the Video as the movie is played."

it help you?
:)

Wolfi 03-08-2003 06:22 PM

I encoded with SKVCD :)

Do I have to be registered to be able to view the guide?

Wolfi 03-08-2003 06:51 PM

You mean this guide 8O

Audio is in sync at start but progressively goes further out as you play the movie.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1. I have never seen this problem in a SVCD but should work for them, definitely works for VCD's. The basic principle involved here is to strip out the Audio file (de-mux) then stretch or compress the audio frequency, 44.1kHz, and re-sample to 44.1 Then convert to *.MP2 format and re-multiplex with video stream.

2. Demux the MPG file so we can manipulate the Audio file. Run TMPGEnc, click on File and select MPEG Tools. Select Simple De-multiplex tab and for Input, browse to your problem MPG. Video and Audio output names will be automatically generated. The Audio being *.MP2 and video being *.M1V or *.M2V. Click Run and wait until its finished. Exit TMPGEnc.

3. We now have to estimate the approx time, in seconds, that the audio is out of sync and nearest to the end of the movie as possible. Simply play the original movie with WinDVD or similar player. Windows Media Player is not recommended as it can A/V sync problems of its own. Move slider to near the end of the movie and look for speech, gun fire, explosions, door slamming, etc where you have a precise Audio to Video match up. Estimate the time difference and not the length of the movie. Lets say we find the Audio trails the Video by about 1 second and the movie length was 48 min or 2880 sec (the door slams and about 1 sec later we hear the thud).

3. Run Goldwave and load in the *.MP2 file. Its also best to turn OFF the Undo feature to speed up the conversions (in Options / File...) Click on Effects and then Playback Rate. We need to change the 44100 Hz to sync the movie, use these formulae:

New Hz (Audio trails Video) = (Movie length in sec + Out of Sync in sec)/(Movie length in sec) * 44100

or

New Hz (Audio precedes Video) = (Movie length in sec - Out of Sync in sec)/(Movie length in sec) * 44100

So for our example, we have:

New Hz = (48x60 + 1) / (43x60) * 44100 = 44115

So change the Rate from 44100 to 44115 (or the number you calculated) and hit OK. Now click Effects again and select Resample. Change the 44115 (or what ever figure you have) back to 44100 and hit OK. Once the conversion is finished, hit Save. For Type select Wave (*.wav) and Attributes as 16bit, Stereo, Signed. Change File name if needed and hit Save. When it finish's answer No and exit the program.

4. We now need to convert our WAV file back to an MP2 form. TMPGEnc is the simplest to use for this. Run TMPGEnc, and click File, then New Project to clear out old settings. For Stream Type select Audio Only and for Audio Source, browse to our new WAV file and Open it. Rename the Output file name to something different than the original MP2 file. Now click Settings and change the Bitrate from 192 to 224, this is ESSENTIAL for a VCD. Do NOT change any other settings except Normalize in Setting button (do this only if the audio appears low in volume). Then click OK and finally click Start. When done, exit TMPGEnc.

5. Run MPEG2VCR and under Tools, select MPEG System Multiplexor. Browse for the original Video *.M1V/*.M2V file after changing Files Type to All(*.*). Do the same for the new fixed Audio *.MP2 file. Now select MPEG-1 System Stream VCD or MPEG-2 Program Stream SVCD depending if its a VCD or SVCD that your trying to fix. Enter an output file name (different from the original) and click Save. When done, play the new MPG file in WinDVD and check that A/V sync has been fixed. If its still out a bit, you need to start all over again from Point 3 changing the frequency Rate a bit higher or lower. Repeat until its fixed.

6. It normally takes me 2 tries to get it right, but luckily I rarely have A/V sync problems.

Holy 8O THIS LOOKS HARD IN MY EYES 8O

//Wolfi//gulp// 8O

Wolfi 03-12-2003 10:23 AM

I encoded one more movie and it gave me the very same problem :cry:
Audio is in sync at start but progressively goes further out as you play the movie. :cry: :cry: :cry:

Why is this happening every time :cry: :?:
Do you think it is because I have 224 as bitrate in Headac3he? I've selected Dual Channel and mode CBR or should I use VBR :?:

Please help me :cry:
And can someone tell me what this words mean :arrow:
de-mux, re-multiplex, Movie length, Audio precedes, Audio trails.

//Wolfi :cry:

Wolfi 03-12-2003 11:21 AM

I tried to multiplex the m2v file and the mp2 file agian but this time with MPEG tools in TMPGEnc but it gave me the same result :cry:

Why is my audio out of sync in every movie :cry:

please answer my questions above :oops:

//Wolfi

rendalunit 03-12-2003 11:51 AM

@Wolfi,

Encode the audio with CBR, not VBR. Audio sync problems can be a real pain- that's for sure. When I get audio sync problems I try to use different software to get the audio stream (AC3 for dvd and WAV for divx). First make sure that you encoded the audio with the right sampling frequency (44.1 or 48 khz)<- very important. If the source is dvd, you can load the VOBs into MEDIATOR and extract the wav file and encode with HeadAC3he.

Multiplexing (or muxing for short) is the process of combining an audio and video stream to get an MPG file. Demultiplexing (demux) is separating the audio and video streams from the MPG to get m1v (mpeg-1 video stream) or m2v (mpeg-2 video stream) and mp2 audio stream. You can mux and demux with TMPGenc->video tools and you can also mux with BBmpeg (this is the best way).

ren

CheronAph 03-12-2003 11:54 AM

If the problem is in your every movie, I suggest you try encoding the sounds with 128 kbps CBR, works for me! Have you check your DVD player in the compatibility list?

digitalize 03-12-2003 12:02 PM

When combining your audio and video file, ensure that your output file is in the format of the original video file. If you have an MPEG-1 video file and then output to an MPEG-2 file, you could have this problem.

Wolfi 03-12-2003 12:39 PM

I did have on CBR and not VBR from the beginning :? but I tried to encoded the sounds with 128 kbps CBR but it still gives me the same result :cry: And my output file is in the format of the original video :cry:

And rendalunit , thank you for learing me some new words. i need to know them if the only and last way is to use that guide :( Seem vary hard to do.

Any other suggestions from you :arrow: :oops:

//Wolfi :cry:

CheronAph 03-12-2003 01:36 PM

Try to encode them to MPEG-2 and mux them to SVCD!

Wolfi 03-12-2003 01:40 PM

Do you mean encode my DivX source again, I dont understand :oops: :oops:

//Wolfi

CheronAph 03-12-2003 01:47 PM

Yes, that´s what I meant!

Wolfi 03-12-2003 02:55 PM

First of all i gonna try that guide above :? But I have one question:
I the sound goes 1 second before the movie with one of thies should I use :arrow:

New Hz (Audio trails Video) = (Movie length in sec + Out of Sync in sec)/(Movie length in sec) * 44100

or

New Hz (Audio precedes Video) = (Movie length in sec - Out of Sync in sec)/(Movie length in sec) * 44100

What do you say :)

CheronAph 03-12-2003 03:33 PM

Quote:

New Hz (Audio precedes Video) = (Movie length in sec - Out of Sync in sec)/(Movie length in sec) * 44100
This should do it!

Wolfi 03-13-2003 07:41 AM

Oke thx CheronAph :) but I have more question. Is there a program who can show me the imformation of my mp2. ans wav. file :?:

Wolfi 03-13-2003 08:54 AM

It's one more thing I dont understand...How the heck can i exactly know how many seconds or hundredth parts my audio is out of sync ! 8O

Wolfi 03-13-2003 10:29 AM

YiPPie YiHuuuU :ole:
:ole: :ole:

I made it guys :!: :D I tried the guide witch I though was to hard for me but I tried it AND IT WORKED :fahr:

Thank you guys for helping me with this weird problem :D

@Jorel: If you will meet your friend ChickenMan, please thank him from me :P his guide RoX :buzzmile:

//Wolfi :D

CheronAph 03-13-2003 12:02 PM

Good to hear you solved it!

jorel 03-13-2003 05:59 PM

Quote:

Originally Posted by Wolfi
YiPPie YiHuuuU :ole:
:ole: :ole:

I made it guys :!: :D I tried the guide witch I though was to hard for me but I tried it AND IT WORKED :fahr:

Thank you guys for helping me with this weird problem :D

@Jorel: If you will meet your friend ChickenMan, please thank him from me :P his guide RoX :buzzmile:

//Wolfi :D

he is really a master ,friendly and very good person!
i learn a lot with him too!
:wink:

jorel 03-13-2003 06:10 PM

hi Wolfi:

please, thank him personally !!
:wink:

came here.very good people too:

http://www.cdrbase.com/showthread.ph...972#post155972

:)

bman 03-17-2003 07:47 AM

@ all !
I've downloaded AN AVI and converted To KVCD 1 CD with great quality . Video is just perfect but AUDIO ...
No metter what I do it doesn't help - I can't get video and audio in sync .
At the very begining all is in sync but after about a minute video is trielling after audio .
The audio is MPEG 3 according VDub File Info .
Extracted audio with VDub as WAV and converted to mp2 with : TMPGenc 128kbps,224kbps ; Headac3he - 128-224kbps - NO SYNC !!! :evil:
Tryed to use ChickenMan instractions - NO SYNC !!! :evil:
Encoding Directly From AVI with TMPGenc - NO SYNC !!! :evil: :twisted:
Extraction of audio with COOL EDIT PRO as wav and encoding with TMPGenc and Headac3he - NO SYNC !!! :twisted:
Extraction of audio with Premiere 6.5 and ancoding (TMPG,HeadAC3he) - NO SYNC !!!! :twisted: :twisted: :evil: :evil: 8O 8O
Encoding With gop 1-10-2-1-24 as kvcd - NO SYNC !!!
Encoding as regular VCD with standard template - NO SYNC !!!
Muxed Video and Audio with bbMPEG , TMPG as VCD , SVCD , no system VCD - NO SYNC !!! :roll: :roll: :roll:
I really don't know what can be done more .
I already have seen whole movie . There is one interesting thing in WinDVD - if I Jump near to the end of movei and then jump back near to the begining of the movie all is in perfect sync to the and .
Tryed to burn the movie and check playback on DVDplayer - NO SYNC !!!
I can't think of another solution but audio codec is somehow twisting all ?!!!
I think that the same codec can't extract audio as REAL CBR from avi file !!!
Can anyone help me with this twisted prob?!!! ( I hope one of u good ppl will give me the needed solution 8) :lol: , PLEASE ?!!)

bman

titans_ca 03-17-2003 08:57 AM

are you using MPEGDecoder.dll with Mpegsource in your avs script? because that somtimes causes the movie to be out of sync for me.

hope this help

goodluck

bman 03-17-2003 11:24 AM

Hi titans_ca !
Thanks for replay !
This is my script .
You think there is something wrong with it ???

#==============================================
# -= AviSynth script by MovieStacker v1.1.1 =- #
#==============================================#

#LoadPlugin("e:\Program Files\Encoding\MPEG2DEC2.DLL")
LoadPlugin("E:\Program Files\MovieStacker\MovieStacker\Filters\MPEG2Dec.d ll")
LoadPlugin("E:\Program Files\MovieStacker\MovieStacker\Filters\TemporalCl eanerOld.dll")
LoadPlugin("E:\Program Files\MovieStacker\MovieStacker\Filters\Convolutio n3D.dll")
LoadPlugin("E:\Program Files\MovieStacker\MovieStacker\Filters\DustV5.dll ")
LoadPlugin("E:\Program Files\MovieStacker\MovieStacker\Filters\Sampler.dl l")
LoadPlugin("e:\Program Files\Encoding\textsub.vdf")

AviSource("G:\MyMovie.avi")
TextSub("f:\subtitles\MyMovie - SubRip.ssa")
BilinearResize(704, 304, 0, 0, 640, 272)
#PixieDust()
TemporalCleaner()
Convolution3D(preset="movieLQ")
AddBorders( 0,88,0,88 )
#Sampler(length=24)
## MPEG size = ((Total frames/MovieTimeInMinutes)/24) * MPEG sample file size * .98 ##

bman

Frunobulax 04-16-2003 06:44 AM

Hi all,

I tried the "Chickenman Method" and got unexpected results. Since my audio was trailing the video by about one second, I applied his formula and got a new sampling rate of 44112. Therefore, I selected that as my playback rate and then resampled at 44100. My movie was a little over 1h 54m, but the resulting audio track was only 1h 18m long! Yikes!


All times are GMT -5. The time now is 10:09 PM  —  vBulletin © Jelsoft Enterprises Ltd

Site design, images and content © 2002-2024 The Digital FAQ, www.digitalFAQ.com
Forum Software by vBulletin · Copyright © 2024 Jelsoft Enterprises Ltd.