title: Make FFmpeg output a similar video quality
body: <p>I'm using FFmpeg in my program to cut a video. This is the command my program executed:</p>
  
  <pre><code>ffmpeg -i in.avi -ss 00:00:00.000 -to 00:04:35.000 out.avi
  </code></pre>
  
  <p>Quality and size of out.avi are MUCH lower than in.avi. How can I tell FFmpeg to keep the quality of the input file? I don't want to use -c copy because then the video will start with black frames.</p>
  
  <p>Here is the output without -c copy (command above) <a href="http://pastebin.com/JYYRsFsQ" rel="nofollow">http://pastebin.com/JYYRsFsQ</a></p>
  
  <p>Here is the output of the command with -c copy <code>ffmpeg -i in.avi -ss 00:00:05.000 -c copy -to 00:04:35.000 out.avi</code></p>
  
  <p>output with -c copy: <a href="http://pastebin.com/wXPhBSYj" rel="nofollow">http://pastebin.com/wXPhBSYj</a></p>