title: How to join two ffmpeg commands
body: <p>i have a script which uses this ffmpeg command's parameters for encoding videos.</p>
  
  <pre><code>ffmpeg -i inputfile -acodec libfaac -keyint_min 20 -r 20 -vcodec libx264 -vpre hq -crf 25 -b 300k -bt 300k -y -v 0 -bf 16 -threads 0 outputfile
  </code></pre>
  
  <p>and i have a custom command i would like to add to it, is like this </p>
  
  <pre><code>ffmpeg -i inputfile -vf "movie=watermark.png [watermark]; [in][watermark] overlay=main_w-overlay_w-10:main_h-overlay_h-10 [out]" outputfile
  </code></pre>
  
  <p>so i replaced main command like this </p>
  
  <pre><code> ffmpeg -i inputfile -acodec libfaac -keyint_min 20 -r 20 -vcodec libx264 -vpre hq -crf 25 -b 300k -bt 300k -y -v 0 -bf 16 -threads 0 -vf "movie=watermark1.png [watermark]; [in][watermark] overlay=main_w-overlay_w-10:main_h-overlay_h-10 [out]" outputfile
  </code></pre>
  
  <p>and tried it in command line, but this doesnt do anything, the output is nothing like this </p>
  
  <pre><code>[root@www test1]#  ffmpeg -i test1800.mp4 -acodec libfaac -keyint_min 20 -r 20 -vcodec libx264 -vpre hq -crf 25 -b 300k -bt 300k -y -v 0 -bf 16 -threads 0 -vf "movie=watermark1.png [watermark]; [in][watermark] overlay=main_w-overlay_w-10:main_h-overlay_h-10 [out]" outputfile.mp4
  [root@www test1]#
  </code></pre>
  
  <p>how do i solve this ?</p>
  
  <p>Thanks for your time.</p>
  
  <p><strong>UPDATE</strong>
  My ffmpeg command details</p>
  
  <pre><code>[root@www test1]# ffmpeg
  ffmpeg version N-47061-gbe2c0bc Copyright (c) 2000-2012 the FFmpeg developers
    built on Nov 25 2012 09:32:08 with gcc 4.1.2 (GCC) 20080704 (Red Hat 4.1.2-52)
    configuration: --enable-gpl --enable-libmp3lame --enable-libvorbis --enable-libvpx --enable-libx264
    libavutil      52.  9.100 / 52.  9.100
    libavcodec     54. 77.100 / 54. 77.100
    libavformat    54. 37.100 / 54. 37.100
    libavdevice    54.  3.100 / 54.  3.100
    libavfilter     3. 23.102 /  3. 23.102
    libswscale      2.  1.102 /  2.  1.102
    libswresample   0. 17.101 /  0. 17.101
    libpostproc    52.  2.100 / 52.  2.100
  Hyper fast Audio and Video encoder
  usage: ffmpeg [options] [[infile options] -i infile]... {[outfile options] outfile}...
  
  Use -h to get full help or, even better, run 'man ffmpeg'
  </code></pre>
  
  <p>thanks</p>