Answers.Body: <p><strong>Edited</strong> to change to additive blend.</p>
  
  <p>Use</p>
  
  <p><code>ffmpeg -loop 1 -i mic720x1280.png -i waves5.mp4 -filter_complex "color=0x000000@0,format=gbrap[bg];[0]format=gbrap,drawtext=fontfile=Montserrat-Bold.ttf: text='Hello': fontcolor=white: fontsize=44: box=1: boxcolor=black@0.5: boxborderw=10: x=(w-text_w)/2: y=100,setsar=1[img];[bg][img]scale2ref[bg][img];[bg]setsar=1[bg];[1]scale=500:-1,format=gbrap[vid];[bg][vid]overlay=70:70:format=rgb[vidbl];[vidbl][img]blend=all_mode=addition" -c:v libx264 -t 15 -pix_fmt yuv420p myvid.mp4</code></p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2019-04-01T22:36:06.160Z
Answers.Text: Hi, thankyou so much, this is fantastic, however finally how do I make the last [img][vid] an  additive composite blend rather than a plain overlay?
Answers.UserDisplayName: user3342298
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2019-04-01T22:36:20.117Z
Answers.Text: (thanks for your wonderful help though :) )
Answers.UserDisplayName: user3342298
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2019-04-01T09:00:59.327Z
Answers.LastActivityDate: 2019-04-02T04:52:25.180Z
Answers.LastEditDate: 2019-04-02T04:52:25.180Z
Answers.UserDisplayName: Gyan
Body: <p>I'm trying to work out how to combine both features of the following in one -filter_complex statement in order to take an image, write some text on it, and then do an additive composite of a small video to an area of the image.  Every time I try to combine these two things it doesn't work! </p>
  
  <pre><code>ffmpeg -loop 1 -i mic720x1280.png -vf drawtext="fontfile=Montserrat-Bold.ttf: text='Hello': fontcolor=white: fontsize=44: box=1: boxcolor=black@0.5: boxborderw=10: x=(w-text_w)/2: y=100" -c:v libx264 -t 15 -pix_fmt yuv420p myvid.mp4
  </code></pre>
  
  <pre><code>-vf "movie=waves5.mp4, scale=500:-1 [inner]; [in][inner] overlay=70:70 [out]"
  </code></pre>
  
Tags: <ffmpeg><video-editor>
Title: FFMpeg -filter_complex to place a video in a window on a larger image with text
UserDisplayName: user3342298
ThreadText: # FFMpeg -filter_complex to place a video in a window on a larger image with text
  
  (Asked by: username_0 on 2019-04-01)
  
  I'm trying to work out how to combine both features of the following in one -filter\_complex statement in order to take an image, write some text on it, and then do an additive composite of a small video to an area of the image. Every time I try to combine these two things it doesn't work!
  
  ```
  ffmpeg -loop 1 -i mic720x1280.png -vf drawtext="fontfile=Montserrat-Bold.ttf: text='Hello': fontcolor=white: fontsize=44: box=1: boxcolor=black@0.5: boxborderw=10: x=(w-text_w)/2: y=100" -c:v libx264 -t 15 -pix_fmt yuv420p myvid.mp4
  
  ```
  
  ```
  -vf "movie=waves5.mp4, scale=500:-1 [inner]; [in][inner] overlay=70:70 [out]"
  
  ```
  
  **Tags:** ffmpeg, video-editor
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_1 on 2019-04-01. Score: 1
  
  **Edited** to change to additive blend.
  
  Use
  
  `ffmpeg -loop 1 -i mic720x1280.png -i waves5.mp4 -filter_complex "color=0x000000@0,format=gbrap[bg];[0]format=gbrap,drawtext=fontfile=Montserrat-Bold.ttf: text='Hello': fontcolor=white: fontsize=44: box=1: boxcolor=black@0.5: boxborderw=10: x=(w-text_w)/2: y=100,setsar=1[img];[bg][img]scale2ref[bg][img];[bg]setsar=1[bg];[1]scale=500:-1,format=gbrap[vid];[bg][vid]overlay=70:70:format=rgb[vidbl];[vidbl][img]blend=all_mode=addition" -c:v libx264 -t 15 -pix_fmt yuv420p myvid.mp4`
  
  > **Comments:**
  > **username_0**: Hi, thankyou so much, this is fantastic, however finally how do I make the last [img][vid] an  additive composite blend rather than a plain overlay?  
  > **username_0**: (thanks for your wonderful help though :) )  
  
  ---
  
  