All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Charlie X. Liu" <charlie@sensoray.com>
To: <llarevo@gmx.net>
Cc: <linux-media@vger.kernel.org>
Subject: RE: libv4l2: error dequeuing buf: Resource temporarily unavailable
Date: Tue, 17 Jul 2012 12:25:08 -0700	[thread overview]
Message-ID: <004b01cd6451$e1366760$a3a33620$@com> (raw)
In-Reply-To: <1342550765.5078.4.camel@tbastian-desktop.localdomain>

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.





  reply	other threads:[~2012-07-17 19:31 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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 [this message]
2012-07-18 20:07           ` llarevo

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='004b01cd6451$e1366760$a3a33620$@com' \
    --to=charlie@sensoray.com \
    --cc=linux-media@vger.kernel.org \
    --cc=llarevo@gmx.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.