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 8th February 2005, 01:42   #81  |  Link
Guest
Guest
 
Join Date: Jan 2002
Posts: 21,901
Cool, tritical. Just wanted to remind people that they need DGMPGDec 1.2.0 RC2 and that they need to have info=2 on the MPEG2Source() invocation to generate the hints.

The interlaced/progressive hint just follows the pf bit, so if a frame is pulled down, it may not be accurate. I'm not sure how useful that hint is in a following filter. In Decomb it means something else.

Last edited by Guest; 8th February 2005 at 01:44.
Guest is offline   Reply With Quote
Old 8th February 2005, 02:41   #82  |  Link
Guest
Guest
 
Join Date: Jan 2002
Posts: 21,901
Oops, info=3 is required to output hints.
Guest is offline   Reply With Quote
Old 8th February 2005, 04:25   #83  |  Link
tritical
Registered User
 
Join Date: Dec 2003
Location: MO, US
Posts: 999
Yep, I was wondering about the useability of the progressive/interlaced hint from dgdecode if the stream has rff flags. Anyways, the version I put up doesn't check that bit atm (just the colorimetry)... so the interlaced setting needs to be set manually. In fact, whether or not the stream is interlaced only matters for yv12... if the input is yuy2 then it doesn't make a difference and interlaced can be set to false regardless.
tritical is offline   Reply With Quote
Old 8th February 2005, 10:26   #84  |  Link
Wilbert
Moderator
 
Join Date: Nov 2001
Location: Netherlands
Posts: 6,364
Quote:
Well, I've been debating putting this up since I don't know if Wilbert is planning to release a new version soon, but I'll just put it up temporarily for those interested in testing.
Cool thanks! I was away this weekend, and the server was down yesterday evening, so I couldn't look at it

Quote:
so the interlaced setting needs to be set manually.
That's fine. I prefer to use it if the video has combing (which needn't be the case for interlaced material, you know this progressive encoded as interlaced stuff ...).
Wilbert is offline   Reply With Quote
Old 8th February 2005, 11:38   #85  |  Link
len0x
I'm afraid we've to stop
 
len0x's Avatar
 
Join Date: Mar 2003
Location: Amongst mad people
Posts: 5,398
Great! Will try that one asap (not that I need hints, but more accurate mmx routine is always welcomed)
__________________
Gordian Knot Family:
Gordian Knot: website, download
Auto Gordian Knot: Website and download, tutorial, FAQ
len0x is offline   Reply With Quote
Old 8th February 2005, 17:46   #86  |  Link
len0x
I'm afraid we've to stop
 
len0x's Avatar
 
Join Date: Mar 2003
Location: Amongst mad people
Posts: 5,398
@tritical

I've done some tests and your new version seems to be faster when not using MMX comparing to the official 1.7. Did you change anything in C code?
__________________
Gordian Knot Family:
Gordian Knot: website, download
Auto Gordian Knot: Website and download, tutorial, FAQ
len0x is offline   Reply With Quote
Old 8th February 2005, 22:19   #87  |  Link
Wilbert
Moderator
 
Join Date: Nov 2001
Location: Netherlands
Posts: 6,364
@tritical

Code:
Mpeg2source("F:\TestStreams\avs\AguileraGrammies.d2v",info=3) # Rec.709
ColorMatrix(debug=true)
doesn't show any text, although I used dgmpgdec120rc2.zip and
Code:
Mpeg2source("F:\TestStreams\avs\AguileraGrammies.d2v",info=1)
gives Rec.709, and although the Rec.709->Rec.601 conversion is done
Wilbert is offline   Reply With Quote
Old 9th February 2005, 04:08   #88  |  Link
tritical
Registered User
 
Join Date: Dec 2003
Location: MO, US
Posts: 999
Hm, should have said it was the simple/plain kind of debug output, via OutputDebugString(). It doesn't write any text on the frames or anything fancy. The OutputDebugString output is working for me here, if its not working for you not sure what's up.

Quote:
gives Rec.709, and although the Rec.709->Rec.601 conversion is done
Hm, not sure what your getting at .

