Dear List, Is there any application that knows how to grab V4L2 and a USB microphone at the same time?
ffmpeg grabs V4L2 OK, but does not grab correctly (I dont get any sound from oss device /dev/dsp1) a usb microphone. mplayer/mencoder does not work at all for V4L2 (or does someone has it working?), but grabs usb mic ok (through alsa). Below a question I posted to this list a few days ago.. Regards, Sampsa
--- Begin Message ---Dear List, I have a Sonix USB 2.0 webcam that is using V4L2. There seems to be a problem with mplayer.. I did.. svn checkout svn://svn.mplayerhq.hu/mplayer/trunk mplayer (there is an earlier posting to this mailing list that says that the repository version should work OK with V4L2). Then complied (configure, gmake, gmake install) and tried -------------- linux-q5nk:/home/sampsa/mplayer # ./mencoder tv:// -v -tv driver=v4l2:width=576:height=576:input=1:device=/dev/video0:immediatemode=0:forceaudio:outfmt=yv12 -o outfile.avi -lavcopts vcodec=mjpeg ----------- It gave me the following output.. ------------- MEncoder dev-SVN-r25966-4.2.1 (C) 2000-2008 MPlayer Team CPU: AMD Turion(tm) 64 X2 Mobile Technology TL-58 (Family: 15, Model: 104, Stepping: 1) CPUflags: Type: 15 MMX: 1 MMX2: 1 3DNow: 1 3DNow2: 1 SSE: 1 SSE2: 1 Compiled for x86 CPU with extensions: MMX MMX2 3DNow 3DNowEx SSE SSE2 Configuration: init_freetype get_path('font/font.desc') -> '/root/.mplayer/font/font.desc' font: can't open file: /root/.mplayer/font/font.desc font: can't open file: /usr/local/share/mplayer/font/font.desc Using MMX (with tiny bit MMX2) Optimized OnScreenDisplay 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 <[EMAIL PROTECTED]> 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 Format YUYV (16 bits, YUV 4:2:2 (YUYV)): Packed YUY2 Current format: YUYV v4l2: set format: YVU420 v4l2: ioctl set format failed: Invalid argument v4l2: set input: 1 v4l2: ioctl enum input failed: Invalid argument tv.c: norm_from_string(pal): Bogus norm parameter, setting default. Selected norm : pal v4l2: ioctl enum norm failed: Invalid argument Error: Cannot set norm! v4l2: set width: 576 v4l2: set height: 576 Selected input hasn't got a tuner! ==> Found video stream: 0 v4l2: get format: YUYV v4l2: get fps: nan v4l2: get width: 640 v4l2: get height: 480 ioctl dsp getfmt: 0 Supported formats: 4b1f9 ioctl dsp setfmt: 0 ioctl dsp stereo: 0 (req: 1) ioctl dsp speed: 0 ioctl dsp trigger: 0 trigger: 1 ioctl dsp trigger: 0 ioctl dsp getblocksize: 0 blocksize: 4096 Audio block size too low, setting to 16384! v4l2: set audio samplerate: 44100 v4l2: get audio format: 9 ==> Found audio stream: 0 v4l2: get audio samplerate: 44100 v4l2: get audio samplesize: 2 v4l2: get audio channels: 2 TV audio: 2 channels, 16 bits, 44100 Hz Audio capture - buffer 256 blocks of 16384 bytes, skew average from 16 meas. Floating point exception ----------- Please, does anyone have any idea how to get this working? Regards, Sampsa Riikonen
--- End Message ---
_______________________________________________ Linux-uvc-devel mailing list [email protected] https://lists.berlios.de/mailman/listinfo/linux-uvc-devel
