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

Reply
 
Thread Tools Search this Thread Display Modes
Old 23rd January 2007, 15:48   #281  |  Link
henryho_hk
Registered User
 
Join Date: Mar 2004
Posts: 889
Can ColorMatrix derive the "interlaced" parameter from specified d2v file?

Search => http://forum.doom9.org/showpost.php?...&postcount=246

Last edited by henryho_hk; 23rd January 2007 at 15:49. Reason: Answered myself
henryho_hk is offline   Reply With Quote
Old 23rd January 2007, 21:29   #282  |  Link
Wilbert
Moderator
 
Join Date: Nov 2001
Location: Netherlands
Posts: 6,364
No, it can't. Afaik you can't decide on basis of the d2v whether your clip is interlaced or progressive.

Last edited by Wilbert; 23rd January 2007 at 21:32.
Wilbert is offline   Reply With Quote
Old 23rd January 2007, 22:25   #283  |  Link
Sharro
Xvid Tribalistic Fan
 
Join Date: Oct 2001
Location: Portugal
Posts: 270
Quote:
Originally Posted by Wilbert View Post
No, it can't. Afaik you can't decide on basis of the d2v whether your clip is interlaced or progressive.
Quote:
Originally Posted by neuron2 View Post
No, because the stream might not be progressive. And no, DGIndex cannot rely on the pogressive frame flag as it often lies.
Wilbert and neuron2 should be right

All the best,

Sharro
Sharro is offline   Reply With Quote
Old 24th January 2007, 04:37   #284  |  Link
12monkeys
Registered User
 
Join Date: Feb 2003
Posts: 7
What should I set the interlaced parameter to if I am dealing with progressive encoded as interlaced?
12monkeys is offline   Reply With Quote
Old 24th January 2007, 04:46   #285  |  Link
Guest
Guest
 
Join Date: Jan 2002
Posts: 21,901
That's controversial. I'm in the camp that says to treat it as progressive. My AutoYUY2() filter is interesting in this regard:

http://neuron2.net/autoyuy2/autoyuy2.html
Guest is offline   Reply With Quote
Old 30th January 2007, 09:53   #286  |  Link
Jeremy Duncan
Didée Fan
 
Jeremy Duncan's Avatar
 
Join Date: Feb 2006
Location: Canada
Posts: 1,079
If I calibrate my monitor to Rec.601, and use colormatrix to then convert the Rec.601 to Rec.709.
Will my monitor calibration transfer from Rec.601 to Rec.709 ?
So it's as if I calibrated my monitor to Rec.709 specifications ?

Jeremy Duncan is offline   Reply With Quote
Old 30th January 2007, 15:11   #287  |  Link
new7up
Registered User
 
Join Date: Aug 2002
Location: HONGKONG
Posts: 19
all link bad, I can't downland it.can repair it?
new7up is offline   Reply With Quote
Old 30th January 2007, 15:50   #288  |  Link
Guest
Guest
 
Join Date: Jan 2002
Posts: 21,901
Which link are you having trouble with?
Guest is offline   Reply With Quote
Old 30th January 2007, 17:42   #289  |  Link
Jeremy Duncan
Didée Fan
 
Jeremy Duncan's Avatar
 
Join Date: Feb 2006
Location: Canada
Posts: 1,079
Quote:
Originally Posted by Jeremy Duncan View Post
If I calibrate my monitor to Rec.601, and use colormatrix to then convert the Rec.601 to Rec.709.
Will my monitor calibration transfer from Rec.601 to Rec.709 ?
So it's as if I calibrated my monitor to Rec.709 specifications ?

