Log in

View Full Version : problem with YV12 and XVID


aaar9800
22nd May 2003, 05:25
I am trying to make a DVD-rip of "Snatch" and I tried to do everything in YV12 without changing to YUY2 back and forth. When I encode it in XVID the picture itself is turned by 45 degrees to the right and it is all screwed up. When I try to do Divx 5.0.3 with the same avs file listed below, I get a perfectly positioned picture.

I tried to fix it many times and so far no success...

The avs file:

LoadPlugin("C:\DVDRIP\MPEG2Dec3.dll")
LoadPlugin("C:\DVDRIP\Decomb_YV12.dll")
Mpeg2Source("C:\DVDRIP\snatch\snatch-29.97.d2v", idct=0)
Telecide(guide=1).Decimate(5)
crop(6,4,708,466)
LanczosResize(708,392)

Mpeg2Dec3 - v 1.04
Decomb - tried without it and same results except the fps of course.

kastro68
22nd May 2003, 05:39
Hi,
I recommend you set your x,y resolution to at least a multiple of 16.

I recommend mod 32 because some research done by someone at doom9 found it improved compressibility.

aaar9800
22nd May 2003, 05:52
Thanks, it did the trick, but why does it have to be a multiple of 16 in YV12, when I was doing YUY2 I never had any problems with multiples like 2 or 4. Is that a color space limitation?

Nic
22nd May 2003, 11:04
Hmmm...I didnt know of that limitation in XviD (& it is in XviD, MPEG2Dec3v104 is decoding it fine)

Ill look into that :)

By the way mod8 on the horizontal works fine so:
LanczosResize(712,392)

Would work.

-Nic

aaar9800
22nd May 2003, 17:34
Thanks for all of your replies. I recropped the movie (added 2 points on each side) and it came to be 704X384 when resized, which worked fine and it is a multiple of 16.