[FFmpeg-devel] [PATCH] lavd/v4l2: silence libv4l2 logging
mywing81 at gmail.com
Fri Mar 8 12:57:06 CET 2013
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.
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 1012 bytes
Desc: not available
More information about the ffmpeg-devel