Log in

View Full Version : Detect if there is an YV12 codec ?


Dark-Cracker
3rd January 2005, 11:58
hi,

sorry for this silly question but i am interested to know if there is a way to detect if there is an YV12 codec. to be sure avisynth will work *correctly* and avoid some colorspace conversion.

i think it should be possible by checking if there is an YUV fourcc codec (like YV12, I420, I410, I422, I411 , UYUV..).

i am correct ? does someone know an other way ? any idear about the fourcc to check ?

any help is welcome :)

++

Koepi
3rd January 2005, 12:17
AFAIK there is the fourcc YV12.

You could also write a very simple, basic dshow filter which claims to upstream an YV12 video stream. If automatic rendering of the filter's output pin fails, you know there is no YV12 codec.

I hope it'll be that simple.

Regards
Koepi

Dark-Cracker
3rd January 2005, 12:29
thank you for the fast answer :) i am actually checking the yv12 fourcc but sometimes some avisynth script can be displayed in yv12 without a codec with the fourCC (i suppose an other codec an handle yv12 but doesn't use it as fourcc).

in any case i think i will keep my fourcc checking and include an yv12 codec in my software package it will be the more easy solution.

thank you for you help.

Keep the good work.
Bye.