Bug#718805: Re: Bug#718805: /usr/bin/avconv: avconv cannot grab video4linux2 device

Nikolay Shaplov dhyan at nataraj.su
Sun Jan 19 19:15:50 UTC 2014


On Sunday 19 January 2014 11:24:57 you wrote:

> Can you also give me the output of "avconv -loglevel debug -f
> video4linux2 -i /dev/video1"? I see a number of debugging print
> statements in the code that might indicate where would be a good place
> to add further checks.
$ avconv -loglevel debug -f video4linux2 -i /dev/video1
avconv version 9.10-6:9.10-2, Copyright (c) 2000-2013 the Libav developers
  built on Jan  4 2014 15:41:46 with gcc 4.8 (Debian 4.8.2-10)
  configuration: --arch=i386 --enable-pthreads --enable-runtime-cpudetect --extra-version='6:9.10-2' --libdir=/usr/lib/i386-linux-gnu --prefix=/usr --enable-bzlib --enable-libdc1394 --enable-libfreetype --enable-frei0r --enable-gnutls --enable-libgsm --enable-libmp3lame --enable-librtmp --enable-libopencv --enable-libopenjpeg --enable-libopus --enable-libpulse --enable-libschroedinger --enable-libspeex --enable-libtheora --enable-vaapi --enable-vdpau --enable-libvorbis --enable-libvpx --enable-zlib --enable-gpl --enable-swscale --enable-libcdio --enable-x11grab --enable-libx264 --enable-libxvid --shlibdir=/usr/lib/i386-linux-gnu --enable-shared --disable-static                                                                                                   
  avutil      configuration: --arch=i386 --enable-pthreads --enable-runtime-cpudetect --extra-version='6:9.10-2' --libdir=/usr/lib/i386-linux-gnu --prefix=/usr --enable-bzlib --enable-libdc1394 --enable-libfreetype --enable-frei0r --enable-gnutls --enable-libgsm --enable-libmp3lame --enable-librtmp --enable-libopencv --enable-libopenjpeg --enable-libopus --enable-libpulse --enable-libschroedinger --enable-libspeex --enable-libtheora --enable-vaapi --enable-vdpau --enable-libvorbis --enable-libvpx --enable-zlib --enable-gpl --enable-swscale --enable-libcdio --enable-x11grab --enable-libx264 --enable-libxvid --shlibdir=/usr/lib/i386-linux-gnu/i686/cmov --cpu=i686 --enable-shared --disable-static                                                                  
  avcodec     configuration: --arch=i386 --enable-pthreads --enable-runtime-cpudetect --extra-version='6:9.10-2' --libdir=/usr/lib/i386-linux-gnu --prefix=/usr --enable-bzlib --enable-libdc1394 --enable-libfreetype --enable-frei0r --enable-gnutls --enable-libgsm --enable-libmp3lame --enable-librtmp --enable-libopencv --enable-libopenjpeg --enable-libopus --enable-libpulse --enable-libschroedinger --enable-libspeex --enable-libtheora --enable-vaapi --enable-vdpau --enable-libvorbis --enable-libvpx --enable-zlib --enable-gpl --enable-swscale --enable-libcdio --enable-x11grab --enable-libx264 --enable-libxvid --shlibdir=/usr/lib/i386-linux-gnu/i686/cmov --cpu=i686 --enable-shared --disable-static                                                                  
  avformat    configuration: --arch=i386 --enable-pthreads --enable-runtime-cpudetect --extra-version='6:9.10-2' --libdir=/usr/lib/i386-linux-gnu --prefix=/usr --enable-bzlib --enable-libdc1394 --enable-libfreetype --enable-frei0r --enable-gnutls --enable-libgsm --enable-libmp3lame --enable-librtmp --enable-libopencv --enable-libopenjpeg --enable-libopus --enable-libpulse --enable-libschroedinger --enable-libspeex --enable-libtheora --enable-vaapi --enable-vdpau --enable-libvorbis --enable-libvpx --enable-zlib --enable-gpl --enable-swscale --enable-libcdio --enable-x11grab --enable-libx264 --enable-libxvid --shlibdir=/usr/lib/i386-linux-gnu/i686/cmov --cpu=i686 --enable-shared --disable-static                                                                  
  avdevice    configuration: --arch=i386 --enable-pthreads --enable-runtime-cpudetect --extra-version='6:9.10-2' --libdir=/usr/lib/i386-linux-gnu --prefix=/usr --enable-bzlib --enable-libdc1394 --enable-libfreetype --enable-frei0r --enable-gnutls --enable-libgsm --enable-libmp3lame --enable-librtmp --enable-libopencv --enable-libopenjpeg --enable-libopus --enable-libpulse --enable-libschroedinger --enable-libspeex --enable-libtheora --enable-vaapi --enable-vdpau --enable-libvorbis --enable-libvpx --enable-zlib --enable-gpl --enable-swscale --enable-libcdio --enable-x11grab --enable-libx264 --enable-libxvid --shlibdir=/usr/lib/i386-linux-gnu/i686/cmov --cpu=i686 --enable-shared --disable-static                                                                  
  avfilter    configuration: --arch=i386 --enable-pthreads --enable-runtime-cpudetect --extra-version='6:9.10-1' --libdir=/usr/lib/i386-linux-gnu --prefix=/usr --enable-bzlib --enable-libdc1394 --enable-libfreetype --enable-frei0r --enable-gnutls --enable-libgsm --enable-libmp3lame --enable-librtmp --enable-libopencv --enable-libopenjpeg --enable-libopus --enable-libpulse --enable-libschroedinger --enable-libspeex --enable-libtheora --enable-vaapi --enable-vdpau --enable-libvorbis --enable-libvpx --enable-zlib --enable-gpl --enable-swscale --enable-libcdio --enable-x11grab --enable-libx264 --enable-libxvid --shlibdir=/usr/lib/i386-linux-gnu/i686/cmov --cpu=i686 --enable-shared --disable-static                                                                  
  avresample  configuration: --arch=i386 --enable-pthreads --enable-runtime-cpudetect --extra-version='6:9.10-1' --libdir=/usr/lib/i386-linux-gnu --prefix=/usr --enable-bzlib --enable-libdc1394 --enable-libfreetype --enable-frei0r --enable-gnutls --enable-libgsm --enable-libmp3lame --enable-librtmp --enable-libopencv --enable-libopenjpeg --enable-libopus --enable-libpulse --enable-libschroedinger --enable-libspeex --enable-libtheora --enable-vaapi --enable-vdpau --enable-libvorbis --enable-libvpx --enable-zlib --enable-gpl --enable-swscale --enable-libcdio --enable-x11grab --enable-libx264 --enable-libxvid --shlibdir=/usr/lib/i386-linux-gnu/i686/cmov --cpu=i686 --enable-shared --disable-static
  swscale     configuration: --arch=i386 --enable-pthreads --enable-runtime-cpudetect --extra-version='6:9.10-2' --libdir=/usr/lib/i386-linux-gnu --prefix=/usr --enable-bzlib --enable-libdc1394 --enable-libfreetype --enable-frei0r --enable-gnutls --enable-libgsm --enable-libmp3lame --enable-librtmp --enable-libopencv --enable-libopenjpeg --enable-libopus --enable-libpulse --enable-libschroedinger --enable-libspeex --enable-libtheora --enable-vaapi --enable-vdpau --enable-libvorbis --enable-libvpx --enable-zlib --enable-gpl --enable-swscale --enable-libcdio --enable-x11grab --enable-libx264 --enable-libxvid --shlibdir=/usr/lib/i386-linux-gnu/i686/cmov --cpu=i686 --enable-shared --disable-static
  libavutil     52.  3. 0 / 52.  3. 0
  libavcodec    54. 35. 0 / 54. 35. 0
  libavformat   54. 20. 3 / 54. 20. 3
  libavdevice   53.  2. 0 / 53.  2. 0
  libavfilter    3.  3. 0 /  3.  3. 0
  libavresample  1.  0. 1 /  1.  0. 1
  libswscale     2.  1. 1 /  2.  1. 1
