Answers.Body: <p>The video format should be changed to rgb by adding format=gbrp before blending, i.e. the filter_complex command should read:</p>
  <pre><code>[0:v]format=gbrp[a];[a][1:v]overlay=x=main_w-overlay_w-(main_w*0.011):y=main_h*0.02
  </code></pre>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2024-05-08T17:57:28.507Z
Answers.LastActivityDate: 2024-05-08T17:57:28.507Z
Answers.UserDisplayName: SkepticaLee
Body: <p>I ran into such a problem with hls streaming, adding filters to the overlay logo, but it was smeared with pink and green stripes. Has anyone come across this.</p>
  <p><code>ffmpeg -f concat -safe 0 -re -i &lt;(for f in *.mp4; do echo &quot;file '$PWD/$f'&quot;; done) \ -i /opt/metal-country_ru/logo-full.png \ -filter_complex &quot;[0:v][1:v]overlay=x=main_w-overlay_w-(main_w*0.011):y=main_h*0.02&quot; \ -f hls -hls_time 4 -hls_playlist_type event /opt/metal-country_ru/live/stream.m3u8\</code><a href="https://i.sstatic.net/XFlfq.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/XFlfq.png" alt="enter image description here" /></a></p>
  
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2023-07-28T06:50:59.257Z
Comments.Text: Does the overlay look like that throughout the output video?
Comments.UserDisplayName: Gyan
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2023-07-30T02:05:46.603Z
Comments.Text: "Does the overlay look like that throughout the output video?"
  YES
Comments.UserDisplayName: Metal-Country
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2023-07-30T04:16:22.817Z
Comments.Text: Add -report and rerun for a few seconds. Verify output has the issue, and share report.
Comments.UserDisplayName: Gyan
Tags: <ffmpeg><streaming><hls>
Title: Pink and green color on overlay logo
UserDisplayName: Metal-Country
ThreadText: # Pink and green color on overlay logo
  
  (Asked by: username_0 on 2023-07-27)
  
  I ran into such a problem with hls streaming, adding filters to the overlay logo, but it was smeared with pink and green stripes. Has anyone come across this.
  
  `ffmpeg -f concat -safe 0 -re -i <(for f in *.mp4; do echo "file '$PWD/$f'"; done) \ -i /opt/metal-country_ru/logo-full.png \ -filter_complex "[0:v][1:v]overlay=x=main_w-overlay_w-(main_w*0.011):y=main_h*0.02" \ -f hls -hls_time 4 -hls_playlist_type event /opt/metal-country_ru/live/stream.m3u8\`[![enter image description here](https://i.sstatic.net/XFlfq.png)](https://i.sstatic.net/XFlfq.png)
  
  **Tags:** ffmpeg, streaming, hls
  
  > **Comments:**
  > **username_1**: Does the overlay look like that throughout the output video?  
  > **username_0**: "Does the overlay look like that throughout the output video?" YES  
  > **username_1**: Add -report and rerun for a few seconds. Verify output has the issue, and share report.  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_2 on 2024-05-08. Score: 0
  
  The video format should be changed to rgb by adding format=gbrp before blending, i.e. the filter\_complex command should read:
  
  ```
  [0:v]format=gbrp[a];[a][1:v]overlay=x=main_w-overlay_w-(main_w*0.011):y=main_h*0.02
  
  ```
  
  
  ---
  
  