Log in

View Full Version : Loss of contrast/saturation after encoding


karasu
13th June 2008, 09:13
I'm using MeGui with the latest updates. I have a problem of loss of contrast and saturation.
Here's my avisynth script :
# Set DAR in encoder to 2431 : 1000. The following line is for automatic signalling
global MeGUI_darx = 2431
global MeGUI_dary = 1000
DGDecode_mpeg2source("C:\VIDEO_TS\VTS_01_1.d2v",info=3)
ColorMatrix(hints=true)
crop( 0, 72, 0, -72)
loadplugin("C:\Program Files\AviSynth 2.5\plugins\FFT3DFilter\fft3dfilter.dll")
FFT3DFilter(bt=-1, sharpen=0.7)


This is what I get when I play the avs in mpc : image 1 (http://gloomydream.net/bazar/encode/avs.png)
And the encoded output : image 2 (http://gloomydream.net/bazar/encode/result.png)

And my settings :
--crf 22 --ref 5 --mixed-refs --no-fast-pskip --bframes 16 --b-pyramid --b-rdo --bime --weightb --direct auto --nf --subme 7 --trellis 2 --partitions p8x8,b8x8,i4x4,i8x8 --8x8dct --me umh --merange 64 --threads auto --thread-input --progress --no-psnr --output "output" "input" --aq-mode 1 --aq-strength 1 --fgo 5

What is the cause of the contrast and saturation loss?
Thank you.

techouse
13th June 2008, 10:26
What renderer are you using in MPC, cause I think the problem is in there. Try Haali's.

karasu
13th June 2008, 12:05
I've installed CCCP, so Haali splitter and FFDshow, but all ffdshow filters are off.
You are right, if I create an avisynth file to play my output file, the colors are the same as the source avs.
So the problem might be on the side of the YV12 decoder or the h264 decoder. How can I determine wich render is right? (the colorful or the low contrast one?)

martino
13th June 2008, 12:54
So the problem might be on the side of the YV12 decoder or the h264 decoder. How can I determine wich render is right? (the colorful or the low contrast one?)
It shouldn't be a decoder issue, but as techouse mentioned a renderer one. Overlay Mixer or Haali should be the best choices.

karasu
13th June 2008, 13:29
Ok, I get it!
I was using VMR9(renderless) renderer , now I've set the Halli's video renderer. Everything is ok now,

Thank you!

Atak_Snajpera
13th June 2008, 13:47
I was using VMR9(renderless) renderer
VMR9 works as well if you force RGB32 in FFDshow