title: FFMPEG Add recording to this command
body: <p>Raspberry Pi IP camera on my network broadcasting to a web browser. I want to save 10 minutes long video clips. This is the line:</p>
  
  <pre><code>raspivid  -t -0 -w 1080 -h 720 -awb auto -fps 30 -b 1200000 -o - |ffmpeg -loglevel quiet -i - -vcodec copy -an -f flv -metadata streamName=myStream tcp://0.0.0.0:6666&amp; 
  </code></pre>
  
  <p>Following a youtube tutorial I managed to watch my rpi ip camera on the browser but I want to record myself sleeping to detect any breath interruption.</p>
  
  <pre><code>raspivid  -t -0 -w 1080 -h 720 -awb auto -fps 30 -b 1200000 -o - |ffmpeg -loglevel quiet -i - -vcodec copy -an -f flv -metadata streamName=myStream tcp://0.0.0.0:6666&amp;
  </code></pre>
  
  <p>Works fine! I only want to add recording to a file 10 minutes videos (in chronological order if it's possible)</p>