title: How to output the grabbed video into a file with mplayer?
body: <p>The mplayer command can grab video when to insert usb-camera into usb slot.</p>
  
  <pre><code>mplayer -tv driver=v4l2:width=352:height=288:device=/dev/video0 tv://
  </code></pre>
  
  <p>The video grabed by usb-camera can be displayed on the screen,<br>
  how to output the grabbed vedio into a file with mplayer?</p>
  
  <pre><code> mplayer -tv driver=v4l2:width=352:height=288:device=/dev/video0 tv://home/test.mp4
  </code></pre>
  
  <p>The command can't grab video into /home/test.mp4.</p>