[FFmpeg-devel] [PATCH] lavd/v4l2: silence libv4l2 logging
Giorgio Vazzana
mywing81 at gmail.com
Fri Mar 8 12:57:06 CET 2013
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.
Giorgio Vazzana
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-lavd-v4l2-silence-libv4l2-logging.patch
Type: application/octet-stream
Size: 1012 bytes
Desc: not available
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20130308/45d81004/attachment.obj>
More information about the ffmpeg-devel
mailing list