If you are using gstreamer, the following works for my built-in iSight and alsa sound system (or it did, before I did my most recent kernel upgrade :(
#!/bin/sh # # stream output from built-in iSight to file specified on command line # echo "Streaming video display and record, with audio, to file $1.ogg ..." gst-launch-0.10 \ alsasrc \ ! audiorate \ ! 'audio/x-raw-int,rate=44100,channels=2' \ ! audioconvert \ ! vorbisenc \ ! queue \ ! muxout. \ \ v4l2src \ ! tee name=teev \ \ teev. \ ! videorate \ ! 'video/x-raw-yuv,format=(fourcc)UYVY,width=640,height=480,framerate=(fraction)25/1' \ ! ffmpegcolorspace \ ! clockoverlay \ ! theoraenc \ ! queue \ ! muxout. \ \ teev. \ ! ffmpegcolorspace \ ! ximagesink \ \ oggmux name=muxout \ ! filesink location=$1.ogg This displays the webcam output and simultaneously records the video and the microphone input. It all seemed to synchronise ok. For other cameras, you may need to change the format, size, frame rate etc Hope this helps, Dan _______________________________________________ Linux-uvc-devel mailing list [email protected] https://lists.berlios.de/mailman/listinfo/linux-uvc-devel
