This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm whether you accept or reject these cookies being set.

A cookie will be stored in your browser regardless of choice to prevent you being asked this question again. You will be able to change your cookie settings at any time using the link in the footer.

a big difference between the source and target
#10
Quote:Please open the my source file Tablitsa.mpg, not Tablitsa_colormatrix.mpg
Same 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
with ColorMatrix disabled, the preview script is:
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
So from my standpoint everything looks fine.

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
Reply


Messages In This Thread
RE: a big difference between the source and target - by Selur - 05.12.2017, 16:10

Forum Jump:


Users browsing this thread: 3 Guest(s)