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 Development

Reply
 
Thread Tools Search this Thread Display Modes
Old 22nd February 2018, 09:27   #1  |  Link
leiming2006
Registered User
 
leiming2006's Avatar
 
Join Date: Mar 2006
Location: Shanghai, China
Posts: 203
ColorMatrix v2.6 supports Rec.2020

Hello, the original ColorMatrix plugin has no Rec.2020 matrix support.
There seems to be needs to convert Rec.2020 to Rec.709 for compatibility purpose.

I'm not sensitive to incorrect color. Could someone help me to confirm if it's correct?

colormatrix.dll download:
https://github.com/sorayuki/ColorMat...eases/tag/v2.6
( colormatrix_v2_6.zip contains colormatrix.dll )

source code:
https://github.com/sorayuki/ColorMatrix

original one: https://forum.doom9.org/showthread.php?t=81875
colormatrix v2.5: included in avisynth documentation

Last edited by leiming2006; 22nd February 2018 at 10:13.
leiming2006 is offline   Reply With Quote
Old 22nd February 2018, 11:21   #2  |  Link
Sparktank
47.952fps@71.928Hz
 
Sparktank's Avatar
 
Join Date: Mar 2011
Posts: 940
TBH, colormatrix support could have more documentation since the new-age of UHD and AVS+/VS.

I've just been using either Dither_Package (stacked16) or z.lib to convert colormatrix for FHD/UHD in AVS+.

But, with Z.Lib, it helps to look at the source code to see the compatible calls required for the colormatrix/transfer/etc:
https://forum.doom9.org/showthread.php?t=173986

