Log in

View Full Version : using colormatrix with dvdrb


rob[doom9.it]
8th November 2005, 21:39
I have tried to compile a script for using colormatrix with the filter editor of dvdrebuilder (cce mode) but..

the readme says that I can directly keep the coefficients of the project.d2v using this script

LoadPlugin("C:\Programmi\AviSynth 2.5\plugins\ColorMatrix.dll")
Mpeg2source("F:\TestStreams\avs\AguileraGrammies.d2v")
ColorMatrix(d2v="AguileraGrammies.d2v")

the mpegsource is just compiled by dvdrebuilder in all the scripts, I think it isn't necessary..
the path to the file.d2v consists of only the name (like the readme) or not ?
the inverted commas in ColorMatrix etc. are before or after d2v= ?

I have tried all I can..

THANKS

Rob

PS. sorry for my English..

Wilbert
8th November 2005, 22:10
That should be ok. What happens if you open that script in VDub?

the path to the file.d2v consists of only the name (like the readme) or not ?
Yes, i think so. Make sure the script is in the same folder as the d2v file. Of course you can try the full path and see what error message pops up in VDub.

rob[doom9.it]
9th November 2005, 17:50
Thanks for the reply

Is it possible that the versions of DGIndex and DGDecode are too old ?

DVDRebuilder uses DGDecode 1.1.0.. and about coefficients..

If i want to mantain Rec. 709 what will be the script ? I must have to convert in RGB format ?

THANKS

Rob

Wilbert
9th November 2005, 23:24
Is it possible that the versions of DGIndex and DGDecode are too old ?

DVDRebuilder uses DGDecode 1.1.0
Try the script

Mpeg2source("F:\TestStreams\avs\AguileraGrammies.d2v", info=1)

Does it give you the colorimetry info? When using an outdated DGDecode it should give an error message. Does it give any error messages when opening the script in VDub?

If i want to mantain Rec. 709 what will be the script ? I must have to convert in RGB format ?
No. If source is also Rec.709 (use info=1 to check that) you don't need to do anything. When source is Rec.601 you should use mode = "Rec.601->Rec.709".

lambo
10th November 2005, 08:27
@wilbert
i tried to use these types of string in dvd rebuilder's filter editor

LoadPlugin("C:\Programmi\AviSynth 2.5\plugins\ColorMatrix.dll")
Mpeg2source("F:\TestStreams\avs\AguileraGrammies.d2v", info=1)
ColorMatrix(d2v="AguileraGrammies.d2v")

but i've noticed that the colormatrix doesnt' work. If i try to preview the .avs for example in Vdub I see in the middle of the image a red text saying dgdecode doesn't save in the .d2v file the colorification settings (or something similar)

Is there a way to correct the problem?
I'm using "dgdecode 1.1.0 by Nan". I've tried to use the 1.4.6b1 dgdecode, but when i preview the .avs the red text says dgdecode version is different from the dgindex version

thank you for any suggestion

rob[doom9.it]
10th November 2005, 09:03
@ wilbert

yes, when I try to use the first script I find an error message about DGIndex etc..

yesterday I have tried to use ColorMatrix(mode="Rec.601-Rec.709") thinkig that this script may maintain the coefficients (without conversion) and no error message were displayed (but I can' t verify)

now, I try with your script..

thanks

@ lambo

I think that DVDRebuider uses a modified version of DGDecode and the last release is 1.1.0 (this is the problem, because we can' t keep coefficients directly from the d2v project)

Rob[doom9.it]

Wilbert
10th November 2005, 23:38
@rob, i will look at it.

yesterday I have tried to use ColorMatrix(mode="Rec.601-Rec.709") thinkig that this script may maintain the coefficients
??? This does not maintain your coefficients, it modifies them.


LoadPlugin("C:\Programmi\AviSynth 2.5\plugins\ColorMatrix.dll")
Mpeg2source("F:\TestStreams\avs\AguileraGrammies.d2v", info=1)

Use the script above, and report which coefficients you get.

tritical
11th November 2005, 00:57
Only dgindex d2v formats from v7 on up store the matrix coefficients value. That means the earliest version of dgindex that you can use to create a d2v file with matrix info that colormatrix() can use is v1.2. If you feed colormatrix with a d2v file that was created with a version of dgindex prior to v1.2 then you should get the following error:

ColorMatrix: d2v file is from an old version of dgindex and does not contain colorimetry info!

On another note, there were some versions of dgindex that would report an incorrect matrix value for mpeg2 (they would default to 5 instead of 1 if a specific value was not specified in the stream)... those started when dgindex first began to handle mpeg1 (v1.3.1 beta 8) and ran up to and including v1.4.3 (it was fixed in v1.4.4).

lambo
11th November 2005, 08:07
Only dgindex d2v formats from v7 on up store the matrix coefficients value. That means the earliest version of dgindex that you can use to create a d2v file with matrix info that colormatrix() can use is v1.2. If you feed colormatrix with a d2v file that was created with a version of dgindex prior to v1.2 then you should get the following error:

ColorMatrix: d2v file is from an old version of dgindex and does not contain colorimetry info!

On another note, there were some versions of dgindex that would report an incorrect matrix value for mpeg2 (they would default to 5 instead of 1 if a specific value was not specified in the stream)... those started when dgindex first began to handle mpeg1 (v1.3.1 beta 8) and ran up to and including v1.4.3 (it was fixed in v1.4.4).

ok.. i understood
but with dvdrebuilder i have to use the 1.1.0 dgdecode... what string should i use to have colormatrix to work correctly?

tritical
11th November 2005, 09:02
Let's state it this way... for the d2v="" option of colormatrix to work you need a d2v file created with dgindex v1.2 or later. There is no way to use a d2v file created with a version of dgindex prior to v1.2 with colormatrix. v1.1.0 of dgdecode, on the other hand, can only use d2v files created with v1.1 of dgindex and not any later versions. Thus, there is no way to do what you want without creating two separate d2v files... one with v1.1 of dgindex for use with v1.1.0 of dgdecode, and another with v1.2 or later (preferably v1.4.5 or v1.4.6) of dgindex for use with colormatrix. Having never used dvdrebuilder, I don't know whether you would be allowed to do that or not.

rob[doom9.it]
11th November 2005, 19:23
@ wilbert and tritical

THANKS A LOT

Now I have understood, I couldn' t image all this..

Bye

Rob[doom9.it]

NaN
20th November 2005, 15:20
Edit: I originally wanted to offer it just rob[doom9.it] - but it seems that many people are interested. Everybody who pm'ed me will get it, but please stop pm'ing me ;-)) There are one or two things left I want to do before release, so please be a bit patient.

Cheers, NaN