Welcome to Doom9's Forum, THE in-place to be for everyone interested in DVD conversion.

Before you start posting please read the forum rules. By posting to this forum you agree to abide by the rules.

 

Go Back   Doom9's Forum > Capturing and Editing Video > Avisynth Usage

Reply
 
Thread Tools Search this Thread Display Modes
Old 23rd December 2009, 22:15   #1  |  Link
board123
Banned
 
Join Date: Jan 2007
Posts: 19
[solved] Resize causing color change

I've been using the built in resizers (generally Lanczos and Spline) for a long, long time and only noticed this issue today. I think the pictures will speak for themselves. I've resized the screenshots with Photoshop to make them more web friendly. The only things of interest here are the colors.

Original h264 source


Re-encoded with x264-1376 and LanczosResize


The easiest areas to spot the color change are the green chair in the background, the flowers in the hair and the cell phone. Skin tone also changes slightly. It seems the reds and greens are exaggerated while blues are subdued. I've done a lot of tweaking and confirmed that it is definitely the resize filter that's causing this.

Am I the only one having this problem? I haven't found any similar issues on the web regarding resize filters. This is such an odd problem...

Last edited by board123; 24th December 2009 at 07:46.
board123 is offline   Reply With Quote
Old 24th December 2009, 01:45   #2  |  Link
bizz & buzz
Banned
 
Join Date: Jun 2008
Posts: 94
If you are downscaling from HD to SD, perhaps using ColorMatrix will fix this issue.

EDIT: here is a very good summery on why,when and how to use ColorMatrix:
http://forum.doom9.org/showthread.php?t=133982

Last edited by bizz & buzz; 24th December 2009 at 01:52.
bizz & buzz is offline   Reply With Quote
Old 24th December 2009, 02:50   #3  |  Link
IanB
Avisynth Developer
 
Join Date: Jan 2003
Location: Melbourne, Australia
Posts: 3,167
My guess is you have a Rec601/709 translation in your process.

Taking your original PNG plus ConvertToYV12(Matrix="Rec709") comparing to your encoded PNG plus ConvertToYV12(Matrix="Rec601") and they match
IanB is offline   Reply With Quote
Old 24th December 2009, 07:35   #4  |  Link
board123
Banned
 
Join Date: Jan 2007
Posts: 19
After some more playing around before your replies, I reached the same conclusion. It is indeed a case of the output being treated as Rec601.

ColorMatrix(mode="Rec.709->Rec.601") in the script fixed the problem. Thanks.
board123 is offline   Reply With Quote
Reply

Tags
avisynth, lanczos, resize, x264

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 05:17.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.