title: ffmpeg partial transcode using -ss and -to
body: <p>I am trying to achieve partial transcode using ffmpeg.
  The command I am using currently is:</p>
  
  <blockquote>
    <p>ffmpeg.exe -ss <em>start-time</em>  -i  <em>source file</em> -t <em>duration</em>  -y
    -s 640x360 -b:v 1024k -vcodec libx264 -r 29.7 -movflags faststart -pix_fmt yuv420p  <em>outputfile</em></p>
  </blockquote>
  
  <p>In the ffmpeg documentation, I read about -to parameter:</p>
  
  <blockquote>
    <p>-to position (output) Stop writing the output at position. position may be a number in seconds, or in hh:mm:ss[.xxx] form.</p>
    
    <p>-to and -t are mutually exclusive and -t has priority.</p>
  </blockquote>
  
  <p>But when I tried <strong>-to</strong> in place of "-t" , the output was same, I mean the value after <em>-to</em> is taken as duration of out put video. I thought it would treat the value like end time. Am I missing something?</p>