[FFmpeg-user] how to include V4L2_PIX_FMT_H264

Carl Eugen Hoyos cehoyos at ag.or.at
Thu Mar 14 13:13:42 CET 2013

Soho Soho123 <soho123.2012 <at> gmail.com> writes:

> #ifdef V4L2_PIX_FMT_H264
>     { AV_PIX_FMT_NONE,    AV_CODEC_ID_H264,     V4L2_PIX_FMT_H264    },
> #endif
> But I donot know how to enable "V4L2_PIX_FMT_H264"?

Either update your kernel headers or add the following 
line to /usr/include/linux/videodev2.h:
#define V4L2_PIX_FMT_H264     v4l2_fourcc('H', '2', '6', '4')

Carl Eugen

More information about the ffmpeg-user mailing list