• Willkommen im Linux Club - dem deutschsprachigen Supportforum für GNU/Linux. Registriere dich kostenlos, um alle Inhalte zu sehen und Fragen zu stellen.

v4l2: ioctl request buffers failed: Invalid argument

JanDD

Member
Hallo, als TV-Karte habe ich die WinTV PVR 350. Diese funktioniert bereits mit folgenden Kommandos:

ivtvctl -p 4 (für Input: Tuner)
ivtvctl -u 0xff (für Norm: PAL)
mplayer /dev/video0

Wieso geht nun folgendes Kommando nicht, wenn das obige geht?

mplayer tv://e7 -tv driver=v4l2:device=/dev/video0:input=4:norm=PAL

Nach diesem Aufruf kommt die Ausgabe, die ich ganz unten im Post aufführe, und die Folge, dass ich mplayer /dev/video0 erst wieder erfolgreich ausführen kann, wenn ich die beiden ivtvctl-Kommandos wiederhole. Da dies aber it einem Befehl Komfortabler gehen sollte, bitte ich um Lösung, warum der Aufruf aus Zitat 2 scheitert. Danke!

MPlayer SuSE Linux 10.0 (i686)-Packman-4.0.2 (C) 2000-2005 MPlayer Team
CPU: Intel Celeron 2/Pentium III Coppermine,Geyserville (Family: 6, Stepping: 3)
Detected cache-line size is 32 bytes
CPUflags: MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 0
Compiled with runtime CPU detection - WARNING - this is not optimal!
To get best performance, recompile MPlayer with --disable-runtime-cpudetection.


Opening joystick device /dev/input/js0
Can't open joystick device /dev/input/js0 : No such file or directory
Can't init input joystick
Setting up LIRC support...
mplayer: could not connect to socket
mplayer: Connection refused
Failed to open LIRC support.
You will not be able to use your remote control.
Playing tv://e8.
TV detected! ;-)
Selected driver: v4l2
name: Video 4 Linux 2 input
author: Martin Olschewski <olschewski@zpr.uni-koeln.de>
comment: first try, more to come ;-)
Selected device: WinTV PVR 350
Tuner cap: STEREO LANG1 LANG2
Tuner rxs: MONO
Capabilites: video capture video output VBI capture device VBI output tuner audio read/write
supported norms: 0 = NTSC; 1 = PAL; 2 = SECAM;
inputs: 0 = Composite 0; 1 = Composite 1; 2 = Composite 2; 3 = Composite 3; 4 = Tuner 0; 5 = Composite 4; 6 = S-Video 0; 7 = S-Video 1; 8 = S-Video 2; 9 = S-Video 3;
Current input: 0
Current format: unknown (0x4745504d)
v4l2: current audio mode is : STEREO
Selected channel: E8 (freq: 196.250)
v4l2: ioctl request buffers failed: Invalid argument


MPlayer interrupted by signal 11 in module: demux_open
- MPlayer crashed by bad usage of CPU/FPU/RAM.
Recompile MPlayer with --enable-debug and make a 'gdb' backtrace and
disassembly. Details in DOCS/HTML/en/bugreports_what.html#bugreports_crash.
- MPlayer crashed. This shouldn't happen.
It can be a bug in the MPlayer code _or_ in your drivers _or_ in your
gcc version. If you think it's MPlayer's fault, please read
DOCS/HTML/en/bugreports.html and follow the instructions there. We can't and
won't help unless you provide this information when reporting a possible bug.
 

fimblo

Newbie
Hi,

I really wish I could write in German, but my skills at your language are much too bad for me to even attempt to try it :(

I hope you forgive me for not writing in the Forum language... and I also hope that you can read/write in English...

Anyway, I have exactly the same problem as you (as far as I can see- I speak Swedish fluently, and linux-ese).

my linux box version info:
kernel: 2.6.12-gentoo-r6
ivtv: version 4.0
mplayer: 1.0pre6-3.3.5-20050130

I tried using video32 (YUV) as the source, and telling mplayer to use outfmt=YUY2 instead, and I managed to avoid the "unknown format" error, but I still ended up getting the ioctl lines, like so:
Code:
mj@wilbur ~ $ mplayer tv://E8  -tv driver=v4l2:input=4:norm=1:device=/dev/v4l/video32:outfmt=YUY2
MPlayer 1.0pre6-3.3.5-20050130 (C) 2000-2004 MPlayer Team
CPU: Intel Pentium 4/Xeon Willamette (Family: 8, Stepping: 2)
Detected cache-line size is 64 bytes
MMX2 supported but disabled
SSE2 supported but disabled
CPUflags:  MMX: 1 MMX2: 0 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 0
Compiled for x86 CPU with extensions: MMX SSE


Warning unknown option cache_min at line 144
Warning unknown option cache_prefill at line 147

77 audio & 189 video codecs
Opening joystick device /dev/input/js0
Can't open joystick device /dev/input/js0 : No such file or directory
Can't init input joystick
Setting up LIRC support...
mplayer: could not open config files /home/fimblo/.lircrc and /etc/lircrc
mplayer: No such file or directory
Failed to read LIRC config file ~/.lircrc.
You will not be able to use your remote control.
Playing tv://E8.
Cache fill:  0.00% (0 bytes)    TV detected! ;-)
Selected driver: v4l2
 name: Video 4 Linux 2 input
 author: Martin Olschewski <olschewski@zpr.uni-koeln.de>
 comment: first try, more to come ;-)
Selected device: WinTV PVR 350
 Tuner cap: STEREO LANG1 LANG2
 Tuner rxs: MONO
 Capabilites:  video capture  video output  VBI capture device  VBI output  tuner  audio  read/write
 supported norms: 0 = NTSC; 1 = PAL; 2 = SECAM;
 inputs: 0 = Composite 0; 1 = Composite 1; 2 = Composite 2; 3 = Composite 3; 4 = Tuner 0; 5 = Composite 4; 6 = S-Video 0; 7 = S-Video 1; 8 = S-Video 2; 9 = S-Video 3;
 Current input: 4
 Current format: UYVY
v4l2: current audio mode is : STEREO
Selected channel: E8 (freq: 196.250)
v4l2: ioctl request buffers failed: Invalid argument
v4l2: 0 frames successfully processed, 0 frames dropped.


Exiting... (End of file)

Did you solve the problem??
 
Oben