View Single Post
Old 30th October 2004, 16:53   #28  |  Link
Wilbert
Moderator
 
Join Date: Nov 2001
Location: Netherlands
Posts: 6,364
I put up a new version. In the previous ones, the used coefficients were slightly wrong. Although the difference is not noticable in practice

btw, I corrected the naming convention. MPEG-2 coefficients are called Rec.709 and MPEG-1 coefficients Rec.601. Thus

ColorMatrix(clip, mode="Rec.709->Rec.601") (default)
ColorMatrix(clip, mode="Rec.601->Rec.709")

I advice you to use the internal

ConvertToRGB(clip, matrix="Rec.709")

instead of

ColorMatrix(clip, rgb=true).

Output is identical (thx IanB), but the former is faster.

Last edited by Wilbert; 30th October 2004 at 16:56.
Wilbert is offline   Reply With Quote