Recording from a different webcam with gstreamer

If you're using GStreamer to record video with a v4l2src (as I did when encoding to mjpeg), you might have more than one device plugged in.

You can change the device (be it webcam, tv tuner, etc.) with the device parameter.

Usage:

gst-launch-0.10 v4l2src device=/dev/video1 ! *rest of the pipeline goes here*