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 > General > Newbies
Register FAQ Calendar Today's Posts Search

Reply
 
Thread Tools Search this Thread Display Modes
Old 26th February 2014, 17:08   #1  |  Link
bxyhxyh
Registered User
 
Join Date: Dec 2011
Posts: 354
Where should i call colormatrix()?

I'm upscaling some DVDs.
Upscaling means i have to set correct color.

Code:
#source
#pre upscale filters
Spline36Resize(960,720)
Colormatrix("Rec.601->Rec.709") #Is it correct to call here? Or should i call it after post upscale filters?
#post upscale filters

Last edited by bxyhxyh; 26th February 2014 at 17:10.
bxyhxyh is offline   Reply With Quote
Old 26th February 2014, 23:08   #2  |  Link
turbojet
Registered User
 
Join Date: May 2008
Posts: 1,840
Should be good although I've been putting at the end of the script for years and never had an issue.
__________________
PC: FX-8320 GTS250 HTPC: G1610 GTX650
PotPlayer/MPC-BE LAVFilters MadVR-Bicubic75AR/Lanczos4AR/Lanczos4AR LumaSharpen -Strength0.9-Pattern3-Clamp0.1-OffsetBias2.0
turbojet is offline   Reply With Quote
Old 27th February 2014, 00:09   #3  |  Link
Groucho2004
 
Join Date: Mar 2006
Location: Barcelona
Posts: 5,034
Quote:
Originally Posted by turbojet View Post
Should be good although I've been putting at the end of the script for years and never had an issue.
Hm, I've been putting it always right after the source filter, i.e. DGDecode(NV).
Groucho2004 is offline   Reply With Quote
Old 27th February 2014, 01:19   #4  |  Link
Gavino
Avisynth language lover
 
Join Date: Dec 2007
Location: Spain
Posts: 3,431
The order doesn't matter - the result should be the same (except possibly for random rounding differences).
__________________
GScript and GRunT - complex Avisynth scripting made easier
Gavino is offline   Reply With Quote
Old 27th February 2014, 01:48   #5  |  Link
Guest
Guest
 
Join Date: Jan 2002
Posts: 21,901
Wouldn't it be marginally more efficient to apply colormatrix to the clip in its smallest frame dimension?
Guest is offline   Reply With Quote
Old 27th February 2014, 07:45   #6  |  Link
bxyhxyh
Registered User
 
Join Date: Dec 2011
Posts: 354
If i call it after source filter, color is changed after upscale.
So I'll do as Gavino said.

Thanks for your answers.
bxyhxyh is offline   Reply With Quote
Old 27th February 2014, 10:26   #7  |  Link
Gavino
Avisynth language lover
 
Join Date: Dec 2007
Location: Spain
Posts: 3,431
Quote:
Originally Posted by bxyhxyh View Post
If i call it after source filter, color is changed after upscale.
There should be no visible difference between

Spline36Resize(960,720)
Colormatrix("Rec.601->Rec.709")

and

Colormatrix("Rec.601->Rec.709")
Spline36Resize(960,720)

neuron2 is correct that the second will be marginally more efficient.
__________________
GScript and GRunT - complex Avisynth scripting made easier
Gavino is offline   Reply With Quote
Old 27th February 2014, 23:41   #8  |  Link
hello_hello
Registered User
 
Join Date: Mar 2011
Posts: 4,829
Nobody uses the clamp setting?

ColorMatrix(mode="Rec.601->Rec.709", clamp=0)
hello_hello is offline   Reply With Quote
Old 1st March 2014, 01:01   #9  |  Link
manono
Moderator
 
Join Date: Oct 2001
Location: Hawaii
Posts: 7,406
Quote:
Originally Posted by hello_hello View Post
Nobody uses the clamp setting?
Me, me, me, me.

Except I'm usually downscaling from Hi-Def to DVD video.
manono is offline   Reply With Quote
Reply


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 14:32.


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