[libav-bugs] [Bug 692] New: avconv hangs with v4l2 and BisonCam, NB Pro

bugzilla at libav.org bugzilla at libav.org
Mon May 26 19:10:32 CEST 2014


https://bugzilla.libav.org/show_bug.cgi?id=692

           Summary: avconv hangs with v4l2 and BisonCam, NB Pro
           Product: Libav
           Version: git HEAD
          Platform: All
        OS/Version: Linux
            Status: NEW
          Severity: enhancement
          Priority: Normal
         Component: utilities
        AssignedTo: bugzilla at libav.org
        ReportedBy: libav at eternaldusk.com


When attempting to capture from my laptops built-in webcam, avconv hangs like
so:

--------------
evil at clevo:~$ avconv -v 9 -loglevel 99 -f video4linux2 -i /dev/video4 out.mkv 
avconv version v10_beta1-727-ge0d01dc, Copyright (c) 2000-2014 the Libav
developers
  built on May 26 2014 11:45:03 with gcc 4.8 (Ubuntu 4.8.3-1ubuntu3)
  configuration: --enable-libvo-aacenc --enable-gpl --enable-nonfree
--enable-version3
  libavutil     53. 15. 0 / 53. 15. 0
  libavcodec    55. 53. 0 / 55. 53. 0
  libavformat   55. 18. 0 / 55. 18. 0
  libavdevice   54.  0. 0 / 54.  0. 0
  libavfilter    4.  5. 0 /  4.  5. 0
  libavresample  1.  2. 0 /  1.  2. 0
  libswscale     2.  1. 2 /  2.  1. 2
Splitting the commandline.
Reading option '-v' ... matched as option 'v' (set libav* logging level) with
argument '9'.
Reading option '-loglevel' ... matched as option 'loglevel' (set libav* logging
level) with argument '99'.
Reading option '-f' ... matched as option 'f' (force format) with argument
'video4linux2'.
Reading option '-i' ... matched as input file with argument '/dev/video4'.
Reading option 'out.mkv' ... matched as output file.
Finished splitting the commandline.
Parsing a group of options: global .
Applying option v (set libav* logging level) with argument 9.
Successfully parsed a group of options.
Parsing a group of options: input file /dev/video4.
Applying option f (force format) with argument video4linux2.
Successfully parsed a group of options.
Opening an input file: /dev/video4.
[video4linux2 @ 0x2b2f140] [3]Capabilities: 84000001
[video4linux2 @ 0x2b2f140] Querying the device for the current frame size
[video4linux2 @ 0x2b2f140] Setting frame size to 640x480
[video4linux2 @ 0x2b2f140] The V4L2 driver changed the pixel format from
0x32315559 to 0x56595559
    Last message repeated 1 times
[video4linux2 @ 0x2b2f140] The V4L2 driver changed the pixel format from
0x50323234 to 0x56595559
[video4linux2 @ 0x2b2f140] The V4L2 driver set input_id: 0, input: Camera 1
--------------

After which ctrl-c nor kill -9 appear to be able to stop the process.

I've attempted to force different input formats, framerates, sizes, etc. and it
always hangs in this same way.  I've tested with the packages in the Ubuntu
repos, as well as the latest git.

The webcam works fine with other apps, including cheese, camorama, kamerka,
kamoso, uvccapture, fswebcam, etc.

lspci info for webcam is here:  http://pastebin.com/hXqydHXU

v4l2-ctl --list-formats output:
--------------
ioctl: VIDIOC_ENUM_FMT
        Index       : 0
        Type        : Video Capture
        Pixel Format: 'YUYV'
        Name        : YUV 4:2:2 (YUYV)

        Index       : 1
        Type        : Video Capture
        Pixel Format: 'MJPG' (compressed)
        Name        : MJPEG
--------------

v4l2-ctl --all output:
--------------
Driver Info (not using libv4l2):
        Driver name   : uvcvideo
        Card type     : BisonCam, NB Pro
        Bus info      : usb-0000:00:1d.0-1.6
        Driver version: 3.15.0
        Capabilities  : 0x84000001
                Video Capture
                Streaming
                Device Capabilities
        Device Caps   : 0x04000001
                Video Capture
                Streaming
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
        Width/Height  : 640/480
        Pixel Format  : 'YUYV'
        Field         : None
        Bytes per Line: 1280
        Size Image    : 614400
        Colorspace    : SRGB
Crop Capability Video Capture:
        Bounds      : Left 0, Top 0, Width 640, Height 480
        Default     : Left 0, Top 0, Width 640, Height 480
        Pixel Aspect: 1/1
Streaming Parameters Video Capture:
        Capabilities     : timeperframe
        Frames per second: 30.000 (30/1)
        Read buffers     : 0
                     brightness (int)    : min=0 max=255 step=1 default=128
value=128
                       contrast (int)    : min=0 max=255 step=1 default=32
value=32
                     saturation (int)    : min=0 max=255 step=1 default=32
value=32
                            hue (int)    : min=-180 max=180 step=1 default=0
value=0
 white_balance_temperature_auto (bool)   : default=1 value=1
                          gamma (int)    : min=90 max=150 step=1 default=120
value=120
           power_line_frequency (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature (int)    : min=2800 max=6500 step=1
default=4000 value=4000 flags=inactive
                      sharpness (int)    : min=0 max=255 step=1 default=0
value=0
------------

Any help troubleshooting further would be appreciated.

-- 
Configure bugmail: https://bugzilla.libav.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching all bug changes.


More information about the libav-bugs mailing list