Splitting the commandline.
Reading option '-loglevel' ... matched as option 'loglevel' (set libav* logging level) with argument 'debug'.
Reading option '-f' ... matched as option 'f' (force format) with argument 'video4linux2'.
Reading option '-i' ... matched as input file with argument '/dev/video1'.
Finished splitting the commandline.
Parsing a group of options: global .
Applying option loglevel (set libav* logging level) with argument debug.
Successfully parsed a group of options.
Parsing a group of options: input file /dev/video1.
Applying option f (force format) with argument video4linux2.
Successfully parsed a group of options.
Opening an input file: /dev/video1.
[video4linux2 @ 0x81ec0e0] [4]Capabilities: 85000001
[video4linux2 @ 0x81ec0e0] Querying the device for the current frame size
[video4linux2 @ 0x81ec0e0] Setting frame size to 640x480
[video4linux2 @ 0x81ec0e0] The V4L2 driver changed the pixel format from 0x32315559 to 0x4745504A
    Last message repeated 1 times
[video4linux2 @ 0x81ec0e0] The V4L2 driver changed the pixel format from 0x50323234 to 0x4745504A
[video4linux2 @ 0x81ec0e0] The V4L2 driver changed the pixel format from 0x56595559 to 0x4745504A
[video4linux2 @ 0x81ec0e0] The V4L2 driver changed the pixel format from 0x59565955 to 0x4745504A
[video4linux2 @ 0x81ec0e0] The V4L2 driver changed the pixel format from 0x50313134 to 0x4745504A
[video4linux2 @ 0x81ec0e0] The V4L2 driver changed the pixel format from 0x39565559 to 0x4745504A
[video4linux2 @ 0x81ec0e0] The V4L2 driver changed the pixel format from 0x4F424752 to 0x4745504A
[video4linux2 @ 0x81ec0e0] The V4L2 driver changed the pixel format from 0x50424752 to 0x4745504A
[video4linux2 @ 0x81ec0e0] The V4L2 driver changed the pixel format from 0x33524742 to 0x4745504A
[video4linux2 @ 0x81ec0e0] The V4L2 driver changed the pixel format from 0x33424752 to 0x4745504A
[video4linux2 @ 0x81ec0e0] The V4L2 driver changed the pixel format from 0x34524742 to 0x4745504A
[video4linux2 @ 0x81ec0e0] The V4L2 driver changed the pixel format from 0x59455247 to 0x4745504A
[video4linux2 @ 0x81ec0e0] The V4L2 driver changed the pixel format from 0x3231564E to 0x4745504A
[video4linux2 @ 0x81ec0e0] The V4L2 driver changed the pixel format from 0x47504A4D to 0x4745504A
[video4linux2 @ 0x81ec0e0] The V4L2 driver set input_id: 0, input: sonixj
avconv: /build/libav-ToBmxA/libav-9.10/libavutil/mathematics.c:61: av_rescale_rnd: Assertion `c > 0' failed.
Aborted

Here is a debug run. 

Will apply patch and try experimental builds later. :-) 

> 
> When looking at the upstream commits, can you please apply this patch
> to your tree, and tell me if it makes the segfault go away?
> 
> http://git.libav.org/?p=libav.git;a=commitdiff;h=838b849e70f11dc242399da8d19
> c5795fe90913b
> 
> 
> Also, if this still persists, please also check the avconv binary
> I''ve uploaded yesterday to debian/experimental. It is pretty close to
> current libav/master right now.



More information about the pkg-multimedia-maintainers mailing list