title: Python: Play Video file from a Buffer
body: <p>I am working on a python program that receives broken chunks of video files over a TCP socket.
  While receiving, I pull my data into a variable like:</p>
  
  <pre><code>film = sock.recv(100000)
  </code></pre>
  
  <p>What I am currently doing is writing this to a file 'received.mp4' and then playing it.</p>
  
  <p><strong>Is there a way I could directly play this video from the <code>film</code> buffer?</strong></p>