[MEncoder-users] Can not capture webcam

Florian Binder fb at java4.info
Thu Sep 10 20:47:25 CEST 2009


Hi guys,

I am trying to capture a video from my webcam.
I have search the whole internet and found a lot of ideas but nothing is 
working.

I can see the live video with the following command:
mplayer -cache 128 -tv 
driver=v4l2:width=640:height=480:outfmt=i420:device=/dev/video0 -fps 30 
-vf mirror -vc rawyuy2 -vo xv tv://

But if I try to capture it using this command:
mencoder -cache 128 -tv 
driver=v4l2:width=640:height=480:outfmt=i420:device=/dev/video0 -fps 30 
-vf mirror -vc rawyuy2 tv:// -o test.avi

It does not work and I get the following output:
MEncoder 2:1.0~rc2-0ubuntu19 (C) 2000-2007 MPlayer Team
CPU: Intel(R) Core(TM)2 Duo CPU     P9600  @ 2.66GHz (Family: 6, Model: 
23, Stepping: 10)
CPUflags: Type: 6 MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 1
Compiled with runtime CPU detection.
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: ioctl get standard failed: Invalid argument
Selected device: USB 2.0 Camera
Capabilites:  video capture  streaming
supported norms:
inputs: 0 = Camera 1;
Current input: 0
Current format: YUYV
v4l2: ioctl set format failed: Invalid argument
tv.c: norm_from_string(pal): Bogus norm parameter, setting default.
v4l2: ioctl enum norm failed: Invalid argument
Error: Cannot set norm!
Selected input hasn't got a tuner!
Audio block size too low, setting to 16384!
Floating point exception

Do I have a buggy verion or what is the problem?

Thank you for your help!
Flo


More information about the MEncoder-users mailing list