title: FFMPEG 2 Videos transcoded and side by side in 1 frame?
body: <p>I have 2 videos: HEADSHOT.MOV and SCREEN.MOV.  They are both large files and I am looking to both shrink (size, bitrate, etc) and place these two side by side in the same, very wide, video frame.  The end result would be that when you play the output_video.mp4, you would have a very wide frame with both videos in sync and playing at the same rate.</p>
  
  <p>Here is the syntatically incorrect version of what I am trying to do:</p>
  
  <pre><code>ffmpeg -i HEADSHOT.MOV -t 00:02:00 -acodec libfaac -ab 64k -vcodec libx264 -r 30 -pass 1 -s 374x210 -vf "movie=SCREEN.MOV [small]; [in][small] -an -r 30 -pass 1 -s 374x210 overlay=10:10 -t 00:02:00 [out]" -threads 0 output_movie.mp4
  </code></pre>
  
  <p>In the above example, I also tried to set a test movie duration for 2 minutes which raises another question, What is the best way to handle 2 movies of varying length (if they are close)?</p>
  
  <p>The resources I have found helpful so far are:</p>
  
  <p><a href="https://stackoverflow.com/questions/7581665/multiple-video-sources-combined-into-one">Multiple video sources combined into one</a> and </p>
  
  <p><a href="http://ffmpeg.org/ffmpeg.html#overlay-1" rel="noreferrer">http://ffmpeg.org/ffmpeg.html#overlay-1</a></p>
  
  <p>Any help/advice is greatly appreciated.  I am having trouble with the FFMPEG syntax! Thank you!</p>