That's how I do colormatrix in x64.
__________________
Win10 (x64) build 19041
NVIDIA GeForce GTX 1060 3GB (GP106) 3071MB/GDDR5 | (r435_95-4)
NTSC | DVD: R1 | BD: A
AMD Ryzen 5 2600 @3.4GHz (6c/12th, I'm on AVX2 now!)
Sparktank is offline   Reply With Quote
Old 22nd February 2018, 15:47   #3  |  Link
leiming2006
Registered User
 
leiming2006's Avatar
 
Join Date: Mar 2006
Location: Shanghai, China
Posts: 203
Quote:
Originally Posted by Sparktank View Post
TBH, colormatrix support could have more documentation since the new-age of UHD and AVS+/VS.

I've just been using either Dither_Package (stacked16) or z.lib to convert colormatrix for FHD/UHD in AVS+.

But, with Z.Lib, it helps to look at the source code to see the compatible calls required for the colormatrix/transfer/etc:
https://forum.doom9.org/showthread.php?t=173986

That's how I do colormatrix in x64.
First time heard of the interesting z.lib library.
It seems that I haven't get in touch with AviSynth users and only knowing the outdated ColorMatrix plugin...
leiming2006 is offline   Reply With Quote
Old 23rd February 2018, 03:34   #4  |  Link
leiming2006
Registered User
 
leiming2006's Avatar
 
Join Date: Mar 2006
Location: Shanghai, China
Posts: 203
Quote:
Originally Posted by Sparktank View Post
TBH, colormatrix support could have more documentation since the new-age of UHD and AVS+/VS.

I've just been using either Dither_Package (stacked16) or z.lib to convert colormatrix for FHD/UHD in AVS+.

But, with Z.Lib, it helps to look at the source code to see the compatible calls required for the colormatrix/transfer/etc:
https://forum.doom9.org/showthread.php?t=173986

That's how I do colormatrix in x64.
Hello, I tried the Z.lib plugin for AVS with this statement:
Code:
z_ConvertFormat(colorspace_op="2020:st2084:2020:limited=>709:709:709:limited", pixel_type="YV12", dither_type="none")
It runs rather slow. Is there something wrong with my arguments?

Last edited by leiming2006; 23rd February 2018 at 03:37.
leiming2006 is offline   Reply With Quote
Old 23rd February 2018, 19:39   #5  |  Link
Sparktank
47.952fps@71.928Hz
 
Sparktank's Avatar
 
Join Date: Mar 2011
Posts: 940
Quote:
Originally Posted by leiming2006 View Post
Hello, I tried the Z.lib plugin for AVS with this statement:
Code:
z_ConvertFormat(colorspace_op="2020:st2084:2020:limited=>709:709:709:limited", pixel_type="YV12", dither_type="none")
It runs rather slow. Is there something wrong with my arguments?
That looks correct.

Not sure why it would be slow.
__________________
Win10 (x64) build 19041
NVIDIA GeForce GTX 1060 3GB (GP106) 3071MB/GDDR5 | (r435_95-4)
NTSC | DVD: R1 | BD: A
AMD Ryzen 5 2600 @3.4GHz (6c/12th, I'm on AVX2 now!)
Sparktank is offline   Reply With Quote
Old 23rd January 2020, 04:02   #6  |  Link
kedautinh12
Registered User
 
Join Date: Jan 2018
Posts: 2,153
I see incorrect in this post
https://forum.doom9.org/showthread.p...62#post1882362
kedautinh12 is offline   Reply With Quote
Old 10th April 2020, 18:49   #7  |  Link
leiming2006
Registered User
 
leiming2006's Avatar
 
Join Date: Mar 2006
Location: Shanghai, China
Posts: 203
Quote:
Originally Posted by kedautinh12 View Post
I have no enough knowledge towards HDR; possible I can't handle it.

It may be a good idea to move to zimg? It produces right result convert BT.2020 (HDR) to BT.709 (SDR)

It has been quite a long time since I tried this ( https://forum.doom9.org/showthread.php?t=173986 ), and I even got test materials lost... Not sure if still suffers performance issue in my computer.

library: https://github.com/sekrit-twc/zimg
leiming2006 is offline   Reply With Quote
Old 1st May 2020, 15:57   #8  |  Link
almosely
Registered User
 
Join Date: Dec 2006
Location: Germany
Posts: 91
Hi,

I am using AviSynth+ 3.5.1 (x64), but since a few months ago, colormatrix is causing crashes of the MPC-HC media player (x64), while controlling the settings out of AvsPmod (x64). Recently I noticed, that there are updates for the MPC-HC at GitHub (last version 1.9.2 from 23. March 2020; I just exchanged the whole MPC-HC folder of my existing old version, since there is no documentation about installing/updating MPC-HC), but colormatrix is not working with that version either; but something has changed: with the old MPC-HC version (1.7.13 from 16. july 2017), MPC-HC just crashes, while with the new version, MPC-HC spits out an error message about an access violation of the colormatrix-thread at some memory adress. Colormatrix (x64) is working fine within AvsPmod and Simple x264 Launcher (using x264 64-bit), but wether I try it out of AvsPmod or straight out of the windows explorer (Windows 10 x64), MPC-HC crashes. I think, is has something to do with recent updates of windows or some visual c++ libraries - just a feeling. So, my questions are: Could you compile a x64-version of your colormatrix-version, so I can try, if that works (there's no need for BT.2020 for me, btw.)? Colormatrix is working absolutely fine with AVS+ (x64) (multi- and single threaded), as explained here.

I use colormatrix quite a lot for documentations, series and movies without visual features (comedies, intimate theater ...), which I re-encode to SD anamorph (mostly 16:11).

Last edited by almosely; 1st May 2020 at 16:22.
almosely is offline   Reply With Quote
Old 1st May 2020, 18:51   #9  |  Link
kedautinh12
Registered User
 
Join Date: Jan 2018
Posts: 2,153
Quote:
Originally Posted by almosely View Post
Hi,

I am using AviSynth+ 3.5.1 (x64), but since a few months ago, colormatrix is causing crashes of the MPC-HC media player (x64), while controlling the settings out of AvsPmod (x64). Recently I noticed, that there are updates for the MPC-HC at GitHub (last version 1.9.2 from 23. March 2020; I just exchanged the whole MPC-HC folder of my existing old version, since there is no documentation about installing/updating MPC-HC), but colormatrix is not working with that version either; but something has changed: with the old MPC-HC version (1.7.13 from 16. july 2017), MPC-HC just crashes, while with the new version, MPC-HC spits out an error message about an access violation of the colormatrix-thread at some memory adress. Colormatrix (x64) is working fine within AvsPmod and Simple x264 Launcher (using x264 64-bit), but wether I try it out of AvsPmod or straight out of the windows explorer (Windows 10 x64), MPC-HC crashes. I think, is has something to do with recent updates of windows or some visual c++ libraries - just a feeling. So, my questions are: Could you compile a x64-version of your colormatrix-version, so I can try, if that works (there's no need for BT.2020 for me, btw.)? Colormatrix is working absolutely fine with AVS+ (x64) (multi- and single threaded), as explained here.

I use colormatrix quite a lot for documentations, series and movies without visual features (comedies, intimate theater ...), which I re-encode to SD anamorph (mostly 16:11).
Here:
http://www.mediafire.com/file/aj88vd...trix26.7z/file
kedautinh12 is offline   Reply With Quote
Old 1st May 2020, 19:41   #10  |  Link
Groucho2004
 
Join Date: Mar 2006
Location: Barcelona
Posts: 5,034
Quote:
Originally Posted by almosely View Post
So, my questions are: Could you compile a x64-version of your colormatrix-version, so I can try, if that works (there's no need for BT.2020 for me, btw.)?
Have you tried the one from this page?
__________________
Groucho's Avisynth Stuff
Groucho2004 is offline   Reply With Quote
Old 1st May 2020, 19:51   #11  |  Link
almosely
Registered User
 
Join Date: Dec 2006
Location: Germany
Posts: 91
Ola! Thank you both very much :-) The version linked by kedautinh12 is directing to your download page, Groucho. Just tested it with an .avs-script, dragged into mpc-hc via windows explorer - worked fine :-)

- edit -

Hah, now I remember: The last time I checked your thread, Groucho, the link to the download-site was not working; but that was quite a while ago.

Last edited by almosely; 1st May 2020 at 19:55.
almosely is offline   Reply With Quote
Old 1st May 2020, 20:31   #12  |  Link
Groucho2004
 
Join Date: Mar 2006
Location: Barcelona
Posts: 5,034
Quote:
Originally Posted by almosely View Post
The version linked by kedautinh12 is directing to your download page, Groucho.
I didn't realize. Anyway, I'm glad it works for you.
__________________
Groucho's Avisynth Stuff
Groucho2004 is offline   Reply With Quote
Old 2nd May 2020, 05:36   #13  |  Link
hello_hello
Registered User
 
Join Date: Mar 2011
Posts: 4,823
Don't forget ColorMatrix v2.6 has issues.

Even though it seems it was never intended to convert between rec.2020 and rec.601, it allows you to specify a conversion in either direction, but rather than produce an error message, it's does nothing.

Conversions from rec.709 to rec.2020 seem okay, but conversions from rec.2020 to rec.709 produce a different result to other programs such as DitherTools.

ColorMatrix doesn't convert the color primaries as programs such as HDRTools (can) do (neither does DitherTools). I still don't understand the logic behind converting to/from rec.2020 using a matrix-only method.

I've only played with the 32 bit version.
hello_hello is offline   Reply With Quote
Reply

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 19:47.


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