View Full Version : Webcam Video/Audio Capture

24th December 2008, 11:12 PM
Been playing around with my Logitech Quickcam Communicator STX and cannot seem to stream both video and audio at the same time. While using mencoder either will work, but not together. This is the command that I have used and different variations thereof:

mencoder tv:// -tv driver=v4l2:width=640:height=480:device=/dev/video1:alsa:forceaudio:amode=0:adevice=hw.1,0 -fps 15 -ovc lavc -oac mp3lame -lameopts cbr:br=64:mode=3 -o testsnd.avi

This is the output that is generated:

MEncoder dev-SVN-r27514-4.3.2 (C) 2000-2008 MPlayer Team
CPU: AMD Athlon(tm) XP 2500+ (Family: 6, Model: 10, Stepping: 0)
CPUflags: Type: 6 MMX: 1 MMX2: 1 3DNow: 1 3DNow2: 1 SSE: 1 SSE2: 0
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@zpr.uni-koeln.de>
comment: first try, more to come ;-)
Selected device: USB Camera (046d:08d7)
Capabilites: video capture read/write streaming
supported norms:
inputs: 0 = zc3xx;
Current input: 0
Current format: unknown (0x4745504a)
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!
v4l2: Cannot get fps
Channel count not available - reverting to default: 1
Channel count not available - reverting to default: 1
Floating point exception <- This part has me wondering

Has anyone had any success with capturing this webcam to file? I have also tried ffmpeg and xawtv with no success. Perhaps someone has the method and would be willing to share it?