What I do (I'm not sure this is the correct way), is calibrate my monitor to Rec.601 then use colormatrix. I tried to calibrate my monitor using Colormatrix and a Rec.601 calibration disk and I couldn't do it.

Colormatrix is a color upconverter. So I'm figuring it'll upconvert a monitor calibrated to Rec.601, to Rec.709 or HDTV standard.

So far I like the results.

Can somebody please confirm if my meathod is correct ?
Please.
Jeremy Duncan is offline   Reply With Quote
Old 2nd February 2007, 09:24   #290  |  Link
Jeremy Duncan
Didée Fan
 
Jeremy Duncan's Avatar
 
Join Date: Feb 2006
Location: Canada
Posts: 1,079
Tritical, Your colormatrix.dll version 2.1 is broken.

Link

Quote:
Originally Posted by dr1394
The 601 and 709 matrices only effect colors. Cb and Cr are equal to 128 when there is absence of color (black, white, gray, BTB, WTW). Both matrices will output the same RGB values when Cb and Cr are 128. Just look at the equations:

601
R = Y + 1.371(Cr - 128)
G = Y - 0.698(Cr - 128) - 0.336(Cb - 128)
B = Y + 1.732(Cb - 128)

709
R = Y + 1.54(Cr - 128)
G = Y - 0.459(Cr - 128) - 0.183(Cb - 128)
B = Y + 1.816(Cb - 128)

When Cb and Cr are 128, both equations become R = G = B = Y.

Ron
The BTB, and WTW changes with Colormatrix version 2.1
I've tested bt601tobt709.dll and there was no change in BTB, WTW when I tested Rec.601, Rec.709
Jeremy Duncan is offline   Reply With Quote
Old 2nd February 2007, 10:01   #291  |  Link
tritical
Registered User
 
Join Date: Dec 2003
Location: MO, US
Posts: 999
You can test for yourself using blankclip that colormatrix does not alter luma values when both chroma planes = 128, regardless of source/dest. Perhaps you have scaling=0 (which clips input and output to 16-235/16-240) when you actually want scaling = 1 or 2?
tritical is offline   Reply With Quote
Old 2nd February 2007, 10:17   #292  |  Link
Jeremy Duncan
Didée Fan
 
Jeremy Duncan's Avatar
 
Join Date: Feb 2006
Location: Canada
Posts: 1,079
Tritical,

My Dell Notebook LCD cannot calibrate the Contrast as well as a expensive monitor, and the very light colored bars in the Getgray Caldisc contrast pattern are not visible unless I use FFDshow Levels.

So I set FFDshow levels and the very light Contrast color bars were visible.
I then lowered the Levels tweak, so that I could just barely see the lightest contrast bars.
I then set the Colormatrix version 2.1 into FFDshow's avisynth.
I set it to convert Rec.601, to Rec.709.

Now, I have the Levels set so that the contrast pattern is barely showing it's lightest white bars. And I have Colormatrix ready to use.
- I check the FFDshow Avisynth box and activate Colormatrix.
The lightest white bars Disappear !

I do the very same test with the other plugin I linked to, and the lightest white bars did not disappear.
Both plugins did change the rgb colors too.

So I don't know what test you did, but I saw it with my own eyes.
Maybe you better double check.

Edit. I'm only using this code;
ColorMatrix(mode="Rec.601->Rec.709")

Last edited by Jeremy Duncan; 2nd February 2007 at 10:20.
Jeremy Duncan is offline   Reply With Quote
Old 2nd February 2007, 10:37   #293  |  Link
tritical
Registered User
 
Join Date: Dec 2003
Location: MO, US
Posts: 999
I tested that using colormatrix on a black and white clip (both chroma planes = 128) is a nop, as it should be. However, if you set scaling = 0 (which is the default value) then the input and output luma values will be clipped to 16-235 range. This is probably why the lightest bars disappear. If you want to keep the full 0-255 range then use scaling=1 so that the clipping doesn't occur.

ColorMatrix(mode="Rec.601->Rec.709",scaling=1)

The scaling parameter is explained in the readme.
tritical is offline   Reply With Quote
Old 2nd February 2007, 10:48   #294  |  Link
Jeremy Duncan
Didée Fan
 
Jeremy Duncan's Avatar
 
Join Date: Feb 2006
Location: Canada
Posts: 1,079
Quote:
Originally Posted by tritical View Post
I tested that using colormatrix on a black and white clip (both chroma planes = 128) is a nop, as it should be. However, if you set scaling = 0 (which is the default value) then the input and output luma values will be clipped to 16-235 range. This is probably why the lightest bars disappear. If you want to keep the full 0-255 range then use scaling=1 so that the clipping doesn't occur.

ColorMatrix(mode="Rec.601->Rec.709",scaling=1)

The scaling parameter is explained in the readme.
That fixed the problem. Thank you very, very much Tritical.
Jeremy Duncan is offline   Reply With Quote
Old 2nd February 2007, 11:59   #295  |  Link
Sharro
Xvid Tribalistic Fan
 
Join Date: Oct 2001
Location: Portugal
Posts: 270
Quote:
Originally Posted by tritical View Post
I tested that using colormatrix on a black and white clip (both chroma planes = 128) is a nop, as it should be. However, if you set scaling = 0 (which is the default value) then the input and output luma values will be clipped to 16-235 range. This is probably why the lightest bars disappear. If you want to keep the full 0-255 range then use scaling=1 so that the clipping doesn't occur.

ColorMatrix(mode="Rec.601->Rec.709",scaling=1)

The scaling parameter is explained in the readme.
Tritical is it my eyes tricking me on for no clipping + unscaled should be scaling=2 ?

From the readme:


o 2 - no pre/post clipping and unscaled coefficients

All the best,

Sharro
Sharro is offline   Reply With Quote
Old 2nd February 2007, 19:45   #296  |  Link
tritical
Registered User
 
Join Date: Dec 2003
Location: MO, US
Posts: 999
You're correct that scaling = 2 is needed for no clipping + unscaled coefficients... scaling = 1 also has no clipping but uses scaled coefficients. In his case the difference doesn't matter since he is using a greyscale clip and both will give the same result (the output will be exactly the same as the input). If it wasn't a black/white clip then he'd have to determine which one is actually correct based on the origin of the clip.
tritical is offline   Reply With Quote
Old 2nd February 2007, 22:33   #297  |  Link
Sharro
Xvid Tribalistic Fan
 
Join Date: Oct 2001
Location: Portugal
Posts: 270
I got it tritical...but now I got confused, I always do my D2V's with PC Scale which I is full range 0-255 and mostly I'm doing Rec709 to Xvid so Rec601 and should be full range also.

Should I always use scaling=2 ?

Thanks.

Sharro
Sharro is offline   Reply With Quote
Old 3rd February 2007, 00:18   #298  |  Link
Wilbert
Moderator
 
Join Date: Nov 2001
Location: Netherlands
Posts: 6,364
Quote:
I got it tritical...but now I got confused, I always do my D2V's with PC Scale which I is full range 0-255
The range is always [16,235] YCbCr. So that PC Scale setting doesn't do anything, unless you use dgvfapi (which converts it to RGB).
Wilbert is offline   Reply With Quote
Old 3rd February 2007, 00:52   #299  |  Link
HeadBangeR77
Registered User
 
HeadBangeR77's Avatar
 
Join Date: Dec 2006
Location: Heidelberg (DE), Kraków (PL)
Posts: 519
Quote:
Originally Posted by Sharro View Post
I got it tritical...but now I got confused, I always do my D2V's with PC Scale which I is full range 0-255 and mostly I'm doing Rec709 to Xvid so Rec601 and should be full range also.

Should I always use scaling=2 ?

Thanks.

Sharro
I've done some sample encodes using colomatrix, and haven't spotted any difference between those 3 scaling settings, although I sould have, actually.

Does the fact, that so called PC-Scale is suggested in my every d2v project could have an ifluence on that?

@ Wilbert: I've just marked your post: so what's the point in choosing between PC and TV-scale while doing a d2v project with DGIndex?
__________________
"Only two things are infinite: the universe and human stupidity, and I'm not sure about the former."

Last edited by HeadBangeR77; 3rd February 2007 at 00:54.
HeadBangeR77 is offline   Reply With Quote
Old 3rd February 2007, 00:53   #300  |  Link
tritical
Registered User
 
Join Date: Dec 2003
Location: MO, US
Posts: 999
Yes, the PC scale setting in dgindex is somewhat strange and is only used if dgdecode is delivering rgb (either by dgvfapi or upconv=2). With pc scale it converts yuv->RGB(0-255) with tv scale it converts yuv->RGB(16-235). The conversion routines in dgindex/dgdecode all assume yuv 16-235 range (i.e. they use scaled coefficients). However, dgindex/dgdecode never actually clamp values to that range (either on output or on input to the color conversion routines), which makes it similar to scaling=1 in colormatrix.

Quote:
Should I always use scaling=2 ?
If you are working with dvd footage then you should use scaling=0 or 1.

The thing to remember is that colormatrix simulates a yuv->rgb->yuv conversion. If you use scaling = 0 you are simulating yuv(16-235/16-240)->rgb(0-255)->yuv(16-235/16-240), where the yuv values are clamped before and after. With scaling = 2 you are simulating yuv(0-255)->rgb(0,255)->yuv(0-255). Scaling=1 is the same as 0 except that the yuv values aren't clamped to the 16-235/16-240 range before and after the conversion.
tritical is offline   Reply With Quote
Reply

Tags
colormatrix


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 02:10.


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