title: JSMpeg not able to get stream from RTSP
body: <p>i'm trying to get a RTSP stream inside a webpage, but with no success actually.</p>
  
  <p>For this I followed exactly the tutorial of JSMpeg : <a href="https://github.com/phoboslab/jsmpeg" rel="nofollow noreferrer">https://github.com/phoboslab/jsmpeg</a></p>
  
  <p>With a custom FFMPEG command : </p>
  
  <pre><code>ffmpeg -i "rtsp://myurl/media.smp" \
   -vcodec h264 -f mpegts -codec:v mpeg1video -s 1290x980 -b:v 8000k \
   -r 25 -max_muxing_queue_size 9999 http://localhost:8081/supersecret
  </code></pre>
  
  <p>My websocket well receive my connection on it.</p>
  
  <p>But my canvas is still a white square :
  <a href="https://i.stack.imgur.com/a1XON.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/a1XON.png" alt="enter image description here"></a></p>
  
  <p><strong>The weird thing is when I change the websocket url with a false one, in my code, the canvas turn to black.</strong></p>
  
  <p>So I guess that it turn WHITE when it receive something.</p>
  
  <p>Thansk for help</p>