Chabb
5th June 2008, 12:38
In some cases I have to convert video
from YV12 to RGB32 and back to YV12 in my scripts
(to use VirtualDub filters).
Processed video often has TV color range (and it's too dark),
so I'm using
levels(16,1.5,235,0,255,coring=false)
When RGB is not involved the result has pure black and white
after using converttoyv12(matrix="pc.709")
But when RGB conversion present,
converting back to YV12 gives odd results:
after converttoyv12(matrix="pc.709")
pure black and most noticeably white (almost white)
are looking like clipped again
and after converttoyv12()
result has TV color range
What I'm doing wrong?
Is there a bug in filters, or in their order
... or in my DNA :)
from YV12 to RGB32 and back to YV12 in my scripts
(to use VirtualDub filters).
Processed video often has TV color range (and it's too dark),
so I'm using
levels(16,1.5,235,0,255,coring=false)
When RGB is not involved the result has pure black and white
after using converttoyv12(matrix="pc.709")
But when RGB conversion present,
converting back to YV12 gives odd results:
after converttoyv12(matrix="pc.709")
pure black and most noticeably white (almost white)
are looking like clipped again
and after converttoyv12()
result has TV color range
What I'm doing wrong?
Is there a bug in filters, or in their order
... or in my DNA :)