Answers.Body: <p>The entire filtergraph should be one argument.</p>
  <p><code>'-filter_complex','scale=1920:1080[main];[main][1]overlay=x=main_w-overlay_w-(main_w*0.01):y=main_h-overlay_h-(main_h*0.01)',</code></p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2021-05-14T13:43:19.903Z
Answers.Text: Hey, thanks a lot for the response, it works well now. Is `[main]` a keyword like variable or just a naming one? Could you also tell me how can I decrease the size of the logo image?
  Thanks.
Answers.UserDisplayName: prehistoricbeast
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2021-05-14T17:43:25.320Z
Answers.Text: It's a linklabel. See last para at https://superuser.com/a/1172501/
Answers.UserDisplayName: Gyan
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2021-05-14T09:41:07.207Z
Answers.LastActivityDate: 2021-05-14T09:41:07.207Z
Answers.UserDisplayName: Gyan
Body: <p>Hey guys I want to add a logo to my video with ffmpeg but I am getting this error while running the below command. What is the reason? Please do help.</p>
  <pre><code>`Unable to find a suitable output format for 'overlay=x=main_w-overlay_w-(main_w*0.01):y=main_h-overlay_h-(main_h*0.01)' overlay=x=main_w-overlay_w-(main_w*0.01):y=main_h-overlay_h-(main_h*0.01): Invalid argument.`
  </code></pre>
  <p>I am using python subprocess to run ffmpeg commands.</p>
  <pre><code>subprocess.call([settings.VIDEO_ENCODING_FFMPEG_PATH, '-i', input_file_path,
                  '-i', logo_path, '-filter_complex','scale=1920:1080',
                  'overlay=x=main_w-overlay_w-(main_w*0.01):y=main_h-overlay_h-(main_h*0.01)',
                  '-codec:v', 'libx264','-crf', '18',
                  '-preset', 'slow', '-b:v', '1000k', '-maxrate', '2000k', '-bufsize', '2000k',
                  &quot;-pix_fmt&quot;, &quot;yuv420p&quot;,
                  '-codec:a', 'aac', '-b:a', '128k', '-strict', '-2', output_file_path])
  </code></pre>
  <p>Thanks</p>
  
Tags: <video><ffmpeg><video-editor><ffprobe>
Title: FFmpeg: Getting this error while trying to add a logo to video (Unable to find a suitable output format for ..)
UserDisplayName: prehistoricbeast
ThreadText: # FFmpeg: Getting this error while trying to add a logo to video (Unable to find a suitable output format for ..)
  
  (Asked by: username_0 on 2021-05-14)
  
  Hey guys I want to add a logo to my video with ffmpeg but I am getting this error while running the below command. What is the reason? Please do help.
  
  ```
  `Unable to find a suitable output format for 'overlay=x=main_w-overlay_w-(main_w*0.01):y=main_h-overlay_h-(main_h*0.01)' overlay=x=main_w-overlay_w-(main_w*0.01):y=main_h-overlay_h-(main_h*0.01): Invalid argument.`
  
  ```
  
  I am using python subprocess to run ffmpeg commands.
  
  ```
  subprocess.call([settings.VIDEO_ENCODING_FFMPEG_PATH, '-i', input_file_path,
                  '-i', logo_path, '-filter_complex','scale=1920:1080',
                  'overlay=x=main_w-overlay_w-(main_w*0.01):y=main_h-overlay_h-(main_h*0.01)',
                  '-codec:v', 'libx264','-crf', '18',
                  '-preset', 'slow', '-b:v', '1000k', '-maxrate', '2000k', '-bufsize', '2000k',
                  "-pix_fmt", "yuv420p",
                  '-codec:a', 'aac', '-b:a', '128k', '-strict', '-2', output_file_path])
  
  ```
  
  Thanks
  
  **Tags:** video, ffmpeg, video-editor, ffprobe
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_1 on 2021-05-14. Score: 1 | Accepted answer
  
  The entire filtergraph should be one argument.
  
  `'-filter_complex','scale=1920:1080[main];[main][1]overlay=x=main_w-overlay_w-(main_w*0.01):y=main_h-overlay_h-(main_h*0.01)',`
  
  > **Comments:**
  > **username_0**: Hey, thanks a lot for the response, it works well now. Is `[main]` a keyword like variable or just a naming one? Could you also tell me how can I decrease the size of the logo image? Thanks.  
  > **username_1**: It's a linklabel. See last para at https://superuser.com/a/1172501/  
  
  ---
  
  