This is an avs script generated by megui avs script creator:
By default, megui included the ColorMatrix plugin. Why is this plugin or filter included by default ? What does the parameter "hints=true" represent ?Code:LoadPlugin("D:\InstalledApps\MeGUI\tools\dgindex\DGDecode.dll") DGDecode_mpeg2source("E:\source\disc2\VIDEO_TS\VTS_01_1.d2v", info=3) LoadPlugin("D:\InstalledApps\MeGUI\tools\avisynth_plugin\ColorMatrix.dll") ColorMatrix(hints=true, interlaced=true, threads=0) Load_Stdcall_Plugin("D:\InstalledApps\MeGUI\tools\yadif\yadif.dll") Yadif(order=1) crop(14, 4, -10, -4) LanczosResize(688,514) # Lanczos (Sharp)
+ Reply to Thread
Results 1 to 3 of 3
-
-
What does the parameter "hints=true" represent ?hints (default false)
DGDecode v1.20 and newer versions output colorimetry hints in the video. The colorimetry info (see Colorimetry) can be viewed using
Code:Mpeg2source("F:\TestStreams\avs\AguileraGrammies.d2v", info=1)
Code:Mpeg2source("F:\TestStreams\avs\AguileraGrammies.d2v", info=3) ColorMatrix(hints=true)
Technically (although I've never seen such streams) the colorimetry info can be different throughout your video, the hints option will handle this correctly.
Why is this plugin or filter included by default ?
(probably because a bunch of people complained about mismatching colours) -
It's generally pointless and goes back to the days when people thought DVD video used R.709 for decoding YUV video to RGB (on playback) rather than R.601. The two are slightly different "formulas" for converting YUV video to RGB. Standard definition video pretty much always uses R.601 while HD always uses R.709. So the idea was if a DVD video happened to use R.709, the colormatrix plugin would convert it to R.601 while encoding, which would result in the encoded video displaying correctly.
After the video has been indexed, DGDecode reports the colorimetry used. The "hint"s parameter tells colormatrix to use the information supplied by DGDecode, and then convert from R.709 to R.601 if necessary. If the video is already R.601 (which all DVD video will be) then no conversion takes place... hence colormatrix being used the way it is being very pointless.
I've disabled it myself (it's only added to the script for DVD or mpeg2 video) and I've suggested to one of the MeGUI developers they should just get rid of it completely, but so far they haven't. If you happen to be converting HD mpeg2 video, always disable it in the AVS Script Creator (you can use the AVS Profile configuration to disable it by default) as it can potentially convert the colours when it shouldn't, but for SD definition it doesn't really matter. It won't do anything.
Similar Threads
-
meGUI + AVS - cannot obtain audio
By PsyCLown in forum AudioReplies: 1Last Post: 19th Jan 2011, 05:20 -
AVS scripts for MeGUI - why do they resize the video
By Bully9 in forum Video ConversionReplies: 0Last Post: 17th Mar 2010, 16:16 -
Syncing subtitles with MeGui after an AVS cut
By Homeless Ninja in forum SubtitleReplies: 0Last Post: 11th Feb 2010, 22:52 -
Using Colormatrix
By carlmart in forum Video ConversionReplies: 1Last Post: 28th Jul 2009, 14:14 -
WindowsMediaPlayer plugin to play AVS?
By squadjot in forum Newbie / General discussionsReplies: 12Last Post: 16th Apr 2009, 10:53