05.12.2017, 16:10
Quote:Please open the my source file Tablitsa.mpg, not Tablitsa_colormatrix.mpgSame file, I just renamed it so that I can categorize it better.
With ColorMatrix 709->601, the preview script is:
SetMemoryMax(768)
SetMTMode(2,16) # changing MT mode
LoadPlugin("G:\Hybrid\AVISYN~1\DGDecode.dll")
LoadPlugin("G:\Hybrid\AVISYN~1\ColorMatrix.dll")
# loading source: F:\TestClips&Co\MPEG-2\Tablitsa_colormatrix.mpg
# input luminance scale tv
Source = MPEG2Source(d2v="H:\Temp\mpg_e0b8c6319ad8a0dd51e4cdd1d25dd581_4827.d2v",info=3)
# current resolution: 720x576
SourceFiltered = Source
# color modifications
SourceFiltered = SourceFiltered.ColorMatrix(mode="Rec.709->Rec.601",interlaced=true,hints=true)
SourceFiltered = SourceFiltered.AssumeFrameBased().SeparateFields()
# cropping to 698x420
SourceFiltered = SourceFiltered.Crop(12,78,-10,-78)
# current resolution: 698x420 (SourceFiltered)
SourceFiltered = SourceFiltered.Weave()
Source = Source.AssumeFrameBased().SeparateFields()
Source = Source.Crop(12,78,-10,-78)
# current resolution: 698x420 (Source)
Source = Source.Weave()
# filtering
# adjust color to(2): RGB32
SourceFiltered = SourceFiltered.ConvertToRGB32(matrix="Rec601")
Source = Source.ConvertToRGB32(matrix="Rec709")
StackHorizontal(Source, SourceFiltered)
return last
SetMemoryMax(768)
SetMTMode(2,16) # changing MT mode
LoadPlugin("G:\Hybrid\AVISYN~1\DGDecode.dll")
# loading source: F:\TestClips&Co\MPEG-2\Tablitsa_colormatrix.mpg
# input luminance scale tv
Source = MPEG2Source(d2v="H:\Temp\mpg_e0b8c6319ad8a0dd51e4cdd1d25dd581_4827.d2v")
# current resolution: 720x576
SourceFiltered = Source
SourceFiltered = SourceFiltered.AssumeFrameBased().SeparateFields()
# cropping to 698x420
SourceFiltered = SourceFiltered.Crop(12,78,-10,-78)
# current resolution: 698x420 (SourceFiltered)
SourceFiltered = SourceFiltered.Weave()
Source = Source.AssumeFrameBased().SeparateFields()
Source = Source.Crop(12,78,-10,-78)
# current resolution: 698x420 (Source)
Source = Source.Weave()
# filtering
# adjust color to(2): RGB32
SourceFiltered = SourceFiltered.ConvertToRGB32(matrix="Rec709")
Source = Source.ConvertToRGB32(matrix="Rec709")
StackHorizontal(Source, SourceFiltered)
return last
As expected when ColorMatrix isn't enabled, output and input colors don't differ since no filtering is applied,...
Switching colorMatrix on and off changes the colors of the output like it is supposed to do.
-> I'm don't know where you see a problem.
Cu Selur