Answers.Body: <p>Concatenate can be found from <a href="https://trac.ffmpeg.org/wiki/Concatenate" rel="nofollow noreferrer">this link</a></p>
  <p>In case of using same codec</p>
  <pre><code>!echo &quot;file 'video_1.mp4'&quot; &gt; list.txt
  !echo &quot;file 'video_2.mp4'&quot; &gt;&gt; list.txt
  </code></pre>
  <p>Add watermark at (x=1, y=1) coordinated</p>
  <pre><code>!ffmpeg -y -f concat -safe 0 -i list.txt -i watermark.png -filter_complex &quot;overlay=1:1&quot; output.mp4
  </code></pre>
  <p>I don't quite understand your description, but i think it fits your title.</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2020-09-05T09:42:35.287Z
Answers.LastActivityDate: 2020-09-05T09:42:35.287Z
Answers.UserDisplayName: xer-rex
Body: <p>I have a Video #1, it has audio. Also I have a Video #2, with audio too. I would like to concat the #1 and #2 (or play #1 first, and then #2) and then add a watermark in #1 for the rest of the video, preserving audio timestamps.</p>
  <p>I used this command but the watermark appears on the #2 video?</p>
  <pre><code>ffmpeg -i Video1.mp4 -i Video2.mp4 -i watermark.png
     -filter_complex
         &quot;[1][2]overlay=5:5[v2];
          [0][0:a][v2][1:a]concat=n=2:v=1:a=1&quot;
     -c:v libx264 -crf 21 -c:a aac -b:a 384k -ar 48000 -movflags  faststart Out.mp4
  </code></pre>
  
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2020-08-31T17:48:24.227Z
Comments.Text: Please don't make more work for other people by vandalizing your posts. By posting on the Stack Exchange (SE) network, you've granted a non-revocable right, under the [CC BY-SA 4.0 license](https://creativecommons.org/licenses/by-sa/4.0) for SE to distribute that content. By SE policy, any vandalism will be reverted. If you want to know more about deleting a post, consider taking a look at: [How does deleting work](https://meta.stackexchange.com/q/5221/295232)?
Comments.UserDisplayName: Glorfindel
Tags: <video><ffmpeg><linux>
Title: Concat 2 video and add watermark first video ffmpeg
UserDisplayName: cleanguy
ThreadText: # Concat 2 video and add watermark first video ffmpeg
  
  (Asked by: username_0 on 2020-08-31)
  
  I have a Video #1, it has audio. Also I have a Video #2, with audio too. I would like to concat the #1 and #2 (or play #1 first, and then #2) and then add a watermark in #1 for the rest of the video, preserving audio timestamps.
  
  I used this command but the watermark appears on the #2 video?
  
  ```
  ffmpeg -i Video1.mp4 -i Video2.mp4 -i watermark.png
     -filter_complex
         "[1][2]overlay=5:5[v2];
          [0][0:a][v2][1:a]concat=n=2:v=1:a=1"
     -c:v libx264 -crf 21 -c:a aac -b:a 384k -ar 48000 -movflags  faststart Out.mp4
  
  ```
  
  **Tags:** video, ffmpeg, linux
  
  > **Comments:**
  > **username_1**: Please don't make more work for other people by vandalizing your posts. By posting on the Stack Exchange (SE) network, you've granted a non-revocable right, under the [CC BY-SA 4.0 license](https://creativecommons.org/licenses/by-sa/4.0) for SE to distribute that content. By SE policy, any vandalism will be reverted. If you want to know more about deleting a post, consider taking a look at: [How does deleting work](https://meta.stackexchange.com/q/5221/295232)?  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_2 on 2020-09-05. Score: 1
  
  Concatenate can be found from [this link](https://trac.ffmpeg.org/wiki/Concatenate)
  
  In case of using same codec
  
  ```
  !echo "file 'video_1.mp4'" > list.txt
  !echo "file 'video_2.mp4'" >> list.txt
  
  ```
  
  Add watermark at (x=1, y=1) coordinated
  
  ```
  !ffmpeg -y -f concat -safe 0 -i list.txt -i watermark.png -filter_complex "overlay=1:1" output.mp4
  
  ```
  
  I don't quite understand your description, but i think it fits your title.
  
  
  ---
  
  