title: Realtime streaming video to HTML5 with RaspberryPi, gstreamer
body: <p>I'm trying to make a live stream from a Raspberry camera available on a HTML5 webpage.  Because of combination of factors, I would like to stream it to an outside server pc(Server pc os is window7) and this server should be able to supply the streams to the webpage HTML. </p>
  
  <p>I'm able to get the stream from the Raspberry Pi and stream it with Gstreamer to an external server like this:</p>
  
  <p>Raspberry Pi:</p>
  
  <pre><code>raspivid -n -t 0 -rot 270 -w 960 -h 720 -fps 30 -b 2000000 -o - | gst-launch-1.0 - e -vvvv fdsrc ! h264parse ! rtph24pay pt=96 config-interval=1 ! udpsink host=External IP port=5000
  </code></pre>
  
  <p>External server </p>
  
  <pre><code>gst-launch-1.0 -e -v udpsrc port=5000 ! application/x-rtp, payload=96 ! rtpjitterbuffer ! rtph264depay ! avdec_h264 ! fpsdisplaysink sync=false text-overlay=false
  </code></pre>
  
  <p>As a result I could display live video stream through gstreamer(GStreamer D3D video sink) in external server pc.</p>
  
  <p>Now I have a problem:</p>
  
  <p>I want to display this as HTML 5 video with Apache on server side (PC) instead of GStreamer D3D video output.</p>
  
  <p>I searched for this solution for a long time but I couldn't find anything.</p>