[FFmpeg-devel] [PATCH] lavd/v4l2: silence libv4l2 logging

Giorgio Vazzana mywing81 at gmail.com
Fri Mar 8 13:06:57 CET 2013

2013/3/8 Giorgio Vazzana <mywing81 at gmail.com>:
> Hello,
> a user pointed out in ticket #1570 that when ffmpeg is compiled with
> --enable-lib4vl2 the terminal gets spammed with this message:
> libv4l2: error dequeuing buf: Resource temporarily unavailable
> This is because libv4l2 opens the device in non-blocking mode, so the
> ioctl VIDIOC_DQBUF returns EINVAL and that message gets displayed.
> In /usr/include/libv4l2.h I can read:
> /* Point this to a FILE opened for writing when you want to log error and
>    status messages to a file, when NULL errors will get send to stderr */
> LIBV4L_PUBLIC extern FILE *v4l2_log_file;
> So I suggest the attached patch to silence libv4l2 logging, since
> ffmpeg uses its own error messages for pretty much all errors.

Sorry, stdio.h gets included by libv4l2.h, so that's probably
redundant. New patch attached.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-lavd-v4l2-silence-libv4l2-logging.patch
Type: application/octet-stream
Size: 829 bytes
Desc: not available
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20130308/00b8da88/attachment.obj>

More information about the ffmpeg-devel mailing list