mplayer + webcam

Udv!

Van egy helyi gepem, ahol az alabbi paranccsal probalom meg kinyerni a kepet a videokamerabol:

 mplayer tv:// -tv driver=v4l:width=352:height=288:device=/dev/video0 

.

Ugyanez a parancs egy tavoli gepen mukodik (debian sarge), itt viszont (ubuntu tavaly oktoberi) nem igazan:


 mplayer tv:// -tv driver=v4l:width=352:height=288
MPlayer SVN-r29237-4.4.1 (C) 2000-2009 MPlayer Team
mplayer: could not connect to socket
mplayer: No such file or directory
Failed to open LIRC support. You will not be able to use your remote control.

Playing tv://.
TV file format detected.
Selected driver: v4l
 name: Video 4 Linux input
 author: Alex Beregszaszi
 comment: under development
=================================================================
 WARNING: YOU ARE USING V4L DEMUXER WITH V4L2 DRIVERS!!!
 As the V4L1 compatibility layer is broken, this may not work.
 If you encounter any problems, use driver=v4l2 instead.
 Bugreports on driver=v4l with v4l2 drivers will be ignored.
=================================================================
Selected device: Camera
 Capabilites: capture 
 Device type: 1
 Supported sizes: 48x32 => 352x288
 Inputs: 1
ioctl get channel failed: Invalid argument
Using input ''
ioctl get channel failed: Invalid argument
tv.c: norm_from_string(pal): Bogus norm parameter, setting default.
Unknown norm!
Error: Cannot set norm!
Selected input hasn't got a tuner!
FPS not specified in the header or invalid, use the -fps option.
No stream found.


Exiting... (End of file)

.

Nem igazan jottem ra, hogy mi lehet a baja. Probaltam v4l2 driverrel is: Ime .

A kamera mukodik, amsn viszi legalabbis,

 fuser /dev/video0 

nem mutatja, hogy barki hasznalna.

Varom az otleteket mi lehet a hiba, mit kellene meg kiprobalnom :- ).

Koszi.

Hozzászólások

Csak egy tipp: "driver=v4l2"-vel probaltad?

Igy?
LD_PRELOAD=/usr/lib/libv4l/v4l2convert.so mplayer -fps 30 -tv driver=v4l2:width=352:height=288:outfmt=rgb24:device=/dev/video0:noaudio tv://