title: FFMPEG: how to save input camera stream into the file with the SAME codec format?
body: <p>I have the camera-like device that produces video stream and passes it into my Windows-based machine via USB port.</p>
  
  <p>Using the command:</p>
  
  <pre><code>ffmpeg -y -f vfwcap -i list
  </code></pre>
  
  <p>I see that (as expected) FFmpeg finds the input stream as stream #0.</p>
  
  <p>Using the command:</p>
  
  <pre><code>ffmpeg -y -f vfwcap -r 25 -i 0 c:\out.mp4
  </code></pre>
  
  <p>I can successfully save the input stream into the file.</p>
  
  <p>From the log I see: </p>
  
  <blockquote>
    <p>Stream #0:0: Video: rawvideo (UYVY / 0x59565955), uyvy422, 240x320, 25 tbr, 1k tbn, 25 tbc
    No pixel format specified, yuv422p for H.264 encoding chosen.</p>
  </blockquote>
  
  <p>So, my input format is transcoded to <code>yuv422p</code>.</p>
  
  <p>My question:</p>
  
  <ul>
  <li>How can I cause FFmpeg to save my input video stream into out.mp4 WITHOUT transcoding - actually, to copy input stream to output file as close as possible, with the same format?</li>
  </ul>