Forums [Archives] Forums [Archives] (
-   Video Encoding and Conversion (
-   -   KVCD: audio goes out of sync? (

AgNa 09-01-2003 10:07 PM

KVCD: audio goes out of sync?
This is the first time I have this problem. I have a source on 23,976 I encode to KVCD at the same FPS, now for some weird reason the video lenght changes from 85min 43 secs to 86min 14secs, so the audio goes out of sync. I tried to expand the audio using Sound Forge but the audio goes out of sync in some place or another when I do this. When I load the mpeg file into Vdub mod the video lenght says 86min 19secs :roll:
Any Idea? I`m encodign to mpeg1. using KVCD3 template at 480x480 heres my script


## Defined Variables and Constants ##
MaxTreshold = 1.50
nf =  0 # Current frame.

## Main section and static filters ###
asharp(1, 4)
GripCrop(352, 480, overscan=2)
STMedianFilter(8, 32, 0, 0 )

## Linear Motion Adaptive Filtering ##
# ( Portions from AviSynth's manual ) - This will apply temporalsoften to
# very static scenes, and apply variable blur on moving scenes.
# We also assign a variable - and this is why a line break is inserted:

SwitchThreshold = (Width<=352) ? 4 : (Width<=480) ? 3 : 2
ScriptClip("nf = YDifferenceToNext()"+chr(13)+ "nf >= SwitchThreshold ? \
unfilter( -(fmin(round(nf)*2, 100)), -(fmin(round(nf)*2, 100)) ) : \
TemporalSoften( fmin( round(2/nf), 6), round(1/nf) , round(3/nf) , 1, 1) ")


#LetterBox( Your_Values_Here ) # Depends on situation. Use MovieStacker!
## Functions ###

function fmin( int f1, int f2) {
  return ( f1<f2 ) ? f1 : f2


Dialhot 09-02-2003 03:03 AM

1/ do not use MA script for Divx, that is not the optimal one for these.

2/ you probably have bad frames in your video, the easiest way to deal with that is to encode both audio and video with tmpgenc. Select "system (audio+video) insteed of "Es (video only)" and set the parameters of the audio in the settings of TMPGEnc.

TMPGEnc does audio very well. It just less efficient than external programs but it's better than having a synch problem :-)

AgNa 09-02-2003 01:56 PM

already tried to encode both at the same time on TMPGenc and I get the same error. And I`m using the MA script but when I load into TMPGenc I use Highquality and not "Motion estimate". I`m quite pleased with the Q I get using MA, can you point me to a thread where I can read more about why MA is not good for AVI sources?? (XVID, DIVX, etc)

EDIT: I found this, time to read :D

All times are GMT -5. The time now is 12:51 AM  —  vBulletin Jelsoft Enterprises Ltd

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