AlexxIT / go2rtc

Ultimate camera streaming application with support RTSP, RTMP, HTTP-FLV, WebRTC, MSE, HLS, MP4, MJPEG, HomeKit, FFmpeg, etc.
https://github.com/AlexxIT/Blog
MIT License
4.3k stars 353 forks source link

image overlay over reolink stream #995

Open wspatgithub opened 6 months ago

wspatgithub commented 6 months ago

Hi,

after struggeling around for hours, I kindly ask for your help:

I have several Reolink cameras and figured out how to access them via go2rtc. What I am not able is to place my own litte logo on top of a stream. My logo is placed in the /config folder of my docker path where go2rtc lives.

I tried with no success this :

  CamAZI_klein1:
     - http://192.168.30.249:11780/cgi-bin/api.cgi?cmd=Snap&channel=0&rs=wuuPhkmUCeI9WG7C&user=myuser&password=mypassword&width=640&height=480
     - ffmpeg -i:CamAZI_klein1#video=copy -i /config/logo_wms.png -filter_complex "overlay=10:10"

I also tried with rtsp

  CamAZI_klein2:
    - rtsp://myuser:mypassword@192.168.30.249:554/h264Preview_01_sub
    - ffmpeg -i:CamAZI_klein2#video=copy -i /config/logo_wms.png -filter_complex "overlay=10:10"

and with onvif

  CamAZI_klein3: onvif://myuser:mypassword@192.168.30.249:8000?subtype=001&snapshot
     - ffmpeg -i:CamAZI_klein3 -i /config/logo_wms.png -filter_complex "overlay=10:10"   

All streams are running but no overlay is shown. Can anyone please help?

Thanks Wolfgang

AlexxIT commented 6 months ago
  1. All your examples wrong. You need to check how to use ffmpeg source carefully
  2. You can't change video (add overlay) without changing video (copy mode).