Log in

View Full Version : Strange interleaving issue


m0rtal
28th November 2003, 14:04
I've been using XviD, OGG and Matroska not for the first day :)
Everything went smooth until I've got a new DVD - Narc and tried to compress it. Video compression is OK, audio - too, everything fits on one CD (700 megs), but audio and video streams aren't synchronized.
OK, no problem - I thought. Spending few seconds looking for exclusive moment (when man shoots), interleaving it with audio, setting them to fit... but oops, here comes the pain!
Before that shooting moment audio outraces video (runs before), after that particular moment - falls behind.
I've tried almost everything! :angry:
Turning IVTC on and off, changing video and audio encoding settings, changing framerate - gives no effect! God damn...

I'm using latest uManiac's XviD (17.7.2003), latest ffdshow alfa (2003-05-23), avisynth 2.52, vorbis tools 1.0.1 under Windows2000

Avisynth script is really simple - just import video through MPEGDecoder and crop black borders.

XviD settings are:
Motion search: 6
Quantization: H.263
FourCC: XviD
VHQ: 4
Chroma motion on
B-frames: 2-150-70
DX50 b-vop
Curve aggression: Medium
High distance: 200
Low distance: 70
Strength: 50%
Trellis quantization on

Fellows from XviD forum (http://forum.doom9.org/showthread.php?s=&threadid=65715) told me that MPEGDecoder is my problem and advises me to use mpeg2dec3 or DVD2AVIdg.

I've tried mpeg2dec3 and got such error:
Avisynth open failure:
Evaluate: Urecognized exception!
(D:\DVD rip\NARC\VIDEO_TS\Narc--mpegdecoder.avs, line 2)


here is avisyntsh script:
LoadPlugin("...\...\...\MPEG2Dec3.dll")
MPEG2Source("Narc.d2v")

ppera2
28th November 2003, 16:37
Audio async shouldn't have nothing with codec and it's settings.

First thing what you need to check is: is that DVD multiangle. If you ripped DVD simple on hard drive, then you have all angles of video, what will be decoded in order, and it causes desync.
Check DVD or rip with V Strip for example.

m0rtal
1st December 2003, 08:51
on that weekend I've tried Donald Graft's Mpeg2dec3 - everything works just fine! So it was Avisynth plugin issue.
But...
When the movie is interlaced, that dll (mpeg2dec3dg.dll) makes "something" that prevents Donald Graft's Decomb filter to work properly - the resulting frame is still heavily interlaced :( Only turning on chroma deinterlacing (chroma=true) helps a little bit... WTF?!