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 17th November 2015, 04:07   #1  |  Link
MysteryX
Soul Architect
 
MysteryX's Avatar
 
Join Date: Apr 2014
Posts: 2,558
Odd Double Matrix Conversion

I have this video that is very odd.
https://mega.nz/#!7NI0CJDR!ysvMqbkwU...B4wRnrJQDfQq_E

If you look at the red chair, half of it is plain red (cropped colors)

Because it is Rec.601, we must add this
Code:
ColorMatrix(mode="Rec.601->Rec.709")
The red is still cropped. However, if you repeat the ColorMatrix twice, then the chair gains back its texture and now looks more like a chair!

Yeah, something is screwed up with this video. I can do the conversion twice and it will give me a better result.

But then does this also apply to other videos? Here's another one. Could you take a look at it and tell me whether you think it needs to be converted to Rec.709 once or twice?
https://mega.nz/#!SM4TiZhA!oNaeorzfD...9Z1caOqDaQKzdE

How can I know which videos require this "fix" ?

Anything else you have to say about these videos?
MysteryX is offline   Reply With Quote
Old 17th November 2015, 07:44   #2  |  Link
poisondeathray
Registered User
 
Join Date: Sep 2007
Posts: 5,015
Decrease the red saturation, there are oversaturated reds, that's why the chair detail is obscured

Colormatrix twice will screw up the other colors

Also, you should use clamp=0 to not clip colors with colormatrix
poisondeathray is offline   Reply With Quote
Old 17th November 2015, 08:25   #3  |  Link
MysteryX
Soul Architect
 
MysteryX's Avatar
 
Join Date: Apr 2014
Posts: 2,558
How do I decrease the red saturation?
MysteryX is offline   Reply With Quote
Old 17th November 2015, 15:15   #4  |  Link
raffriff42
Retried Guesser
 
raffriff42's Avatar
 
Join Date: Jun 2012
Posts: 1,373
Rec.601->Rec.709 conversion (through any method, not just ColorMatrix) decreases red saturation and increases green.
Code:
#LoadPlugin("ColorMatrix\ColorMatrix.dll")
ColorBars(pixel_type="YV12")
AmplifyDB(-24)
Trim(0, 59)
return (Last.Subtitle("org")
\ ++ Last.ColorMatrix(mode="Rec.709->Rec.601").Subtitle("Rec.709->Rec.601")
\ ++ Last.ColorMatrix(mode="Rec.601->Rec.709").Subtitle("Rec.601->Rec.709")
\ ).Loop(100)
raffriff42 is offline   Reply With Quote
Old 17th November 2015, 15:48   #5  |  Link
Reel.Deel
Registered User
 
Join Date: Mar 2012
Location: Texas
Posts: 1,506
The V channel contains out of range values, when it gets converted to RGB those illegal values get clipped.



Try correcting it with something like this:
Code:
MPEG2Source("Nicole-Oon-Jai.d2v")

y = last
u = UToY8()
v = VToY8().Levels(0, 1, 255, 16, 240)

YToUV(u,v,y)
It desaturates pink just a tad but the red looks much better.
Reel.Deel 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 10:59.


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