From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from mailout-de.gmx.net ([213.165.64.22]:38797 "HELO mailout-de.gmx.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with SMTP id S1753351Ab2GRUIl (ORCPT ); Wed, 18 Jul 2012 16:08:41 -0400 Message-ID: <1342642071.2042.7.camel@tbastian-desktop.localdomain> Subject: Re: libv4l2: error dequeuing buf: Resource temporarily unavailable From: "llarevo@gmx.net" To: "Charlie X. Liu" Cc: linux-media@vger.kernel.org Date: Wed, 18 Jul 2012 22:07:51 +0200 In-Reply-To: <004b01cd6451$e1366760$a3a33620$@com> References: <1342265363.2362.12.camel@tbastian-desktop.localdomain> <000901cd637b$77c9e620$675db260$@com> <1342468678.2083.7.camel@tbastian-desktop.localdomain> <1342550765.5078.4.camel@tbastian-desktop.localdomain> <004b01cd6451$e1366760$a3a33620$@com> Content-Type: text/plain; charset="UTF-8" Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Sender: linux-media-owner@vger.kernel.org List-ID: 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. > > > >