hello_hello
3rd January 2012, 00:54
I've read several times in this forum a recommendation to use clamp=0 to prevent clipping (or maybe it's to allow it), but I've been wondering if that's really what it does. From the help files of version 2.5:
clamp:
Specifies whether pre/post clipping with limiter to 16-235/16-240 should be used. Possible settings:
0 - no clipping
1 - pre clipping (clip input to ColorMatrix)
2 - post clipping (clip output from ColorMatrix)
3 - pre and post clipping
3 is what previous (v1.x) versions of ColorMatrix used.
default - 3 (int)
Without the clamp option, does anyone know if colormatrix prevents clipping by default? Looking at the help files it seems ambiguous enough to me to wonder if it doesn't do exactly the opposite.
For example the default of 3, "pre and post clipping" seems to allow clipping when read out of context, but looking at the description of the options the default of 3 could be taken to mean "pre/post clipping with limiter to 16-235/16-240", which would mean clamp=3 is the option which prevents clipping.
Also from the help file:
"3 is what previous (v1.x) versions of ColorMatrix used."
So I found a help file for version 1.9 and while it doesn't mention a clamp option, it does say this:
"As a final note. This filter will clamp (= round) your input video to CCIR-601 compliant values (these ranges are 16-235 for the luma component and 16-240 for the chroma component)."
Which leads me to conclude the current version of colormatrix does prevent clipping by default if that's what version 1.9 did (as clamp=3 is the default) and clamp=0 would stop it from preventing clipping.
Comments anyone?
clamp:
Specifies whether pre/post clipping with limiter to 16-235/16-240 should be used. Possible settings:
0 - no clipping
1 - pre clipping (clip input to ColorMatrix)
2 - post clipping (clip output from ColorMatrix)
3 - pre and post clipping
3 is what previous (v1.x) versions of ColorMatrix used.
default - 3 (int)
Without the clamp option, does anyone know if colormatrix prevents clipping by default? Looking at the help files it seems ambiguous enough to me to wonder if it doesn't do exactly the opposite.
For example the default of 3, "pre and post clipping" seems to allow clipping when read out of context, but looking at the description of the options the default of 3 could be taken to mean "pre/post clipping with limiter to 16-235/16-240", which would mean clamp=3 is the option which prevents clipping.
Also from the help file:
"3 is what previous (v1.x) versions of ColorMatrix used."
So I found a help file for version 1.9 and while it doesn't mention a clamp option, it does say this:
"As a final note. This filter will clamp (= round) your input video to CCIR-601 compliant values (these ranges are 16-235 for the luma component and 16-240 for the chroma component)."
Which leads me to conclude the current version of colormatrix does prevent clipping by default if that's what version 1.9 did (as clamp=3 is the default) and clamp=0 would stop it from preventing clipping.
Comments anyone?