Log in

View Full Version : XVid 103 and the 11:06 curse!


Graal_CPM
8th November 2005, 21:04
XVid 1.0.3-20122004 is exhibiting a very strange behaviour.

Encoding goes well, I get a 712Mo avi file as targeted using GK 0.35.0 and its tools for a 2 pass encode and a very light script :
crop(0,0,704,576)
LanczosResize(576,432)
Undot()

Beginning of the movie is perfect, then suddenly after exactly 11 min 6 sec, the rest of the entire movie gets extremly blocky (unwatchable) until the end. No other synch or unsual behaviour to report. It's just as if the settings from 11:06 has been magically set to the lowest possible quality!

I got the same result (problem starting at 11:06!) with two different sources : a xvid TV Rip (very good quality) and a MJPEG VHS Rip (poor quality).

A full Uninstall+install of xvid and GK hase been done with no result. I have ruled out a purely avisynth or a filter problem, because with a two pass DivX 5.0.2 it's ok. It's not a player issue either.

This is not my first compression session by far, and I never encountered such problem. Usually, either it works, or it crashes completly, or I get strange artifacts. Tweaking, cleaning Windows 2K and reading the manual normally do the trick.
Here I am totally stuck.

Did anybody here already had this issue? :confused:

jon.schaffer
8th November 2005, 21:21
Is the .pass file used in the 2nd pass the good one? (i.e. is the one created during the 1st pass, and not the .pass file of another encoding - which would be 11:06 long?)

Or could this .pass file be locked? (read-only or whatever... and then not 'updated' during your last 1st passes)

Graal_CPM
8th November 2005, 22:32
:D Thank you for pointing me in the right direction!
I did not thing about checking these pass files. There were both ok, but by reading them I have noticed some stange 00 values in the intra_matrix.
It appears that some xvid parameters I usually don't mess up with were totaly messed up (overflow% of 54288874!)

I have restored default values and encoding should be ok now.
Still. It is strange I could get a very picture at the beginning of the movie... Some mathemagic I guess. Anyway, now I feel silly for poluting the forum with dumb requests.

:) Thanx again for your help Jon.

Edit :

If someone is interested, here is the script I use for encoding MJPEG ugly VHS captures. Filtering is after resize (good speed/quality balance considering the poor quality of the source) :

#Deinterlace
kerneldeint(order=0)

#Crop
Crop(8,5,0,-11,align=true)

#Resize
BicubicResize(344,272,0,0.75)

#Remove Chroma Artefacts
Cnr2("xxx", 4, 5, 255)
Dedot()
ChromaShift(U=-6, V=-6)

#Denoise
RemoveGrain(mode=5,planar=true)

#Color adjustments
ColorYUV(levels="PC->TV")

#Final smoothing
mergechroma(blur(1.50))
mergeluma(blur(0.2))

#Put borders back for 4/3
AddBorders(4,8,4,8)

jon.schaffer
8th November 2005, 23:22
I have restored default values and encoding should be ok now.
Kind of magic, eh?! ;)

powerslave
11th November 2005, 14:00
Graal_CPM:

FYI, maybe your zones were messed up. I noticed similar behavior when i had a zone added in for credits to encode at lower quality. Maybe you had something hanging out from an old encode.