title: Stdout to memory python
body: <p>I wanted to stream the raspivid using VLC. So I followed the below link</p>
  
  <pre><code>raspivid -o - -t 9999999 -w 1280 -h 1024 -b 500000 -fps 20|cvlc -vvv stream:///dev/stdin --sout '#rtp{sdp=rtsp://:8080/}' :demux=h264 
  </code></pre>
  
  <p>Now I wanted to record the streamed result in vlc with </p>
  
  <pre><code>cvlc -vvv stream:///rtsp://0.0.0.0:8554/}'  --sout=file/ps:record.mpg
  </code></pre>
  
  <p>Am I doing it right? Alternative approach/methods appreciated.  </p>