title: FFMPEG MOV to MP4 error {Could not write header for output file #0 (incorrect codec parameters ?): Invalid argument}
body: <p>I'm using FFMPEG to convert and watermar videos </p>
  
  <pre><code>ffmpeg -i "MVI_9692.MOV"   -i 360.png  -acodec copy -threads 12  -filter_complex "scale=-2:360,overlay=(main_w-overlay_w)/2:(main_h-overlay_h)/2"  "MVI_9692.MOV_360.mp4"
  </code></pre>
  
  <p>this command isworking OK with with diffrent format videos but I got this error message for one of the MOV videos</p>
  
  <pre><code>Could not write header for output file #0 (incorrect codec parameters ?): Invalid argument
  </code></pre>
  
  <p>and these are the warnings I got before the error message</p>
  
  <pre><code>[swscaler @ 0x47adf20] deprecated pixel format used, make sure you did set range correctly
  
  [mp4 @ 0x4729540] Codec for stream 1 does not use global headers but container format requires global headers
  [mp4 @ 0x4729540] Could not find tag for codec pcm_s16le in stream #1, codec not currently supported in container
  </code></pre>