PDA

View Full Version : X264 encoded color too RED !(How does 264CLI reads AVS file?)


DanielSun
26th February 2007, 09:11
I'm just learning to use X264CLI.
I used these commands to do a test encode:


x264 -b 3 --b-pyramid -r 5 -B 950 -p 1 -A all -w --me umh -m 6 --b-rdo --mixed-refs --bime -8 --no-fast-pskip --no-dct-decimate --progress -o test.mkv test.avs



x264 -b 3 --b-pyramid -r 5 -B 950 -p 2 -A all -w --me umh -m 6 --b-rdo --mixed-refs --bime -8 --no-fast-pskip --no-dct-decimate --progress -o test.mkv loveavs.avs


Then i found the result clip's color too red!
In other word red is over-saturated.

I do not know how does x264 reads AVS files.But when I use mpc player to play the avs file,there is nothing wrong.And my mpc player use VMR9 renderer.

I did tune the saturation setting in my Nvidia card driver setting page before.Because I use VMR9 as my default renderer, and hue and saturation were calibrated under VMR9, therefore when using overlay renderer the color is over-saturated.Does this related to my problem?

check
26th February 2007, 09:12
possibly. what is your input avs?

DanielSun
26th February 2007, 09:15
Here it is.



loadplugin("D:\RipTools\dgmpgdec148\DGDecode.dll")
mpeg2source("d:\love\love.d2v",idct=5,cpu=0)
crop(2,0,716,572)
LanczosResize(640,464)

DanielSun
26th February 2007, 09:51
It turned out the setting about saturation in Nvidia card drivers setting page has nothing to with this problem.I did a test that I set the saturation to 0% and then with both overlay and VMR9 renderer the MPC player plays video clips in greyscale. And then I did the same encoding again the result was the same as before. So there myst be some other issues.

nm
26th February 2007, 10:48
Which player and decoder did you use to view the resulting x264-encoded file? Try with VLC or MPlayer.

check
26th February 2007, 14:49
It is simply the decoded file that is being displayed incorrectly. There's nothing in that plugin that would cause any colouring, so unless you've found some amazingly obscure corner case, start poking your video decoders and drivers :)