Quote:
I've done some tests and your new version seems to be faster when not using MMX comparing to the official 1.7. Did you change anything in C code?
That's interesting cause its a straight copy of the 1.7 source. It should in fact be a little slower if you don't set hints=false cause it will spend a little time checking for hints. May be just compiler differences .
tritical is offline   Reply With Quote
Old 9th February 2005, 07:16   #89  |  Link
EpheMeroN
EphMan
 
Join Date: May 2004
Posts: 737
I am quite scrambled in the brain when it comes to fully understanding this awesome ColorMatrix Plugin. I read all the posts twice now. Can someone clear it all up for me please?

I have an XviD that came from an HDTV Source. I want to re-encode it to DVD. The GSpot Beta doesn't tell me what coefficients are used. Below is the script I'm working on. I'd appreciate it if someone could tell me if it's correct, and if it needs some changes :-) .

Video = Trim(AVISource("C:\Documents and Settings\Blank\Desktop\savages.avi"),0,1433).FadeIn(25).FadeOut(12)
Blank = BlankClip(Video).Trim(0,59).Amplify(0.0)
AlignedSplice(Blank,Video,Blank)

EnsureVBRMP3Sync()
BlindPP()
ColorYUV(Levels="PC->TV")
ColorMatrix(mode="Rec.709->Rec.601")
LimitedSharpen()
LanczosResize(720,480)
UnDot()


Here's a sample of the video as well:
http://users.adelphia.net/~l337/hdtv-xvid-sample.avi
EpheMeroN is offline   Reply With Quote
Old 9th February 2005, 10:18   #90  |  Link
Wilbert
Moderator
 
Join Date: Nov 2001
Location: Netherlands
Posts: 6,364
Quote:
Hm, should have said it was the simple/plain kind of debug output, via OutputDebugString(). It doesn't write any text on the frames or anything fancy. The OutputDebugString output is working for me here, if its not working for you not sure what's up.
Ah, that explains why i didn't see anything. I will check if it's working for me.

Quote:
I have an XviD that came from an HDTV Source. I want to re-encode it to DVD. The GSpot Beta doesn't tell me what coefficients are used. Below is the script I'm working on. I'd appreciate it if someone could tell me if it's correct, and if it needs some changes :-) .
1) Do you still have the hdtv source?

2) What encoder do you use to make this dvd?
Wilbert is offline   Reply With Quote
Old 9th February 2005, 10:22   #91  |  Link
EpheMeroN
EphMan
 
Join Date: May 2004
Posts: 737
Quote:
1) Do you still have the hdtv source?
No I do not. It was a clip of something that a friend send me.

Quote:
2) What encoder do you use to make this dvd?
Well, I have not encoded it entirely yet. I've only run a 1-pass test in QuEnc. I also have CCE.

Did my avi sample provide any help at all in determining the coefficients?
EpheMeroN is offline   Reply With Quote
Old 9th February 2005, 10:34   #92  |  Link
Wilbert
Moderator
 
Join Date: Nov 2001
Location: Netherlands
Posts: 6,364
Quote:
Did my avi sample provide any help at all in determining the coefficients?
No, your avi assumed Rec.601 during decoding (which is always the case). These are or aren't the same coefficients as used in your hdtv source. You need the hdtv source to check that.

QuEnc -> fcc coefficients ~ Rec.601 coefficients, CCE -> nothing = Rec.709 coefficients.

So assuming Rec.601 are the correct coefficients for your avi:

1) QuEnc: don't need to use ColorMatrix
2) CCE: ColorMatrix(mode="Rec.601->Rec.709")

I hope it's a bit clear
Wilbert is offline   Reply With Quote
Old 9th February 2005, 15:26   #93  |  Link
len0x
I'm afraid we've to stop
 
len0x's Avatar
 
Join Date: Mar 2003
Location: Amongst mad people
Posts: 5,398
Quote:
Originally posted by tritical
That's interesting cause its a straight copy of the 1.7 source. It should in fact be a little slower if you don't set hints=false cause it will spend a little time checking for hints. May be just compiler differences .
When hints=true it is a LOT slower (overall time is ~15-20% more). But I was testing hints=false for that reason. Anyway I like your compiler much more than Wilbert's now
__________________
Gordian Knot Family:
Gordian Knot: website, download
Auto Gordian Knot: Website and download, tutorial, FAQ
len0x is offline   Reply With Quote
Old 9th February 2005, 20:15   #94  |  Link
tritical
Registered User
 
