Changes between Initial Version and Version 2 of Ticket #1560


Ignore:
Timestamp:
Jul 20, 2012, 1:47:20 AM (7 years ago)
Author:
Cigaes
Comment:

Same thing on one of my boxes. libavdevice compiled without libv4l2 works. Try removing the paragraph under #ifdef CONFIG_LIBV4L2 in device_open() in libavdevice/v4l2.c and see if it fixes things.

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #1560

    • Property Reproduced by developer set
  • Ticket #1560 – Description

    initial v2  
    22
    33In the attached case, I open and close a v4l2 device (/dev/video0) 17 times. On the 17th time, it fails to open with the following errors:
    4 
     4{{{
    55libv4l2: error attempting to open more then 16 video devices
    66[video4linux2,v4l2 @ 0x1f6a5c0] ioctl(VIDIOC_QUERYCAP): Bad file descriptor
    77Could not open input "/dev/video0"
    8 
     8}}}
    99How to reproduce:
    1010Build and run the attached test case with a v4l2 device connected.
    1111
    1212I'm using the ffmpeg git master branch:
    13 
     13{{{
    1414ffmpeg version N-42636-ga8d8e86 Copyright (c) 2000-2012 the FFmpeg developers
    1515  built on Jul 19 2012 17:32:59 with gcc 4.7.0 (GCC) 20120507 (Red Hat 4.7.0-5)
    1616  configuration: --prefix=/opt/ --enable-bzlib --enable-gnutls --enable-libv4l2 --enable-libx264 --enable-x11grab --enable-postproc --enable-pthreads --disable-static --enable-shared --enable-gpl --disable-debug --disable-stripping --enable-pic
     17}}}