Log in

View Full Version : ffmpeg how to list codec colorspace options


BabaG
22nd February 2010, 00:13
people have referred to looking through the various colorspaces that a
codec supports in ffmpeg. how do i list this info? if not through ffmpeg,
how do i list what colorspaces various codecs can work in? been searching
and have yet to turn up the commands.

thanks,
BabaG

ffmpeg
22nd February 2010, 03:51
There is no command to list the colorspaces in FFmpeg

But you can reference the following codes:

Assume you want to check the colorspace of "AVCodec *pCodec"

enum PixelFormat *pPixFmt = pCodec->pix_fmts;
if(pPixFmt){
while(*pPixFmt != PIX_FMT_NONE){
printf("the pixel format is %d\n", *pPixFmt++);
}
}

BabaG
22nd February 2010, 03:54
well...thanks for trying, but that went right over my head. ;)

BabaG