title: Use gstreamer to stream video and audio of Logitech C920
body: <p>I'm quite a newbie on using gstreamer. I want to stream video and audio from my C920 webcam to another PC but I keep getting wrong in combining things..</p>
  
  <p>I can now stream h264 video from my C920 to another PC using:</p>
  
  <pre><code>gst-launch-1.0 v4l2src device=/dev/video1 ! video/x-h264,width=1280,height=720,framerate=30/1 ! h264parse ! rtph264pay pt=127 config-interval=4 ! udpsink host=172.19.3.103
  </code></pre>
  
  <p>And view it with: </p>
  
  <pre><code>gst-launch-1.0 udpsrc port=1234 ! application/x-rtp, payload=127 ! rtph264depay ! avdec_h264 ! xvimagesink sync=false
  </code></pre>
  
  <p>I can also get the audio from the C920 and record it to a file together with a test-image:</p>
  
  <pre><code>gst-launch videotestsrc ! videorate ! video/x-raw-yuv,framerate=5/1 ! queue ! theoraenc ! queue ! mux. pulsesrc device="alsa_input.usb-046d_HD_Pro_Webcam_C920_F1894590-02-C920.analog-stereo" ! audio/x-raw-int,rate=48000,channels=2,depth=16 ! queue ! audioconvert ! queue ! vorbisenc ! queue ! mux. oggmux name=mux ! filesink location=stream.ogv
  </code></pre>
  
  <p>But I' trying to get something like this (below) to work.. This one is not working, presumably it's even a very bad combi I made!</p>
  
  <p><code>gst-launch v4l2src device=/dev/video1 !  video/x-h264,width=1280,height=720,framerate=30/1 ! queue ! mux. pulsesrc device="alsa_input.usb-046d_HD_Pro_Webcam_C920_F1894590-02-C920.analog-stereo" ! audio/x-raw-int,rate=48000,channels=2,depth=16 ! queue ! audioconvert ! queue ! x264enc ! queue ! udpsink host=127.0.0.1 port=1234</code></p>