[Ffmpeg-devel] video4linux2 input format?
Thu Jan 26 12:30:55 CET 2006
On Thu, 2006-01-26 at 12:31 +0100, Luca Abeni wrote:
> 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 ==
> Can anyone help me in mapping the other V4L2_PIX_FMT to the equivalent
Please note that some drivers (notably the cx88???) only support a very
small subset of these layouts. V4l2 drivers are not supposed to
implement any sort of conversion, the only layouts that are allowed are
those that can be delivered by the hardware.
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 2771 bytes
Desc: not available
More information about the ffmpeg-devel