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

Michael Niedermayer michaelni at gmx.at
Sat Mar 16 02:43:00 CET 2013


On Fri, Mar 08, 2013 at 01:06:57PM +0100, Giorgio Vazzana wrote:
> 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.

>  v4l2.c |    6 ++++++
>  1 file changed, 6 insertions(+)
> a892917dc2fe38dd5108799078d8fbb6116231ab  0001-lavd-v4l2-silence-libv4l2-logging.patch
> From 7f94949b83fe1c84878178d294ee26327c82edb9 Mon Sep 17 00:00:00 2001
> From: Giorgio Vazzana <mywing81 at gmail.com>
> Date: Fri, 8 Mar 2013 13:03:43 +0100
> Subject: [PATCH] lavd/v4l2: silence libv4l2 logging

patch applied

thanks

[...]

-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

The educated differ from the uneducated as much as the living from the
dead. -- Aristotle 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20130316/2e12a6f1/attachment.asc>


More information about the ffmpeg-devel mailing list