Log in

View Full Version : .ts > .avi, not synced


Testament
27th March 2010, 11:20
Hi, its my biggest problem with AviSynth is sync.
I captured .ts with dvbviewer and i want to convert it to xvid avi.
For it I use MeGUI and AviSynth.
I create such script:
LoadCplugin("yadif.dll")
DirectShowSource("istikimybes testas 1x04.ts")
Yadif(order=-1)
LanczosResize(720, 576)
Crop(20, 8, -8, -10)
LanczosResize(640, 480)
Trim(34568, 91946) ++ Trim(102628, 113030)

BUT, if in .ts are an error, when then when i convert it, audio is out of sync.
MeGUI converts each sepertly, then i need to add audio on video with VDM (VirtualDubMod)
Question. How could i fix this problem?

tebasuna51
27th March 2010, 13:38
This is the "Avisynth Development" thread and this question must go to the "Avisynth Usage"

BTW, you need use other method than "DirectShowSource" to guarantee the sync.
If the capture is corrupted or there are different audio streams (ac3 5.1 movie + ac3 2.0 commercials) the problem is big.

Testament
27th March 2010, 13:49
No, there are just 1 audiotrack (192kbps, 2ch, 48khz, mp3).
I allways convert it to 128kbps CBR.
I cant do VBR, because MeGUI doesnt let me do such.

manolito
27th March 2010, 14:00
There is one important step missing in your work flow:
The first thing you have to do with a captured TS is to use a software like ProjectX or PVAStrumento to repair the streams (both apps demux the stream and convert it from TS to PS). Then you can remux, index the stream with DGIndex and use Mpeg2Source in AviSynth.

Cheers
manolito

stax76
27th March 2010, 15:05
Win 7 ts dshow splitter can cause sync issues, I've never seen sync issues with Haali splitter. DGIndex with or without ProjectX is another method, it all depends on the quality of the stream, I record very clean steams from DVB-C were all methods work just fine, StaxRip has all methods built-in btw.

Testament
30th March 2010, 09:00
I still can't do it right. it allways is out of sync.