Log in

View Full Version : color/contrast trouble


mog08
14th November 2006, 22:36
this is the original AVS image
http://img391.imageshack.us/img391/5624/ay0202v2origingc2.jpg

this is Xvid encode
http://img68.imageshack.us/img68/1714/ay0202dk1.jpg

I'm using Nic's 0039 XviD build. BVOP / GMC3 / QPel / Packed Bitstream and Chroma optimizer enabled. Adaptive quantitization disabled. FFDshow decoder, no other filters.

AVS script looks like this:
-- directshowsource("xxx.avi") #source is XviD
-- .......
-- convertTOyv12()

the XviD looks darker and color is way off from the original. help me please.

foxyshadis
17th November 2006, 10:52
What decoder? It seems you might be victim of the PC/TV range conversion issues. If you use the overlay renderer it should give you proper TV range conversion though.

mog08
20th November 2006, 00:26
FFdshow video decoder. Where does it say overlay renderer?

foxyshadis
20th November 2006, 00:54
That would be selectable in the player. In MPC it's in options->output, in zoomplayer it's in options->audio/video. (Or jst video if it's in advanced mode.) Don't recall where it was before the latest 5.0 RC though. No idea about WMP.

Didée
20th November 2006, 01:07
Lord, what's this.

There's nothing to conclude here, except that, indeed, the coloring is different. It's not even clear if your "original" is looking "right" ... in fact the film-greenish look of the 2nd is more appealing to me (right now at least).

a) DirectShowSource
Why DirectShowSource? It's possible that some DS filter is linking itself in the chain right here, and the reading of your source is already off.

b) From the ConvertToYV12() at the end it can be concluded that either

b1) the incoming of DirectShowSource was not delivering YV12 (which it should, since the source *is* YV12)

or
b2) you did some changes of colorspace in the script (because of c) below), which alone could explain the change in color

c) you obviously did some further processing in the script (what you snipped out in the {code} by '...'). The presence of processing is obvious e.g. from the difference in sharpness. So there's lots of room that you yourself caused the color change.

d)...z) some other possibilities I'm too tired to list now.


You did not deliver any evidence of XviD being the culprit. In fact there are much more indices that XviD is not the culprit.

Use AviSource, and post the full script.
BTW, I'm not fully sure of Nic's numbering anymore, but isn't "Nic's 0039 build" stone old nowadays ... ?

foxyshadis
20th November 2006, 03:31
Not that old, but not exactly new either:
http://xmm.sourceforge.net/DivX5-6_Xvid_Bitstream_version.php

But yeah, I didn't take into account additional processing that could've been done, whoops.

squid_80
20th November 2006, 04:55
It appears the screenshots aren't from the same frame number. I think that's why the microphone looks sharper in the second shot.

Didée
20th November 2006, 09:05
It appears the screenshots aren't from the same frame number. I think that's why the microphone looks sharper in the second shot.
Ooops, true. It's not the same frame.

But look e.g. at the edge of the forearm, below the text: blurry / low contrast in shot#1, crisp & oversharpened in shot #2 ... :)
Same for most other textures. Shot#2 definetly has undergone some sharpening processing.

mog08
21st November 2006, 12:30
I use meGUI's Avisynth scriptcreator. That's why it's left at "directshowsource".

I used VMR9 in Media Player Classic because overlay doesn't allow me save an image. But i've deleted that file, I'll try to create a similar situation.

The source is a 1024x576 XviD encode (8000~kbps).
Directshowsource("c:\xxx.avi",fps=29.00000002997,audio=false)
lanczos4resize(768,432)
sharpen(0.5)
no other filters + YV12 at the end.
sent to VirtualDubMod XviD 0039 quality=4.0
I use this to find a bitrate value to be used later for another encode.

Is it oversharped? the white letters/characters look darker than the original (maybe because background interfering). some parts are quite sharp.
The first image has low contrast on the main image but letters look sharp contrast to second one.

sorry it's not the same frame. I'll put another set in a while.

mog08
26th November 2006, 04:25
I figured it's nothing to do with XviD. but confused with different readings. Below are all from exact same video.

VMR9(renderless) MPC save image:
http://img296.imageshack.us/img296/662/ay0202v3x264gm4.jpg
http://img294.imageshack.us/img294/9186/ay0202x264nw8.jpg

meGui avs scriptcreator read "Print Screen" cap:
http://img296.imageshack.us/img296/7024/untitled01ag9.jpg
http://img141.imageshack.us/img141/2186/untitled02kh2.jpg

overlay mixer, FFdshow Grab funtion(which is massively different from what i am seeing):
http://img156.imageshack.us/img156/2408/grab03676le9.jpg
http://img99.imageshack.us/img99/2011/grab03680el7.jpg

I couldn't find ways to capture overlay mixer MPC.

So well which one should I trust?

Wilbert
26th November 2006, 13:46
So well which one should I trust?
This one:
meGui avs scriptcreator read "Print Screen" cap:

Sorry, i don't have an explanation for the greenish tint in your screenshots. How does it look like if you disable overlay and use VMR7?