Answers.Body: <p>Use the <a href="https://ffmpeg.org/ffmpeg-filters.html#overlay" rel="nofollow noreferrer">overlay</a> video filter:</p>
  
  <pre><code>find "/video path" -name "*.mp4" | xargs -I $ "/ffmpeg path" -y -re -i $ -i watermark.png -filter_complex overlay -c:a copy -f flv rtmp://xxx.xxx.xx/live/
  </code></pre>
  
  <p>You can't filter video (<code>-filter_complex</code> or <code>-vf</code>) and stream copy (<code>-vcodec copy</code>) the same stream. If you try you'll get an error:</p>
  
  <blockquote>
    <p>Streamcopy requested for output stream 0:0, which is fed from a
    complex filtergraph. Filtering and streamcopy cannot be used together</p>
  </blockquote>
  
  <p>So remove <code>-vcodec copy</code> when filtering the video.</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2020-01-07T22:29:41.610Z
Answers.Text: Thanks for your response but the syntax did not work for me i use the below syntax 
  
  
  find "/video path" -name "*.mp4" | xargs -I $ "/ffmpeg path" -y -re -i $ -i "Path of the logo.png" -filter_complex overlay -vcodec copy -acodec copy -dts_delta_threshold 1000 -ar 44100 -ab 32k -f flv rtmp://xxx.xxx.xx/live/
  
  i did not get any error but syntax looks incorrect
Answers.UserDisplayName: swr
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2020-01-08T00:16:09.580Z
Answers.Text: @swr You should have gotten the error "Streamcopy requested for output stream 0:0, which is fed from a complex filtergraph. Filtering and streamcopy cannot be used together". You can't use `-vcodec copy` and `-filter_complex` on the same stream. Remove `-vcodec copy` as shown in my answer.
Answers.UserDisplayName: llogan
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2020-01-06T19:50:26.580Z
Answers.LastActivityDate: 2020-01-08T00:19:25.800Z
Answers.LastEditDate: 2020-01-08T00:19:25.800Z
Answers.UserDisplayName: llogan
Body: <p>I am trying to execute this commands in FFmpeg and it is working. Now I want to add logo to this live stream. How to do that?</p>
  
  <pre><code>find "/video path" -name "*.mp4" | xargs -I $ "/ffmpeg path" -y -re -i $ -vcodec copy -acodec copy -dts_delta_threshold 1000 -ar 44100 -ab 32k -f flv  rtmp://xxx.xxx.xx/live/
  </code></pre>
  
Tags: <ffmpeg>
Title: FFmpeg add logo watermark to live stream
UserDisplayName: swr
ThreadText: # FFmpeg add logo watermark to live stream
  
  (Asked by: username_0 on 2020-01-06)
  
  I am trying to execute this commands in FFmpeg and it is working. Now I want to add logo to this live stream. How to do that?
  
  ```
  find "/video path" -name "*.mp4" | xargs -I $ "/ffmpeg path" -y -re -i $ -vcodec copy -acodec copy -dts_delta_threshold 1000 -ar 44100 -ab 32k -f flv  rtmp://xxx.xxx.xx/live/
  
  ```
  
  **Tags:** ffmpeg
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_1 on 2020-01-06. Score: 1
  
  Use the [overlay](https://ffmpeg.org/ffmpeg-filters.html#overlay) video filter:
  
  ```
  find "/video path" -name "*.mp4" | xargs -I $ "/ffmpeg path" -y -re -i $ -i watermark.png -filter_complex overlay -c:a copy -f flv rtmp://xxx.xxx.xx/live/
  
  ```
  
  You can't filter video (`-filter_complex` or `-vf`) and stream copy (`-vcodec copy`) the same stream. If you try you'll get an error:
  
  > Streamcopy requested for output stream 0:0, which is fed from a
  > complex filtergraph. Filtering and streamcopy cannot be used together
  
  So remove `-vcodec copy` when filtering the video.
  
  > **Comments:**
  > **username_0**: Thanks for your response but the syntax did not work for me i use the below syntax    find "/video path" -name "*.mp4" | xargs -I $ "/ffmpeg path" -y -re -i $ -i "Path of the logo.png" -filter_complex overlay -vcodec copy -acodec copy -dts_delta_threshold 1000 -ar 44100 -ab 32k -f flv rtmp://xxx.xxx.xx/live/  i did not get any error but syntax looks incorrect  
  > **username_1**: @username_0 You should have gotten the error "Streamcopy requested for output stream 0:0, which is fed from a complex filtergraph. Filtering and streamcopy cannot be used together". You can't use `-vcodec copy` and `-filter_complex` on the same stream. Remove `-vcodec copy` as shown in my answer.  
  
  ---
  
  