Welcome to Doom9's Forum, THE in-place to be for everyone interested in DVD conversion.

Before you start posting please read the forum rules. By posting to this forum you agree to abide by the rules.

 

Go Back   Doom9's Forum > Capturing and Editing Video > HDTV / DVB / TiVo

Reply
 
Thread Tools Search this Thread Display Modes
Old 11th April 2010, 15:26   #1  |  Link
Stranger
Registered User
 
Join Date: Apr 2003
Location: Italy
Posts: 29
Correct process chain to avoid audio sync issues in HDTV rip

Hi, I don't know if this is the right place to post, if there is not, first sorry for mis-location and then please move this thread to the right section.

I'm having serious audio/video sync problem when trying to encode DVB-S2 stream to xvid.

Please consider this situation:

file1.ts and file2.ts contain avc video and ac3 audio

I apply the following process chain:

file1.ts -> DGAVCIndex -> file1.dga + demux_audio1.ac3 (with some delay)
demux_audio1.ac3 -> BeSweet -> audio1.wav (with 0 delay)
audio1.wav + file1.dga -> AviSynth (with uNicAudio.dll) -> VirtualDubMOD -> check for audio sync/crop/resize etc (and everything is ok)

Same process for file2.ts

I tried to have a xvid coding of file1 only and file2 only and they are perfectly synched

I got a desync when I tried the following avisynth script

VIDEO1 = AVCsource ("file1.dga")
VIDEO2 = AVCSource ("file2.dga")
AUDIO1 = UnicAudioSource("audio1.wav")
AUDIO2 = UnicAudioSource("audio2.wav")
FULL1 = audiodub(VIDEO1, AUDIO1)
FULL2 = audiodub(VIDEO2, AUDIO2)
return FULL1+FULL2

Desynch occurs at file junction, but, as I said, if I encode only file1.ts or file2.ts resulting avi files are perfectly in synch

Can anyone tell me if there is some process step I'm not considering?
I guess it is related of some audio processing/joining problem (I mean, if first audio duration is lower then first video duration because of delay trimming, probably when joining together the two files the audio stream are joined without considering gap between video1 and audio1)

Can anyone please explain me if there is a more convenient way to do what I'm trying to obtain?

Is there a better process chain to follow? (considering that control and understatement of any step is a need, I don't like the all-in-one software)
Stranger is offline   Reply With Quote
Old 11th April 2010, 18:39   #2  |  Link
b66pak
Registered User
 
b66pak's Avatar
 
Join Date: Aug 2008
Location: The Land Of Dracula (Romania - EU)
Posts: 934
your audio1 is shorter or longer than the video1...use this (it will reset the audio length to the video length):

Code:
FULL1 = audiodub(VIDEO1, AUDIO1).Trim(0,0)
FULL2 = audiodub(VIDEO2, AUDIO2).Trim(0,0)
_
b66pak is offline   Reply With Quote
Old 11th April 2010, 22:37   #3  |  Link
Limit
Registered User
 
Join Date: Oct 2005
Location: .DE
Posts: 15
replace FULL1+FULL2 with FULL1++FULL2
Limit is offline   Reply With Quote
Reply

Tags
audio sync, avc, dgavcindex, hdtv

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 03:08.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.