digitalFAQ.com Forums [Archives]

digitalFAQ.com Forums [Archives] (http://www.digitalfaq.com/archives/)
-   Video Encoding and Conversion (http://www.digitalfaq.com/archives/encode/)
-   -   Audio Sync Problems (http://www.digitalfaq.com/archives/encode/6455-audio-sync-problems.html)

bigggt 11-01-2003 02:34 PM

Audio Sync Problems
 
Hi first off let me say i have done many kvcd's with no problem.

Here is my avicodecs info


Code:

File : 701 Mb (701 Mb), duration 1:25:43, type AVI, 1 audio stream(s
Video : 626 Mb, 1021 Kbps, 23.976 fps, res. 512*384 (4:3),  XVID = XVID Mpeg-4, Supported
Audio : 74 Mb, 121 Kbps, 48000 Hz, 2 chan., 0x55 = MPEG Layer-3, Supported

When i open Virtualdub to save wave i get the vbr message
1.Full processing mode
2.resample to 44100
3.save wave

convert with headch3e with the same settings as always

muxed with tmpge and bbmpeg and both times the sound seems to go quicker then the movie,its not a few seconds behind it just seems to go quicker.

I'm lost on what to try

Thanx

Encoder Master 11-01-2003 02:50 PM

Use this in your AVS Script:

Quote:

AVISource("***.avi")
WAVSource("***.wav")
AudioDub(AVISource("***.avi, WAVSource("***.wav"))

DelayAudio(280)
I think there's a little delay of 2 seconds.
If the Options of the Delay good you can Mux the Video again with bbmpeg.
Where you can choose the outputformat MPEG-1 or 2 you have to change something.
In the last line is delay.

The AVS Script with this informations you can join in WMP old version and look if it's synchron. If not you have to change the Delay.

I hope I could help you.

Eric 12-10-2003 12:28 PM

Use this in your AVS Script:

Quote:
AVISource("***.avi")
WAVSource("***.wav")
AudioDub(AVISource("***.avi, WAVSource("***.wav"))

DelayAudio(280)

Master Encoder
How do I put this in my script? I use the V3 and V4 scrpts and I tried adding this at the beginning and I get nothing but errors. Do I use this script by itself? do I need plugins? I am using version 2.5 by the way.

Abond 12-10-2003 12:43 PM

Quote:

Do I use this script by itself?
Yes,that's it.

Eric 12-10-2003 07:45 PM

Well, I tried using youe script and I get an error.

Script Error: expected a, or)
C:Eric\VCD|Audio_Script.avs, line4, column 55)

AVISource("C:\Eric\VCD\VS\VS.avi",false)
SwapUV()
WAVSource("C:\Eric\VCD\VS\VS.wav")
AudioDub(AVISource("C:\Eric\VCD\VS\VS.avi, WAVSource("C:\Eric\VCD\VS\VS.wav"))
DelayAudio(0)

Any suggestions?

incredible 12-11-2003 04:27 AM

EM did a mistake:

this should --- refering to the missed ")" ! -- work:

AVISource("C:\Eric\VCD\VS\VS.avi",false)
SwapUV()
WAVSource("C:\Eric\VCD\VS\VS.wav")
AudioDub(AVISource("C:\Eric\VCD\VS\VS.avi"),WAVSource("C:\Eric\VCD\VS\VS.wav"))
DelayAudio(0)

PS: Check your Codecs on your machine, cause to me it seems a bit strange if SwapUV() is really needed.

Dialhot 12-11-2003 04:29 AM

A suggestion : Never use encode master's advices without think a litlle by your own.

Code:

AVISource("***.avi")
WAVSource("***.wav")
AudioDub(AVISource("***.avi, WAVSource("***.wav"))

DelayAudio(280)

By doing this you load twice the video and the audio, dub them, and then add a delay (to what ? the audio is already dubbed, that's too late !)
(more : your swapUV won't do anything !!!)

The correct thing to do should be (but it is NOT, see after)
Code:

video = Avisource("***.avi").SwapUV()
audio = Wavsource("***.wav").delay(280)
Audiodub(video,audio).

But this solution is still a crap. First, you do not know exactly wich delay to put in "delay". Second, you will encode the audio with tmpgenc and in this case it is not mandatory.

What to do :
open the avi with GSPOT, on the left you will have the Audio interleave (Audio I/L). This panel shows the delay indicated for instance as "NG=1200 ms" (stands for -1200 ms) or "p=480 ms" (stands for +480 ms).

Note this delay and add it in the delay case of Headache (or besweet). Perhaps you should substract 500 ms to the delay because it is the standard audio delay used by vdub. I'm not sure.

incredible 12-11-2003 04:37 AM

Right, ...
As I said above the correction by me was just refered to the syntax of the avs.
The ONLY way I use this manual "audio delay prediction" ;-) is when I see and hear that in case of captures, which are correct captured, still exist a wrong delay ... delivered wrong by the broadcasting station. Just yesterday I recognised that in a capture, ... but anyhow as mentioned you should use the delay correction in HeadAC3he or Besweet, this method within the avs script is just to find out the needed value.

And the correct Way to use this like DialHot showed above is also explained in the avisynth.org guides. So please EM check the guides and docs at avisynth.org if you just pick up something somewhere or developing by your own and afterwards using this as your recommendations in here. Thanx

Dialhot 12-11-2003 05:37 AM

Grrr, once again I erased a post insteed of quoting it :-(
(somethign should be done in moderator panel !)

So Abond was saying :
Quote:

Quote:

But this solution is still a crap. First, you do not know exactly wich delay to put in "delay". Second, you will encode the audio with tmpgenc and in this case it is not mandatory.
Nobody even mentioned the word "encoding". This script should be PLAYED in media player to listen the audio synch and correct the delay in the script until it is synch.
In this case you're right, I do not read EM post till its end.:oops:
So there is still the solution of GPSOT to find the audio delay automatically and not with a try-error method.

kwag 12-11-2003 06:27 AM

Quote:

Originally Posted by Dialhot
Grrr, once again I erased a post insteed of quoting it :-(
(somethign should be done in moderator panel !)

Or in dialhot's keyboard :mrgreen:

-kwag

Dialhot 12-11-2003 07:07 AM

Quote:

Originally Posted by kwag
Quote:

Originally Posted by Dialhot
Grrr, once again I erased a post insteed of quoting it :-(
(somethign should be done in moderator panel !)

Or in dialhot's keyboard :mrgreen:

-kwag

:-).
In deed I'm serious. When not a moderator of the forum the only button (on the right so) is "Quote".
When moderator, you have the button in that order "Quote" "Edit".
The most right button is so "Edit" and not "Quote". And that is why I do so much error :-)

Eric 12-11-2003 04:43 PM

what about this then?

video = Avisource("***.avi",false).SwapUV()
audio = Wavsource("***.wav").delay(280)
Audiodub(video,audio).

Or should I save the avi without the audio in VDUB before doing this?

By the way, I seen the A/V of p=480 in GSPOT, so I was going to use this as a reference to just see if it syncs up using this script. Now, since VDUB has the 500mS padding I should actually try -20 in the script.
Or, if I was to use Goldwave, I would have no padding and should use the +480 delay in the script. I will play around with it and get back with everyone.
One more question, since I need 44100Hz instead of 48000 for a KVCD,
when I resample, does the file remain the same size? Or should I resample and add the delay during the WAV to MP2 process? Thanx everyone.

Eric 12-11-2003 04:47 PM

One more question, since I need 44100Hz instead of 48000 for a KVCD,
(I use VDUB to resample)

forgot to mention that

Encoder Master 01-04-2004 11:12 AM

Yes 44100HZ is standart and it's komplatibler than 48kz. :wink:


All times are GMT -5. The time now is 04:32 AM  —  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.