title: vlc mp4 stream to html5 player
body: <p>I would like to stream my desktop to some other devices like ps3, tablet or smartTV. </p>
  
  <p>The simplest solution for this I thought was vlc streaming to a html5 page stored on a local server. I start vlc in my commandline with the following transcode settings:</p>
  
  <pre><code>:sout=#transcode{vcodec=h264,vb=100,scale=0,acodec=mpga,ab=96,channels=2,samplerate=44100}:standard{access=http,mux=ts{use-key-frames},dst=:8080}
  </code></pre>
  
  <p>The html code:</p>
  
  <pre><code>&lt;video width="704" height="396" controls="controls" loop="loop" autoplay="autoplay"&gt;
        &lt;source src="http://####:8080/" type="video/mp4" /&gt;
        Your browser does not support the video tag.
  &lt;/video&gt;
  </code></pre>
  
  <p>I can watch the stream into vlc on a different machine. According to this post:</p>
  
  <p><a href="https://stackoverflow.com/questions/11294836/streaming-mp4-with-vlc-to-html-browser">Streaming mp4 with vlc to html browser</a></p>
  
  <p><code>mux=mp4</code> won't create a working stream. Also reported in the <a href="http://www.videolan.org/doc/streaming-howto/en/ch03.html#id346006" rel="nofollow noreferrer">vlc manual</a>. Unless I am mistaken they define <code>ts</code> as the right mux for h264.</p>
  
  <p>So where is the clue?</p>