* libv4l2: error dequeuing buf: Resource temporarily unavailable
@ 2012-07-14 11:29 llarevo
2012-07-16 17:50 ` Charlie X. Liu
0 siblings, 1 reply; 7+ messages in thread
From: llarevo @ 2012-07-14 11:29 UTC (permalink / raw)
To: linux-media
Hi,
I'm not sure, if this is the right list, if I'm wrong here, a hint for a
appropriate place for my questions would be very appreciated.
I have a problem with an analog Terratec Cinergy 400 TV. When I try to
capture with ffmpeg,
ffmpeg -f video4linux2 -i /dev/video0 out.mpg
I get the error
libv4l2: error dequeuing buf: Resource temporarily unavailable
I'm using Fedora F17.
The behavior seems to be pretty strange to me, because xawtv, mencoder,
mplayer and tvtime don't have a problem with the hardware at all, ffmpeg
has got this problem only with the hardware mentioned above, with a
Terratec Cinergy XS, ffmpeg captures without problems.
Why reports libv4l2 "Resource temporarily unavailable"? What are common
reasons for that message? What can be a reason that creates the message
only on specific hardware (Terratec Cinergy 400 TV)?
Thanks a lot in advance.
--
Felix
^ permalink raw reply [flat|nested] 7+ messages in thread
* RE: libv4l2: error dequeuing buf: Resource temporarily unavailable
2012-07-14 11:29 libv4l2: error dequeuing buf: Resource temporarily unavailable llarevo
@ 2012-07-16 17:50 ` Charlie X. Liu
2012-07-16 19:57 ` llarevo
0 siblings, 1 reply; 7+ messages in thread
From: Charlie X. Liu @ 2012-07-16 17:50 UTC (permalink / raw)
To: llarevo, linux-media
Your driver load may not be quite right or got some conflicts. According to: http://www.kernel.org/doc/Documentation/video4linux/CARDLIST.saa7134, the Terratec Cinergy 400 TV should be card=8. Have you tried: restart, "modprobe -r saa7134", "modprobe saa7134 card=8", "dmesg | grep saa7134", and checked if the Terratec Cinergy 400 TV showed up correctly? If right, it should be Ok:
ffmpeg -f video4linux2 -i /dev/video0 out.mpg
ffmpeg -t 30 -f video4linux2 -s vga -r 30 -b 2000k -i /dev/video0 out-vga-2M-30sec.mpg
ffmpeg -t 60 -f video4linux2 -s vga -r 30 -b 2000k -i /dev/video0 out-vga-2M-60sec.avi
..., etc.
-----Original Message-----
From: linux-media-owner@vger.kernel.org [mailto:linux-media-owner@vger.kernel.org] On Behalf Of llarevo@gmx.net
Sent: Saturday, July 14, 2012 4:29 AM
To: linux-media@vger.kernel.org
Subject: libv4l2: error dequeuing buf: Resource temporarily unavailable
Hi,
I'm not sure, if this is the right list, if I'm wrong here, a hint for a appropriate place for my questions would be very appreciated.
I have a problem with an analog Terratec Cinergy 400 TV. When I try to capture with ffmpeg,
ffmpeg -f video4linux2 -i /dev/video0 out.mpg
I get the error
libv4l2: error dequeuing buf: Resource temporarily unavailable
I'm using Fedora F17.
The behavior seems to be pretty strange to me, because xawtv, mencoder, mplayer and tvtime don't have a problem with the hardware at all, ffmpeg has got this problem only with the hardware mentioned above, with a Terratec Cinergy XS, ffmpeg captures without problems.
Why reports libv4l2 "Resource temporarily unavailable"? What are common reasons for that message? What can be a reason that creates the message only on specific hardware (Terratec Cinergy 400 TV)?
Thanks a lot in advance.
--
Felix
--
To unsubscribe from this list: send the line "unsubscribe linux-media" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: libv4l2: error dequeuing buf: Resource temporarily unavailable
2012-07-16 17:50 ` Charlie X. Liu
@ 2012-07-16 19:57 ` llarevo
2012-07-17 8:00 ` charlie
0 siblings, 1 reply; 7+ messages in thread
From: llarevo @ 2012-07-16 19:57 UTC (permalink / raw)
To: Charlie X. Liu; +Cc: linux-media
Am Montag, den 16.07.2012, 10:50 -0700 schrieb Charlie X. Liu:
> Your driver load may not be quite right or got some conflicts. According to: http://www.kernel.org/doc/Documentation/video4linux/CARDLIST.saa7134, the Terratec Cinergy 400 TV should be card=8. Have you tried: restart, "modprobe -r saa7134", "modprobe saa7134 card=8", "dmesg | grep saa7134", and checked if the Terratec Cinergy 400 TV showed up correctly? If right, it should be Ok:
>
> ffmpeg -f video4linux2 -i /dev/video0 out.mpg
> ffmpeg -t 30 -f video4linux2 -s vga -r 30 -b 2000k -i /dev/video0 out-vga-2M-30sec.mpg
> ffmpeg -t 60 -f video4linux2 -s vga -r 30 -b 2000k -i /dev/video0 out-vga-2M-60sec.avi
> ..., etc.
Thanks a lot for your help. The card is loaded OK. I tried it with the
card=8 parameter in a newly created file /etc/modprobe.d/saa7134.conf.
It seems to be loaded properly:
dmesg | grep saa7134
[ 24.978050] saa7134[0]: found at 0000:04:01.0, rev: 1, irq: 17,
latency: 32, mmio: 0xfe500000
[ 24.978058] saa7134[0]: subsystem: 153b:1142, board: Terratec Cinergy
400 TV [card=8,insmod option]
[ 24.978073] saa7134[0]: board init: gpio is 50000
[ 25.053979] input: saa7134 IR (Terratec Cinergy 40
as /devices/pci0000:00/0000:00:1c.4/0000:03:00.0/0000:04:01.0/rc/rc0/input6
[ 25.054018] rc0: saa7134 IR (Terratec Cinergy 40
as /devices/pci0000:00/0000:00:1c.4/0000:03:00.0/0000:04:01.0/rc/rc0
[ 25.187509] saa7134[0]: i2c eeprom 00: 3b 15 42 11 ff ff ff ff ff ff
ff ff ff ff ff ff
[ 25.187517] saa7134[0]: i2c eeprom 10: ff ff ff ff ff ff ff ff ff ff
ff ff ff ff ff ff
[ 25.187523] saa7134[0]: i2c eeprom 20: ff ff ff ff ff ff ff ff ff ff
ff ff ff ff ff ff
[ 25.187529] saa7134[0]: i2c eeprom 30: ff ff ff ff ff ff ff ff ff ff
ff ff ff ff ff ff
[ 25.187535] saa7134[0]: i2c eeprom 40: ff ff ff ff ff ff ff ff ff ff
ff ff ff ff ff ff
[ 25.187541] saa7134[0]: i2c eeprom 50: ff ff ff ff ff ff ff ff ff ff
ff ff ff ff ff ff
[ 25.187547] saa7134[0]: i2c eeprom 60: ff ff ff ff ff ff ff ff ff ff
ff ff ff ff ff ff
[ 25.187553] saa7134[0]: i2c eeprom 70: ff ff ff ff ff ff ff ff ff ff
ff ff ff ff ff ff
[ 25.187559] saa7134[0]: i2c eeprom 80: ff ff ff ff ff ff ff ff ff ff
ff ff ff ff ff ff
[ 25.187566] saa7134[0]: i2c eeprom 90: ff ff ff ff ff ff ff ff ff ff
ff ff ff ff ff ff
[ 25.187571] saa7134[0]: i2c eeprom a0: ff ff ff ff ff ff ff ff ff ff
ff ff ff ff ff ff
[ 25.187577] saa7134[0]: i2c eeprom b0: ff ff ff ff ff ff ff ff ff ff
ff ff ff ff ff ff
[ 25.187583] saa7134[0]: i2c eeprom c0: ff ff ff ff ff ff ff ff ff ff
ff ff ff ff ff ff
[ 25.187589] saa7134[0]: i2c eeprom d0: ff ff ff ff ff ff ff ff ff ff
ff ff ff ff ff ff
[ 25.187595] saa7134[0]: i2c eeprom e0: ff ff ff ff ff ff ff ff ff ff
ff ff ff ff ff ff
[ 25.187601] saa7134[0]: i2c eeprom f0: ff ff ff ff ff ff ff ff ff ff
ff ff ff ff ff ff
[ 25.716134] saa7134[0]: registered device video0 [v4l2]
[ 25.716157] saa7134[0]: registered device vbi0
[ 25.998624] saa7134 ALSA driver for DMA sound loaded
[ 25.998650] saa7134[0]/alsa: saa7134[0] at 0xfe500000 irq 17
registered as card -1
ffmpeg -f video4linux2 -i /dev/video0 test.mpg
gives still the error mentioned in the subject,
ffmpeg -t 30 -f video4linux2 -s vga -r 30 -b 2000k -i /dev/video0
out-vga-2M-30sec.mpg
gives an I/O error while setting the framerate
ffmpeg version 0.10.4 Copyright (c) 2000-2012 the FFmpeg developers
built on Jun 13 2012 09:51:06 with gcc 4.7.0 20120507 (Red Hat
4.7.0-5)
configuration: --prefix=/usr --bindir=/usr/bin
--datadir=/usr/share/ffmpeg --incdir=/usr/include/ffmpeg
--libdir=/usr/lib64 --mandir=/usr/share/man --arch=x86_64
--extra-cflags='-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions
-fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic'
--enable-bzlib --disable-crystalhd --enable-gnutls --enable-libass
--enable-libcdio --enable-libcelt --enable-libdc1394
--disable-indev=jack --enable-libfreetype --enable-libgsm
--enable-libmp3lame --enable-openal --enable-libopenjpeg
--enable-libpulse --enable-librtmp --enable-libschroedinger
--enable-libspeex --enable-libtheora --enable-libvorbis --enable-libv4l2
--enable-libvpx --enable-libx264 --enable-libxvid --enable-x11grab
--enable-avfilter --enable-postproc --enable-pthreads --disable-static
--enable-shared --enable-gpl --disable-debug --disable-stripping
--shlibdir=/usr/lib64 --enable-runtime-cpudetect
libavutil 51. 35.100 / 51. 35.100
libavcodec 53. 61.100 / 53. 61.100
libavformat 53. 32.100 / 53. 32.100
libavdevice 53. 4.100 / 53. 4.100
libavfilter 2. 61.100 / 2. 61.100
libswscale 2. 1.100 / 2. 1.100
libswresample 0. 6.100 / 0. 6.100
libpostproc 52. 0.100 / 52. 0.100
Please use -b:a or -b:v, -b is ambiguous
[video4linux2,v4l2 @ 0x9bd440] ioctl set time per frame(1/30) failed
/dev/video0: Input/output error
While we have PAL here I tried
ffmpeg -t 30 -f video4linux2 -s vga -r 25 -b 2000k -i /dev/video0
out-vga-2M-30sec.mpg
Regards
--
Felix
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: libv4l2: error dequeuing buf: Resource temporarily unavailable
2012-07-16 19:57 ` llarevo
@ 2012-07-17 8:00 ` charlie
2012-07-17 18:46 ` llarevo
0 siblings, 1 reply; 7+ messages in thread
From: charlie @ 2012-07-17 8:00 UTC (permalink / raw)
To: llarevo; +Cc: Charlie X. Liu, linux-media
"ffmpeg -t 30 -f video4linux2 -s vga -r 25 -b 2000k -i /dev/video0
out-vga-2M-30sec.mpg" works, right? If PAL, you may add "-tvstd pal"
option.
> Am Montag, den 16.07.2012, 10:50 -0700 schrieb Charlie X. Liu:
>> Your driver load may not be quite right or got some conflicts. According
>> to:
>> http://www.kernel.org/doc/Documentation/video4linux/CARDLIST.saa7134,
>> the Terratec Cinergy 400 TV should be card=8. Have you tried: restart,
>> "modprobe -r saa7134", "modprobe saa7134 card=8", "dmesg | grep
>> saa7134", and checked if the Terratec Cinergy 400 TV showed up
>> correctly? If right, it should be Ok:
>>
>> ffmpeg -f video4linux2 -i /dev/video0 out.mpg
>> ffmpeg -t 30 -f video4linux2 -s vga -r 30 -b 2000k -i /dev/video0
>> out-vga-2M-30sec.mpg
>> ffmpeg -t 60 -f video4linux2 -s vga -r 30 -b 2000k -i /dev/video0
>> out-vga-2M-60sec.avi
>> ..., etc.
>
> Thanks a lot for your help. The card is loaded OK. I tried it with the
> card=8 parameter in a newly created file /etc/modprobe.d/saa7134.conf.
>
> It seems to be loaded properly:
>
> dmesg | grep saa7134
> [ 24.978050] saa7134[0]: found at 0000:04:01.0, rev: 1, irq: 17,
> latency: 32, mmio: 0xfe500000
> [ 24.978058] saa7134[0]: subsystem: 153b:1142, board: Terratec Cinergy
> 400 TV [card=8,insmod option]
> [ 24.978073] saa7134[0]: board init: gpio is 50000
> [ 25.053979] input: saa7134 IR (Terratec Cinergy 40
> as
> /devices/pci0000:00/0000:00:1c.4/0000:03:00.0/0000:04:01.0/rc/rc0/input6
> [ 25.054018] rc0: saa7134 IR (Terratec Cinergy 40
> as /devices/pci0000:00/0000:00:1c.4/0000:03:00.0/0000:04:01.0/rc/rc0
> [ 25.187509] saa7134[0]: i2c eeprom 00: 3b 15 42 11 ff ff ff ff ff ff
> ff ff ff ff ff ff
> [ 25.187517] saa7134[0]: i2c eeprom 10: ff ff ff ff ff ff ff ff ff ff
> ff ff ff ff ff ff
> [ 25.187523] saa7134[0]: i2c eeprom 20: ff ff ff ff ff ff ff ff ff ff
> ff ff ff ff ff ff
> [ 25.187529] saa7134[0]: i2c eeprom 30: ff ff ff ff ff ff ff ff ff ff
> ff ff ff ff ff ff
> [ 25.187535] saa7134[0]: i2c eeprom 40: ff ff ff ff ff ff ff ff ff ff
> ff ff ff ff ff ff
> [ 25.187541] saa7134[0]: i2c eeprom 50: ff ff ff ff ff ff ff ff ff ff
> ff ff ff ff ff ff
> [ 25.187547] saa7134[0]: i2c eeprom 60: ff ff ff ff ff ff ff ff ff ff
> ff ff ff ff ff ff
> [ 25.187553] saa7134[0]: i2c eeprom 70: ff ff ff ff ff ff ff ff ff ff
> ff ff ff ff ff ff
> [ 25.187559] saa7134[0]: i2c eeprom 80: ff ff ff ff ff ff ff ff ff ff
> ff ff ff ff ff ff
> [ 25.187566] saa7134[0]: i2c eeprom 90: ff ff ff ff ff ff ff ff ff ff
> ff ff ff ff ff ff
> [ 25.187571] saa7134[0]: i2c eeprom a0: ff ff ff ff ff ff ff ff ff ff
> ff ff ff ff ff ff
> [ 25.187577] saa7134[0]: i2c eeprom b0: ff ff ff ff ff ff ff ff ff ff
> ff ff ff ff ff ff
> [ 25.187583] saa7134[0]: i2c eeprom c0: ff ff ff ff ff ff ff ff ff ff
> ff ff ff ff ff ff
> [ 25.187589] saa7134[0]: i2c eeprom d0: ff ff ff ff ff ff ff ff ff ff
> ff ff ff ff ff ff
> [ 25.187595] saa7134[0]: i2c eeprom e0: ff ff ff ff ff ff ff ff ff ff
> ff ff ff ff ff ff
> [ 25.187601] saa7134[0]: i2c eeprom f0: ff ff ff ff ff ff ff ff ff ff
> ff ff ff ff ff ff
> [ 25.716134] saa7134[0]: registered device video0 [v4l2]
> [ 25.716157] saa7134[0]: registered device vbi0
> [ 25.998624] saa7134 ALSA driver for DMA sound loaded
> [ 25.998650] saa7134[0]/alsa: saa7134[0] at 0xfe500000 irq 17
> registered as card -1
>
>
> ffmpeg -f video4linux2 -i /dev/video0 test.mpg
>
> gives still the error mentioned in the subject,
>
> ffmpeg -t 30 -f video4linux2 -s vga -r 30 -b 2000k -i /dev/video0
> out-vga-2M-30sec.mpg
>
> gives an I/O error while setting the framerate
>
> ffmpeg version 0.10.4 Copyright (c) 2000-2012 the FFmpeg developers
> built on Jun 13 2012 09:51:06 with gcc 4.7.0 20120507 (Red Hat
> 4.7.0-5)
> configuration: --prefix=/usr --bindir=/usr/bin
> --datadir=/usr/share/ffmpeg --incdir=/usr/include/ffmpeg
> --libdir=/usr/lib64 --mandir=/usr/share/man --arch=x86_64
> --extra-cflags='-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions
> -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic'
> --enable-bzlib --disable-crystalhd --enable-gnutls --enable-libass
> --enable-libcdio --enable-libcelt --enable-libdc1394
> --disable-indev=jack --enable-libfreetype --enable-libgsm
> --enable-libmp3lame --enable-openal --enable-libopenjpeg
> --enable-libpulse --enable-librtmp --enable-libschroedinger
> --enable-libspeex --enable-libtheora --enable-libvorbis --enable-libv4l2
> --enable-libvpx --enable-libx264 --enable-libxvid --enable-x11grab
> --enable-avfilter --enable-postproc --enable-pthreads --disable-static
> --enable-shared --enable-gpl --disable-debug --disable-stripping
> --shlibdir=/usr/lib64 --enable-runtime-cpudetect
> libavutil 51. 35.100 / 51. 35.100
> libavcodec 53. 61.100 / 53. 61.100
> libavformat 53. 32.100 / 53. 32.100
> libavdevice 53. 4.100 / 53. 4.100
> libavfilter 2. 61.100 / 2. 61.100
> libswscale 2. 1.100 / 2. 1.100
> libswresample 0. 6.100 / 0. 6.100
> libpostproc 52. 0.100 / 52. 0.100
> Please use -b:a or -b:v, -b is ambiguous
> [video4linux2,v4l2 @ 0x9bd440] ioctl set time per frame(1/30) failed
> /dev/video0: Input/output error
>
> While we have PAL here I tried
>
> ffmpeg -t 30 -f video4linux2 -s vga -r 25 -b 2000k -i /dev/video0
> out-vga-2M-30sec.mpg
>
> Regards
> --
> Felix
>
> --
> To unsubscribe from this list: send the line "unsubscribe linux-media" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
>
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: libv4l2: error dequeuing buf: Resource temporarily unavailable
2012-07-17 8:00 ` charlie
@ 2012-07-17 18:46 ` llarevo
2012-07-17 19:25 ` Charlie X. Liu
0 siblings, 1 reply; 7+ messages in thread
From: llarevo @ 2012-07-17 18:46 UTC (permalink / raw)
To: charlie; +Cc: linux-media
>
> >> Your driver load may not be quite right or got some conflicts. According
> >> to:
> >> http://www.kernel.org/doc/Documentation/video4linux/CARDLIST.saa7134,
> >> the Terratec Cinergy 400 TV should be card=8. Have you tried: restart,
> >> "modprobe -r saa7134", "modprobe saa7134 card=8", "dmesg | grep
> >> saa7134", and checked if the Terratec Cinergy 400 TV showed up
> >> correctly? If right, it should be Ok:
> >>
> >> ffmpeg -f video4linux2 -i /dev/video0 out.mpg
> >> ffmpeg -t 30 -f video4linux2 -s vga -r 30 -b 2000k -i /dev/video0
> >> out-vga-2M-30sec.mpg
> >> ffmpeg -t 60 -f video4linux2 -s vga -r 30 -b 2000k -i /dev/video0
> >> out-vga-2M-60sec.avi
> >> ..., etc.
> >
> > Thanks a lot for your help. The card is loaded OK. I tried it with the
> > card=8 parameter in a newly created file /etc/modprobe.d/saa7134.conf.
> >
> > It seems to be loaded properly:
> >
> > dmesg | grep saa7134
> > [ 24.978050] saa7134[0]: found at 0000:04:01.0, rev: 1, irq: 17,
> > latency: 32, mmio: 0xfe500000
> > [ 24.978058] saa7134[0]: subsystem: 153b:1142, board: Terratec Cinergy
> > 400 TV [card=8,insmod option]
> > [ 24.978073] saa7134[0]: board init: gpio is 50000
> > [ 25.053979] input: saa7134 IR (Terratec Cinergy 40
> > as
> > /devices/pci0000:00/0000:00:1c.4/0000:03:00.0/0000:04:01.0/rc/rc0/input6
> > [ 25.054018] rc0: saa7134 IR (Terratec Cinergy 40
> > as /devices/pci0000:00/0000:00:1c.4/0000:03:00.0/0000:04:01.0/rc/rc0
> > [ 25.187509] saa7134[0]: i2c eeprom 00: 3b 15 42 11 ff ff ff ff ff ff
> > ff ff ff ff ff ff
> > [ 25.187517] saa7134[0]: i2c eeprom 10: ff ff ff ff ff ff ff ff ff ff
> > ff ff ff ff ff ff
> > [ 25.187523] saa7134[0]: i2c eeprom 20: ff ff ff ff ff ff ff ff ff ff
> > ff ff ff ff ff ff
> > [ 25.187529] saa7134[0]: i2c eeprom 30: ff ff ff ff ff ff ff ff ff ff
> > ff ff ff ff ff ff
> > [ 25.187535] saa7134[0]: i2c eeprom 40: ff ff ff ff ff ff ff ff ff ff
> > ff ff ff ff ff ff
> > [ 25.187541] saa7134[0]: i2c eeprom 50: ff ff ff ff ff ff ff ff ff ff
> > ff ff ff ff ff ff
> > [ 25.187547] saa7134[0]: i2c eeprom 60: ff ff ff ff ff ff ff ff ff ff
> > ff ff ff ff ff ff
> > [ 25.187553] saa7134[0]: i2c eeprom 70: ff ff ff ff ff ff ff ff ff ff
> > ff ff ff ff ff ff
> > [ 25.187559] saa7134[0]: i2c eeprom 80: ff ff ff ff ff ff ff ff ff ff
> > ff ff ff ff ff ff
> > [ 25.187566] saa7134[0]: i2c eeprom 90: ff ff ff ff ff ff ff ff ff ff
> > ff ff ff ff ff ff
> > [ 25.187571] saa7134[0]: i2c eeprom a0: ff ff ff ff ff ff ff ff ff ff
> > ff ff ff ff ff ff
> > [ 25.187577] saa7134[0]: i2c eeprom b0: ff ff ff ff ff ff ff ff ff ff
> > ff ff ff ff ff ff
> > [ 25.187583] saa7134[0]: i2c eeprom c0: ff ff ff ff ff ff ff ff ff ff
> > ff ff ff ff ff ff
> > [ 25.187589] saa7134[0]: i2c eeprom d0: ff ff ff ff ff ff ff ff ff ff
> > ff ff ff ff ff ff
> > [ 25.187595] saa7134[0]: i2c eeprom e0: ff ff ff ff ff ff ff ff ff ff
> > ff ff ff ff ff ff
> > [ 25.187601] saa7134[0]: i2c eeprom f0: ff ff ff ff ff ff ff ff ff ff
> > ff ff ff ff ff ff
> > [ 25.716134] saa7134[0]: registered device video0 [v4l2]
> > [ 25.716157] saa7134[0]: registered device vbi0
> > [ 25.998624] saa7134 ALSA driver for DMA sound loaded
> > [ 25.998650] saa7134[0]/alsa: saa7134[0] at 0xfe500000 irq 17
> > registered as card -1
> >
> >
> > ffmpeg -f video4linux2 -i /dev/video0 test.mpg
> >
> > gives still the error mentioned in the subject,
> >
> > ffmpeg -t 30 -f video4linux2 -s vga -r 30 -b 2000k -i /dev/video0
> > out-vga-2M-30sec.mpg
> >
> > gives an I/O error while setting the framerate
> >
> > ffmpeg version 0.10.4 Copyright (c) 2000-2012 the FFmpeg developers
> > built on Jun 13 2012 09:51:06 with gcc 4.7.0 20120507 (Red Hat
> > 4.7.0-5)
> > configuration: --prefix=/usr --bindir=/usr/bin
> > --datadir=/usr/share/ffmpeg --incdir=/usr/include/ffmpeg
> > --libdir=/usr/lib64 --mandir=/usr/share/man --arch=x86_64
> > --extra-cflags='-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions
> > -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic'
> > --enable-bzlib --disable-crystalhd --enable-gnutls --enable-libass
> > --enable-libcdio --enable-libcelt --enable-libdc1394
> > --disable-indev=jack --enable-libfreetype --enable-libgsm
> > --enable-libmp3lame --enable-openal --enable-libopenjpeg
> > --enable-libpulse --enable-librtmp --enable-libschroedinger
> > --enable-libspeex --enable-libtheora --enable-libvorbis --enable-libv4l2
> > --enable-libvpx --enable-libx264 --enable-libxvid --enable-x11grab
> > --enable-avfilter --enable-postproc --enable-pthreads --disable-static
> > --enable-shared --enable-gpl --disable-debug --disable-stripping
> > --shlibdir=/usr/lib64 --enable-runtime-cpudetect
> > libavutil 51. 35.100 / 51. 35.100
> > libavcodec 53. 61.100 / 53. 61.100
> > libavformat 53. 32.100 / 53. 32.100
> > libavdevice 53. 4.100 / 53. 4.100
> > libavfilter 2. 61.100 / 2. 61.100
> > libswscale 2. 1.100 / 2. 1.100
> > libswresample 0. 6.100 / 0. 6.100
> > libpostproc 52. 0.100 / 52. 0.100
> > Please use -b:a or -b:v, -b is ambiguous
> > [video4linux2,v4l2 @ 0x9bd440] ioctl set time per frame(1/30) failed
> > /dev/video0: Input/output error
> >
> > While we have PAL here I tried
> >
> > ffmpeg -t 30 -f video4linux2 -s vga -r 25 -b 2000k -i /dev/video0
> > out-vga-2M-30sec.mpg
> >
>"ffmpeg -t 30 -f video4linux2 -s vga -r 25 -b 2000k -i /dev/video0
> out-vga-2M-30sec.mpg" works, right? If PAL, you may add "-tvstd pal"
> option.
Sorry, I didn't finish my last sentence. No, it does not work. Even if I
choose the framerate for PAL, I get the error.
To summarize my results:
* The SAA7134 is recognized by the kernel (right?).
* The right module is properly loaded (right?).
* The card parameter is card=8 (right?).
* tvtime, mplayer, mencoder, and xawtv work with the card
* ffmpeg does not, showing the error in the subject.
^ permalink raw reply [flat|nested] 7+ messages in thread
* RE: libv4l2: error dequeuing buf: Resource temporarily unavailable
2012-07-17 18:46 ` llarevo
@ 2012-07-17 19:25 ` Charlie X. Liu
2012-07-18 20:07 ` llarevo
0 siblings, 1 reply; 7+ messages in thread
From: Charlie X. Liu @ 2012-07-17 19:25 UTC (permalink / raw)
To: llarevo; +Cc: linux-media
It means, your FFmpeg may not be installed properly or has dependency issue. To confirm it, use Ubuntu-10.04-LTS--LiveDVD (that can be downloaded from: http://cdimage.ubuntu.com/releases/lucid/release/ ) without installation, and run "sudo apt-get install ffmpeg" before running:
$ modprobe -r saa7134
$ modprobe saa7134 card=8
$ ffmpeg -t 300 -f video4linux2 -s vga -r 30 -b 2000k -i /dev/video0 out-vga-2M-5min.mpg
or
$ ffmpeg -t 600 -f video4linux2 -s vga -r 30 -b 2000k -i /dev/video0 out-vga-2M-10min.avi
The FFmpeg commands listed above had been proven working well, with Sensoray Model 811 (http://www.sensoray.com/products/811.htm), 911 (http://www.sensoray.com/products/911.htm), 614-NC (http://www.sensoray.com/products/614.htm), and 314-NC (http://www.sensoray.com/products/314.htm), which are all SAA7134-based frame/video capture boards.
-----Original Message-----
From: llarevo@gmx.net [mailto:llarevo@gmx.net]
Sent: Tuesday, July 17, 2012 11:46 AM
To: charlie@sensoray.com
Cc: linux-media@vger.kernel.org
Subject: Re: libv4l2: error dequeuing buf: Resource temporarily unavailable
>
> >> Your driver load may not be quite right or got some conflicts.
> >> According
> >> to:
> >> http://www.kernel.org/doc/Documentation/video4linux/CARDLIST.saa713
> >> 4, the Terratec Cinergy 400 TV should be card=8. Have you tried:
> >> restart, "modprobe -r saa7134", "modprobe saa7134 card=8", "dmesg |
> >> grep saa7134", and checked if the Terratec Cinergy 400 TV showed up
> >> correctly? If right, it should be Ok:
> >>
> >> ffmpeg -f video4linux2 -i /dev/video0 out.mpg ffmpeg -t 30 -f
> >> video4linux2 -s vga -r 30 -b 2000k -i /dev/video0
> >> out-vga-2M-30sec.mpg ffmpeg -t 60 -f video4linux2 -s vga -r 30 -b
> >> 2000k -i /dev/video0 out-vga-2M-60sec.avi ..., etc.
> >
> > Thanks a lot for your help. The card is loaded OK. I tried it with
> > the
> > card=8 parameter in a newly created file /etc/modprobe.d/saa7134.conf.
> >
> > It seems to be loaded properly:
> >
> > dmesg | grep saa7134
> > [ 24.978050] saa7134[0]: found at 0000:04:01.0, rev: 1, irq: 17,
> > latency: 32, mmio: 0xfe500000
> > [ 24.978058] saa7134[0]: subsystem: 153b:1142, board: Terratec Cinergy
> > 400 TV [card=8,insmod option]
> > [ 24.978073] saa7134[0]: board init: gpio is 50000
> > [ 25.053979] input: saa7134 IR (Terratec Cinergy 40
> > as
> > /devices/pci0000:00/0000:00:1c.4/0000:03:00.0/0000:04:01.0/rc/rc0/input6
> > [ 25.054018] rc0: saa7134 IR (Terratec Cinergy 40
> > as /devices/pci0000:00/0000:00:1c.4/0000:03:00.0/0000:04:01.0/rc/rc0
> > [ 25.187509] saa7134[0]: i2c eeprom 00: 3b 15 42 11 ff ff ff ff ff ff
> > ff ff ff ff ff ff
> > [ 25.187517] saa7134[0]: i2c eeprom 10: ff ff ff ff ff ff ff ff ff ff
> > ff ff ff ff ff ff
> > [ 25.187523] saa7134[0]: i2c eeprom 20: ff ff ff ff ff ff ff ff ff ff
> > ff ff ff ff ff ff
> > [ 25.187529] saa7134[0]: i2c eeprom 30: ff ff ff ff ff ff ff ff ff ff
> > ff ff ff ff ff ff
> > [ 25.187535] saa7134[0]: i2c eeprom 40: ff ff ff ff ff ff ff ff ff ff
> > ff ff ff ff ff ff
> > [ 25.187541] saa7134[0]: i2c eeprom 50: ff ff ff ff ff ff ff ff ff ff
> > ff ff ff ff ff ff
> > [ 25.187547] saa7134[0]: i2c eeprom 60: ff ff ff ff ff ff ff ff ff ff
> > ff ff ff ff ff ff
> > [ 25.187553] saa7134[0]: i2c eeprom 70: ff ff ff ff ff ff ff ff ff ff
> > ff ff ff ff ff ff
> > [ 25.187559] saa7134[0]: i2c eeprom 80: ff ff ff ff ff ff ff ff ff ff
> > ff ff ff ff ff ff
> > [ 25.187566] saa7134[0]: i2c eeprom 90: ff ff ff ff ff ff ff ff ff ff
> > ff ff ff ff ff ff
> > [ 25.187571] saa7134[0]: i2c eeprom a0: ff ff ff ff ff ff ff ff ff ff
> > ff ff ff ff ff ff
> > [ 25.187577] saa7134[0]: i2c eeprom b0: ff ff ff ff ff ff ff ff ff ff
> > ff ff ff ff ff ff
> > [ 25.187583] saa7134[0]: i2c eeprom c0: ff ff ff ff ff ff ff ff ff ff
> > ff ff ff ff ff ff
> > [ 25.187589] saa7134[0]: i2c eeprom d0: ff ff ff ff ff ff ff ff ff ff
> > ff ff ff ff ff ff
> > [ 25.187595] saa7134[0]: i2c eeprom e0: ff ff ff ff ff ff ff ff ff ff
> > ff ff ff ff ff ff
> > [ 25.187601] saa7134[0]: i2c eeprom f0: ff ff ff ff ff ff ff ff ff ff
> > ff ff ff ff ff ff
> > [ 25.716134] saa7134[0]: registered device video0 [v4l2]
> > [ 25.716157] saa7134[0]: registered device vbi0
> > [ 25.998624] saa7134 ALSA driver for DMA sound loaded
> > [ 25.998650] saa7134[0]/alsa: saa7134[0] at 0xfe500000 irq 17
> > registered as card -1
> >
> >
> > ffmpeg -f video4linux2 -i /dev/video0 test.mpg
> >
> > gives still the error mentioned in the subject,
> >
> > ffmpeg -t 30 -f video4linux2 -s vga -r 30 -b 2000k -i /dev/video0
> > out-vga-2M-30sec.mpg
> >
> > gives an I/O error while setting the framerate
> >
> > ffmpeg version 0.10.4 Copyright (c) 2000-2012 the FFmpeg developers
> > built on Jun 13 2012 09:51:06 with gcc 4.7.0 20120507 (Red Hat
> > 4.7.0-5)
> > configuration: --prefix=/usr --bindir=/usr/bin
> > --datadir=/usr/share/ffmpeg --incdir=/usr/include/ffmpeg
> > --libdir=/usr/lib64 --mandir=/usr/share/man --arch=x86_64
> > --extra-cflags='-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2
> > -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic'
> > --enable-bzlib --disable-crystalhd --enable-gnutls --enable-libass
> > --enable-libcdio --enable-libcelt --enable-libdc1394
> > --disable-indev=jack --enable-libfreetype --enable-libgsm
> > --enable-libmp3lame --enable-openal --enable-libopenjpeg
> > --enable-libpulse --enable-librtmp --enable-libschroedinger
> > --enable-libspeex --enable-libtheora --enable-libvorbis
> > --enable-libv4l2 --enable-libvpx --enable-libx264 --enable-libxvid
> > --enable-x11grab --enable-avfilter --enable-postproc
> > --enable-pthreads --disable-static --enable-shared --enable-gpl
> > --disable-debug --disable-stripping
> > --shlibdir=/usr/lib64 --enable-runtime-cpudetect
> > libavutil 51. 35.100 / 51. 35.100
> > libavcodec 53. 61.100 / 53. 61.100
> > libavformat 53. 32.100 / 53. 32.100
> > libavdevice 53. 4.100 / 53. 4.100
> > libavfilter 2. 61.100 / 2. 61.100
> > libswscale 2. 1.100 / 2. 1.100
> > libswresample 0. 6.100 / 0. 6.100
> > libpostproc 52. 0.100 / 52. 0.100
> > Please use -b:a or -b:v, -b is ambiguous
> > [video4linux2,v4l2 @ 0x9bd440] ioctl set time per frame(1/30) failed
> > /dev/video0: Input/output error
> >
> > While we have PAL here I tried
> >
> > ffmpeg -t 30 -f video4linux2 -s vga -r 25 -b 2000k -i /dev/video0
> > out-vga-2M-30sec.mpg
> >
>"ffmpeg -t 30 -f video4linux2 -s vga -r 25 -b 2000k -i /dev/video0
>out-vga-2M-30sec.mpg" works, right? If PAL, you may add "-tvstd pal"
> option.
Sorry, I didn't finish my last sentence. No, it does not work. Even if I choose the framerate for PAL, I get the error.
To summarize my results:
* The SAA7134 is recognized by the kernel (right?).
* The right module is properly loaded (right?).
* The card parameter is card=8 (right?).
* tvtime, mplayer, mencoder, and xawtv work with the card
* ffmpeg does not, showing the error in the subject.
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: libv4l2: error dequeuing buf: Resource temporarily unavailable
2012-07-17 19:25 ` Charlie X. Liu
@ 2012-07-18 20:07 ` llarevo
0 siblings, 0 replies; 7+ messages in thread
From: llarevo @ 2012-07-18 20:07 UTC (permalink / raw)
To: Charlie X. Liu; +Cc: linux-media
In Ubuntu it works. THANK YOU! Are you sure, that they have a problem
with their ffmpeg or could it be a problem with their v4l as well? I
would like to investigate further. Next I gonna test with an
self-compiled ffmpeg.
Again: thank you very much! I am trying to get some hints since weeks in
ffmpeg lists as well as in fedora lists, nobody could help there.
Regards
--
Felix
> It means, your FFmpeg may not be installed properly or has dependency issue. To confirm it, use Ubuntu-10.04-LTS--LiveDVD (that can be downloaded from: http://cdimage.ubuntu.com/releases/lucid/release/ ) without installation, and run "sudo apt-get install ffmpeg" before running:
>
> $ modprobe -r saa7134
> $ modprobe saa7134 card=8
> $ ffmpeg -t 300 -f video4linux2 -s vga -r 30 -b 2000k -i /dev/video0 out-vga-2M-5min.mpg
> or
> $ ffmpeg -t 600 -f video4linux2 -s vga -r 30 -b 2000k -i /dev/video0 out-vga-2M-10min.avi
>
> The FFmpeg commands listed above had been proven working well, with Sensoray Model 811 (http://www.sensoray.com/products/811.htm), 911 (http://www.sensoray.com/products/911.htm), 614-NC (http://www.sensoray.com/products/614.htm), and 314-NC (http://www.sensoray.com/products/314.htm), which are all SAA7134-based frame/video capture boards.
>
>
> -----Original Message-----
> From: llarevo@gmx.net [mailto:llarevo@gmx.net]
> Sent: Tuesday, July 17, 2012 11:46 AM
> To: charlie@sensoray.com
> Cc: linux-media@vger.kernel.org
> Subject: Re: libv4l2: error dequeuing buf: Resource temporarily unavailable
>
>
> >
> > >> Your driver load may not be quite right or got some conflicts.
> > >> According
> > >> to:
> > >> http://www.kernel.org/doc/Documentation/video4linux/CARDLIST.saa713
> > >> 4, the Terratec Cinergy 400 TV should be card=8. Have you tried:
> > >> restart, "modprobe -r saa7134", "modprobe saa7134 card=8", "dmesg |
> > >> grep saa7134", and checked if the Terratec Cinergy 400 TV showed up
> > >> correctly? If right, it should be Ok:
> > >>
> > >> ffmpeg -f video4linux2 -i /dev/video0 out.mpg ffmpeg -t 30 -f
> > >> video4linux2 -s vga -r 30 -b 2000k -i /dev/video0
> > >> out-vga-2M-30sec.mpg ffmpeg -t 60 -f video4linux2 -s vga -r 30 -b
> > >> 2000k -i /dev/video0 out-vga-2M-60sec.avi ..., etc.
> > >
> > > Thanks a lot for your help. The card is loaded OK. I tried it with
> > > the
> > > card=8 parameter in a newly created file /etc/modprobe.d/saa7134.conf.
> > >
> > > It seems to be loaded properly:
> > >
> > > dmesg | grep saa7134
> > > [ 24.978050] saa7134[0]: found at 0000:04:01.0, rev: 1, irq: 17,
> > > latency: 32, mmio: 0xfe500000
> > > [ 24.978058] saa7134[0]: subsystem: 153b:1142, board: Terratec Cinergy
> > > 400 TV [card=8,insmod option]
> > > [ 24.978073] saa7134[0]: board init: gpio is 50000
> > > [ 25.053979] input: saa7134 IR (Terratec Cinergy 40
> > > as
> > > /devices/pci0000:00/0000:00:1c.4/0000:03:00.0/0000:04:01.0/rc/rc0/input6
> > > [ 25.054018] rc0: saa7134 IR (Terratec Cinergy 40
> > > as /devices/pci0000:00/0000:00:1c.4/0000:03:00.0/0000:04:01.0/rc/rc0
> > > [ 25.187509] saa7134[0]: i2c eeprom 00: 3b 15 42 11 ff ff ff ff ff ff
> > > ff ff ff ff ff ff
> > > [ 25.187517] saa7134[0]: i2c eeprom 10: ff ff ff ff ff ff ff ff ff ff
> > > ff ff ff ff ff ff
> > > [ 25.187523] saa7134[0]: i2c eeprom 20: ff ff ff ff ff ff ff ff ff ff
> > > ff ff ff ff ff ff
> > > [ 25.187529] saa7134[0]: i2c eeprom 30: ff ff ff ff ff ff ff ff ff ff
> > > ff ff ff ff ff ff
> > > [ 25.187535] saa7134[0]: i2c eeprom 40: ff ff ff ff ff ff ff ff ff ff
> > > ff ff ff ff ff ff
> > > [ 25.187541] saa7134[0]: i2c eeprom 50: ff ff ff ff ff ff ff ff ff ff
> > > ff ff ff ff ff ff
> > > [ 25.187547] saa7134[0]: i2c eeprom 60: ff ff ff ff ff ff ff ff ff ff
> > > ff ff ff ff ff ff
> > > [ 25.187553] saa7134[0]: i2c eeprom 70: ff ff ff ff ff ff ff ff ff ff
> > > ff ff ff ff ff ff
> > > [ 25.187559] saa7134[0]: i2c eeprom 80: ff ff ff ff ff ff ff ff ff ff
> > > ff ff ff ff ff ff
> > > [ 25.187566] saa7134[0]: i2c eeprom 90: ff ff ff ff ff ff ff ff ff ff
> > > ff ff ff ff ff ff
> > > [ 25.187571] saa7134[0]: i2c eeprom a0: ff ff ff ff ff ff ff ff ff ff
> > > ff ff ff ff ff ff
> > > [ 25.187577] saa7134[0]: i2c eeprom b0: ff ff ff ff ff ff ff ff ff ff
> > > ff ff ff ff ff ff
> > > [ 25.187583] saa7134[0]: i2c eeprom c0: ff ff ff ff ff ff ff ff ff ff
> > > ff ff ff ff ff ff
> > > [ 25.187589] saa7134[0]: i2c eeprom d0: ff ff ff ff ff ff ff ff ff ff
> > > ff ff ff ff ff ff
> > > [ 25.187595] saa7134[0]: i2c eeprom e0: ff ff ff ff ff ff ff ff ff ff
> > > ff ff ff ff ff ff
> > > [ 25.187601] saa7134[0]: i2c eeprom f0: ff ff ff ff ff ff ff ff ff ff
> > > ff ff ff ff ff ff
> > > [ 25.716134] saa7134[0]: registered device video0 [v4l2]
> > > [ 25.716157] saa7134[0]: registered device vbi0
> > > [ 25.998624] saa7134 ALSA driver for DMA sound loaded
> > > [ 25.998650] saa7134[0]/alsa: saa7134[0] at 0xfe500000 irq 17
> > > registered as card -1
> > >
> > >
> > > ffmpeg -f video4linux2 -i /dev/video0 test.mpg
> > >
> > > gives still the error mentioned in the subject,
> > >
> > > ffmpeg -t 30 -f video4linux2 -s vga -r 30 -b 2000k -i /dev/video0
> > > out-vga-2M-30sec.mpg
> > >
> > > gives an I/O error while setting the framerate
> > >
> > > ffmpeg version 0.10.4 Copyright (c) 2000-2012 the FFmpeg developers
> > > built on Jun 13 2012 09:51:06 with gcc 4.7.0 20120507 (Red Hat
> > > 4.7.0-5)
> > > configuration: --prefix=/usr --bindir=/usr/bin
> > > --datadir=/usr/share/ffmpeg --incdir=/usr/include/ffmpeg
> > > --libdir=/usr/lib64 --mandir=/usr/share/man --arch=x86_64
> > > --extra-cflags='-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2
> > > -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic'
> > > --enable-bzlib --disable-crystalhd --enable-gnutls --enable-libass
> > > --enable-libcdio --enable-libcelt --enable-libdc1394
> > > --disable-indev=jack --enable-libfreetype --enable-libgsm
> > > --enable-libmp3lame --enable-openal --enable-libopenjpeg
> > > --enable-libpulse --enable-librtmp --enable-libschroedinger
> > > --enable-libspeex --enable-libtheora --enable-libvorbis
> > > --enable-libv4l2 --enable-libvpx --enable-libx264 --enable-libxvid
> > > --enable-x11grab --enable-avfilter --enable-postproc
> > > --enable-pthreads --disable-static --enable-shared --enable-gpl
> > > --disable-debug --disable-stripping
> > > --shlibdir=/usr/lib64 --enable-runtime-cpudetect
> > > libavutil 51. 35.100 / 51. 35.100
> > > libavcodec 53. 61.100 / 53. 61.100
> > > libavformat 53. 32.100 / 53. 32.100
> > > libavdevice 53. 4.100 / 53. 4.100
> > > libavfilter 2. 61.100 / 2. 61.100
> > > libswscale 2. 1.100 / 2. 1.100
> > > libswresample 0. 6.100 / 0. 6.100
> > > libpostproc 52. 0.100 / 52. 0.100
> > > Please use -b:a or -b:v, -b is ambiguous
> > > [video4linux2,v4l2 @ 0x9bd440] ioctl set time per frame(1/30) failed
> > > /dev/video0: Input/output error
> > >
> > > While we have PAL here I tried
> > >
> > > ffmpeg -t 30 -f video4linux2 -s vga -r 25 -b 2000k -i /dev/video0
> > > out-vga-2M-30sec.mpg
> > >
> >"ffmpeg -t 30 -f video4linux2 -s vga -r 25 -b 2000k -i /dev/video0
> >out-vga-2M-30sec.mpg" works, right? If PAL, you may add "-tvstd pal"
> > option.
>
> Sorry, I didn't finish my last sentence. No, it does not work. Even if I choose the framerate for PAL, I get the error.
>
> To summarize my results:
>
> * The SAA7134 is recognized by the kernel (right?).
> * The right module is properly loaded (right?).
> * The card parameter is card=8 (right?).
> * tvtime, mplayer, mencoder, and xawtv work with the card
> * ffmpeg does not, showing the error in the subject.
>
>
>
>
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2012-07-18 20:08 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-07-14 11:29 libv4l2: error dequeuing buf: Resource temporarily unavailable llarevo
2012-07-16 17:50 ` Charlie X. Liu
2012-07-16 19:57 ` llarevo
2012-07-17 8:00 ` charlie
2012-07-17 18:46 ` llarevo
2012-07-17 19:25 ` Charlie X. Liu
2012-07-18 20:07 ` llarevo
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.