Join Date: Dec 2003
Location: MO, US
Posts: 999
Quote:
When hints=true it is a LOT slower (overall time is ~15-20% more).
I noticed that as well, but couldn't find anything obviously wrong. It shouldn't be having that much of an effect... I'm gonna look in to it tonight sometime.

However, since the d2v now has the colorimetry info, it might make since for colormatrix to have a d2v="" option and to be able to get the info from there instead. That would be faster and the filter could be placed anywhere in the filter chain. That's assuming the colorimetry is the same throughout the clip.
tritical is offline   Reply With Quote
Old 9th February 2005, 20:53   #95  |  Link
EpheMeroN
EphMan
 
Join Date: May 2004
Posts: 737
So, if I encode this XviD AVI to MPEG-2 via CCE, will I still have to use ColorYUV(Levels="PC->TV") to squish the color range to 16-235? Or does ColorMatrix do this automatically?
EpheMeroN is offline   Reply With Quote
Old 9th February 2005, 21:01   #96  |  Link
Wilbert
Moderator
 
Join Date: Nov 2001
Location: Netherlands
Posts: 6,364
Quote:
However, since the d2v now has the colorimetry info, it might make since for colormatrix to have a d2v="" option and to be able to get the info from there instead. That would be faster and the filter could be placed anywhere in the filter chain. That's assuming the colorimetry is the same throughout the clip.
That's a good idea.

A small request though I think it's a good idea if hints=true gives an error when there are no hints. In case the user is using a wrong dvd2avi/mpeg2dec3 version without knowning or realizing that.
Wilbert is offline   Reply With Quote
Old 9th February 2005, 21:03   #97  |  Link
Wilbert
Moderator
 
Join Date: Nov 2001
Location: Netherlands
Posts: 6,364
Quote:
So, if I encode this XviD AVI to MPEG-2 via CCE, will I still have to use ColorYUV(Levels="PC->TV") to squish the color range to 16-235?
Your XviD is already [16,235]. (btw ColorMatrix *clamps* the luma range to [16,235])
Wilbert is offline   Reply With Quote
Old 9th February 2005, 22:39   #98  |  Link
EpheMeroN
EphMan
 
Join Date: May 2004
Posts: 737
Quote:
Your XviD is already [16,235].
Really? I always was to believe all DivX / XviD AVI files were encoded at 0-255. Interesting...
EpheMeroN is offline   Reply With Quote
Old 11th February 2005, 00:45   #99  |  Link
tritical
Registered User
 
Join Date: Dec 2003
Location: MO, US
Posts: 999
Updated the zip file linked to in my earlier post. Changes include: hints now defaults to false, it throws an error when no hints are detected in the stream when using hints=true, debug output was expanded, added d2v="" option to read the colorimetry info from a d2v file (you can't use both d2v and hints at the same time, only one or the other), if the d2v has multiple types of colorimetry info then it throws an error and on d2v's that have no colorimetry or are not dgindex project files v07 or higher it throws an error. Quick example:

colormatrix(d2v="myd2v.d2v")
tritical is offline   Reply With Quote
Old 11th February 2005, 04:17   #100  |  Link
fewtch
Registered User
 
fewtch's Avatar
 
Join Date: Feb 2002
Posts: 208
Uggh, I can't stand the look of this filter's output... seems as though black levels are messed up, or something (maybe that looks good on a TV set, but IMO not a PC monitor). Instead, I add something like this if movies look too dark:

Tweak(0.0,1.0,10.0)

Does the trick for me every time.

Edit --

Quote:
Originally posted by Wilbert
(btw ColorMatrix *clamps* the luma range to [16,235])
Well, no wonder. I hope everyone examines this more limited luma range to see if they like it, because personally I hate it. Would much rather just boost brightness overall. Looks fine to my eyes on a TV set too (probably the DVP-642 automatically performs this luma clamping, and assuming almost any hardware player would do so).

P.S. if Colormatrix filter always clamps to TV standards, how is this "correcting" any picture? If unnecessary, reducing a dynamic range is not an error correction -- rather, it's introducing error. I wouldn't highpass my music files at 80Hz and lowpass at 16KHz without any reason, so why this?

Last edited by fewtch; 11th February 2005 at 04:40.
fewtch 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 18:18.


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