[MPlayer-users] Problems recording pwc webcam

andrea mariofutire at googlemail.com
Sun Dec 9 20:22:01 CET 2012


Hi,

I am trying to record using a Logitech PWC webcam (Logitech QuickCam Pro 4000).
I can play using mplayer but recording fails

1) mencoder fails to start
2) I cannot use -dumpstream in mplayer

Case 1) is the one I would like to fix.
Do I need to tell more about the format to mencoder?
mplayer does not need anything else to play it.

I report below the output I get

1) mencoder -v -tv driver=v4l2 tv:// -o abc.avi

MEncoder SVN-r34652-4.7.0 (C) 2000-2012 MPlayer Team
get_path('codecs.conf') -> '/home/andrea/.mplayer/codecs.conf'
Reading optional codecs config file /home/andrea/.mplayer/codecs.conf: No such file or directory
Reading optional codecs config file /etc/mplayer/codecs.conf: No such file or directory
Using built-in default codecs.conf.
init_freetype
Using MMX (with tiny bit MMX2) Optimized OnScreenDisplay
get_path('fonts') -> '/home/andrea/.mplayer/fonts'
Configuration: --prefix=/usr --bindir=/usr/bin --datadir=/usr/share/mplayer --mandir=/usr/share/man
--confdir=/etc/mplayer --libdir=/usr/lib --codecsdir=/usr/lib/codecs --extra-cflags=-O2 -g -pipe
-Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4  -m32
-march=i686 -mtune=atom -fasynchronous-unwind-tables --language=all --enable-joystick --enable-lirc
--enable-menu --enable-radio --enable-radio-capture --enable-runtime-cpudetection --enable-unrarexec
--disable-dvdread-internal --disable-libdvdcss-internal --disable-nemesi --disable-smb
--disable-ffmpeg_a --disable-faac --disable-mad --disable-libmpeg2-internal
--disable-tremor-internal --disable-bitmap-font --disable-dga1 --disable-dga2 --disable-directfb
--disable-svga --disable-termcap --enable-xvmc --with-xvmclib=XvMCW --disable-arts --disable-esd
--disable-jack --disable-openal --disable-live
STREAM: [tv] tv://
STREAM: Description: TV Input
STREAM: Author: Benjamin Zores, Albeu
STREAM: Comment:
success: format: 9  data: 0x0 - 0x0
TV file format detected.
Selected driver: v4l2
 name: Video 4 Linux 2 input
 author: Martin Olschewski <olschewski at zpr.uni-koeln.de>
 comment: first try, more to come ;-)
v4l2: your device driver does not support VIDIOC_G_STD ioctl, VIDIOC_G_PARM was used instead.
Selected device: Logitech QuickCam Pro 4000
 Capabilities:  video capture  read/write  streaming
 supported norms:
 inputs: 0 = Camera;
 Current input: 0
 Format unknown (0x32435750) ( 0 bits, Raw Philips Webcam): Unknown 0x32435750
 Format YUV420 (12 bits, 4:2:0, planar, Y-Cb-Cr): Planar I420
 Current format: YUV420
v4l2: set format: YVU420
v4l2: ioctl set format failed: Invalid argument
v4l2: set format: YUV420
v4l2: set input: 0
tv.c: norm_from_string(pal): Bogus norm parameter, setting default.
Selected norm : pal
v4l2: ioctl enum norm failed: Inappropriate ioctl for device
Error: Cannot set norm!
Selected input hasn't got a tuner!
==> Found video stream: 0
v4l2: get format: YUV420
v4l2: get fps: 15.000000
v4l2: get width: 640
v4l2: get height: 480
Unable to open '/dev/dsp': No such file or directory
v4l2: ioctl set mute failed: Invalid argument
v4l2: 0 frames successfully processed, 0 frames dropped.
v4l2: up to 0 video frames buffered.
============ Sorry, this file format is not recognized/supported =============
=== If this file is an AVI, ASF or MPEG stream, please contact the author! ===
Cannot open demuxer.

Exiting...


2) mplayer -v -dumpstream -tv driver=v4l2 tv://

MPlayer SVN-r34652-4.7.0 (C) 2000-2012 MPlayer Team
CPU vendor name: GenuineIntel  max cpuid level: 2
CPU: Intel(R) Pentium(R) M processor 1500MHz (Family: 6, Model: 9, Stepping: 5)
extended cpuid-level: 4
Detected cache-line size is 64 bytes
Testing OS support for SSE... yes.
Tests of OS support for SSE passed.
CPUflags:  MMX: 1 MMX2: 1 3DNow: 0 3DNowExt: 0 SSE: 1 SSE2: 1 SSSE3: 0
Compiled with runtime CPU detection.
get_path('codecs.conf') -> '/home/andrea/.mplayer/codecs.conf'
Reading optional codecs config file /home/andrea/.mplayer/codecs.conf: No such file or directory
Reading optional codecs config file /etc/mplayer/codecs.conf: No such file or directory
Using built-in default codecs.conf.
init_freetype
Using MMX (with tiny bit MMX2) Optimized OnScreenDisplay
get_path('fonts') -> '/home/andrea/.mplayer/fonts'
Configuration: --prefix=/usr --bindir=/usr/bin --datadir=/usr/share/mplayer --mandir=/usr/share/man
--confdir=/etc/mplayer --libdir=/usr/lib --codecsdir=/usr/lib/codecs --extra-cflags=-O2 -g -pipe
-Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4  -m32
-march=i686 -mtune=atom -fasynchronous-unwind-tables --language=all --enable-joystick --enable-lirc
--enable-menu --enable-radio --enable-radio-capture --enable-runtime-cpudetection --enable-unrarexec
--disable-dvdread-internal --disable-libdvdcss-internal --disable-nemesi --disable-smb
--disable-ffmpeg_a --disable-faac --disable-mad --disable-libmpeg2-internal
--disable-tremor-internal --disable-bitmap-font --disable-dga1 --disable-dga2 --disable-directfb
--disable-svga --disable-termcap --enable-xvmc --with-xvmclib=XvMCW --disable-arts --disable-esd
--disable-jack --disable-openal --disable-live
CommandLine: '-v' '-dumpstream' '-tv' 'driver=v4l2' 'tv://'
Using nanosleep() timing
get_path('input.conf') -> '/home/andrea/.mplayer/input.conf'
Reading optional input config file /home/andrea/.mplayer/input.conf: No such file or directory
Parsing input config file /etc/mplayer/input.conf
Input config file /etc/mplayer/input.conf parsed: 92 binds
Setting up LIRC support...
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.
get_path('.conf') -> '/home/andrea/.mplayer/.conf'

Playing tv://.
get_path('sub/') -> '/home/andrea/.mplayer/sub/'
STREAM: [tv] tv://
STREAM: Description: TV Input
STREAM: Author: Benjamin Zores, Albeu
STREAM: Comment:
dump: 0 bytes written to 'stream.dump'.
Core dumped ;)
vo: x11 uninit called but X11 not initialized..



More information about the MPlayer-users mailing list