PDA

View Full Version : editing video color using avisynth, help me match these two pics


MKVCrazy
13th April 2009, 21:20
hi guys. I was messing around with megui last night and wanted to test how low I could go with the bitrate and still get similar result to the source and it was really low and still similar result as expected but however I had a problem. There was slightly color change in the output of the re encoded version. It got darker or more saturated. I have no idea how to fix it but I think avisynth can edit the color a bit to match the source's color.

Here are the two pics, CAP1 (reconverted) and CAP2(source). I want to match CAP1 to CAP2's color.

CAP1 (x264)
http://i40.tinypic.com/157c29w.jpg

my .avs
AVISource("C:\Users\Encodings\Desktop\Sample\coa-echelon-sample.avi", audio=false)
loadplugin("C:\Program Files\AviSynth 2.5\plugins\FFT3DFilter.dll")

fft3dfilter(sigma=1.5, bt=5, bw=30, bh=30, ow=8, oh=8, sharpen=0.6, ncpu=2, measure=true, wintype=2)
LanczosResize(480,272) # Lanczos (Sharp)

__film = last
__t0 = __film.trim(0,50)
__t0


CAP2 (XviD)
http://i40.tinypic.com/2i0z0xv.jpg



Thank you,
MKVCrazy

Keiyakusha
13th April 2009, 21:47
I see TV/PC scale problem here. If you apply PC scale to CAP2, it will be similar to CAP1. This is playback problem so CAP1 looks right, CAP2 - wrong. If you want to match colors, you should tweak your decoders/players.

MKVCrazy
14th April 2009, 00:24
I see TV/PC scale problem here. If you apply PC scale to CAP2, it will be similar to CAP1. This is playback problem so CAP1 looks right, CAP2 - wrong. If you want to match colors, you should tweak your decoders/players.

how can I tweak my decoders? I'm using FFDShow for the XviD and CoreAVC for the x264.

All I did was install K-Lite Codec pack (latest) and use the Media Player Classic which came with it.

I appreciate your concern on helping me.

EDIT: even though I put nothing in the avisynth, I still get CAP1 darker.

Keiyakusha
14th April 2009, 01:25
EDIT: even though I put nothing in the avisynth, I still get CAP1 darker.

I beleave your videos have the same colors, you just have different output when playing. CAP1 looks as it should so you should not touch it. But if you really want, try to set this (http://www.petaimg.com/u357/20314.04.png) or try different combinations.

MKVCrazy
14th April 2009, 06:31
I beleave your videos have the same colors, you just have different output when playing. CAP1 looks as it should so you should not touch it. But if you really want, try to set this (http://www.petaimg.com/u357/20314.04.png) or try different combinations.

Thank you. Changing to TV output fixed the problem. Both have same colors. I couldn't see the man in the front's coat in the dark scenes with PC output.