PDA

View Full Version : żerror with x264 with RGB color space? To get good results with resize.


daimroc
23rd September 2009, 09:03
Hello:

I am trying to resize a video from 1280x720 to 720x400. I am using the following script:

AVCSource("video.dga", dblock=true)
#ConvertToRGB32()
Spline64Resize(720,400)

Well, if I open this avs with virtualdubmod or media player classic, I can see very aliasing in the contour of the letters and other zones like eyes in example.

This problem I can see if I don't convert the color space to RGB. If I convert the video to RGB, I can see that this problem doesn´t exist.

But If I convert the video to RGB, then I can´t use x264 because it's not compatible with RGB, it must be YV12.

I would like to know if ther is a way to resize the video with this aliasing problem.

The problem is the following:


http://i100.photobucket.com/albums/m22/daimroc/mienteme-noRGB.png

http://i100.photobucket.com/albums/m22/daimroc/mienteme-RGB-1.png

The captures are made with media player classic home cinema. The first one is when I don't use the ConvertToRGB32() in the script and the second one is when I use it.

It easy to see how in the first capture, in the red "e" of "me", the aliasing is higher than the second capture.




Thanks.
Daimroc.

daimroc
23rd September 2009, 10:37
Well, I am doing more tests and I update my avisynth to the version 2.60. It's an alpha, but I solve the problem of the aliasing.

I only need to use the following script:

DirectShowSource("video.mkv")
Spline64Resize(720,400)

If I use AVCSource() instead of DirectShowSource I get the same problem with the aliasing, so, at least, in my case, I prefer to use DirectShowSource.



Daimroc.

foxyshadis
23rd September 2009, 10:39
I bet you have an ATI video card.

You're looking at the problem wrong. Instead of fixing it in the script, fix it in the player, where the real problem is. (The video card's conversion of YV12->RGB is horrible.) Look at the MadVR renderer thread for an explanation, more screenshots, and how to use it to fix your problem. If your video card is too old, enable software high quality rgb conversion in ffdshow.

You'd see the exact same problem if you were to load a completed encode into MPC-HC, one with RGB conversion and one without, which would make it obvious where the problem is.

Note that you just hid the problem by using DirectShowSource because it probably converted it to YUY2 or RGB for you. Put an Info() on the end of your script.

neuron2
23rd September 2009, 14:21
@daimroc

Where did you get the MKV file?