[Ffmpeg-devel] video4linux2 input format?

Luca Abeni lucabe72
Thu Jan 26 12:31:56 CET 2006


On Wed, 2006-01-25 at 14:48 +0100, Luca Abeni wrote:
[...]
> Is anyone already working on it? If not, I'll start implementing
> video4linux2 support today
Ok, I now have some semi-working code (it can grab YUV video from a BTTV
card in mmap mode), and I'll send it on the mailing list today...

But now I need some help for mapping the v4l2 pixel format names in the
ffmpeg ones.
V4L2 defines the following pixel formats:
V4L2_PIX_FMT_RGB332, V4L2_PIX_FMT_RGB555, V4L2_PIX_FMT_RGB565,
V4L2_PIX_FMT_RGB555X, V4L2_PIX_FMT_RGB565X, V4L2_PIX_FMT_BGR24,
V4L2_PIX_FMT_RGB24, V4L2_PIX_FMT_BGR32, V4L2_PIX_FMT_RGB32,
V4L2_PIX_FMT_GREY, V4L2_PIX_FMT_YVU410, V4L2_PIX_FMT_YVU420,
V4L2_PIX_FMT_YUYV, V4L2_PIX_FMT_UYVY, V4L2_PIX_FMT_YUV422P,
V4L2_PIX_FMT_YUV411P, V4L2_PIX_FMT_Y41P, V4L2_PIX_FMT_NV12,
V4L2_PIX_FMT_NV21, V4L2_PIX_FMT_YUV410, V4L2_PIX_FMT_YUV420,
V4L2_PIX_FMT_YYUV, V4L2_PIX_FMT_HI240

I see that V4L2_PIX_FMT_YUV420 == PIX_FMT_YUV420P, and I think
V4L2_PIX_FMT_YUYV == PIX_FMT_YUV422 and V4L2_PIX_FMT_BGR24 ==
PIX_FMT_BGR24...

Can anyone help me in mapping the other V4L2_PIX_FMT to the equivalent
PIX_FMT?

			Thanks,
				Luca
-- 
_____________________________________________________________________________
Copy this in your signature, if you think it is important:
                               N O    W A R ! ! !

 
 
 --
 Email.it, the professional e-mail, gratis per te: http://www.email.it/f
 
 Sponsor:
 Logos Finanziaria SPA. Societ? di credito ad erogazione diretta. Fino a 30.000 euro in 24 ore! Clicca e scopri come
* 
 Clicca qui: http://adv.email.it/cgi-bin/foclick.cgi?mid=2909&d=26-1





More information about the ffmpeg-devel mailing list