Skip to content

Instantly share code, notes, and snippets.

View r3n33's full-sized avatar
💧
Working on something new!

Renee r3n33

💧
Working on something new!
View GitHub Profile
@r3n33
r3n33 / gist:acaa8110c9c11b2a7d865e62ef29a320
Last active June 30, 2019 20:32
LetsRobot.tv Video Overlay

Letsrobot.tv / Run My Robot Overlay Guide

  • Both of these methods expect a PNG image with transparency to be the same size as your video feed ( 640x480 by default ). It is possible to blend images at different resolutions with alternate commands but beyond the scope of this document.

Static video overlay

  • Requires no modification to FFMPEG
  • Add overlayCommand and change the videoCommandLine in send_video.py:

staticOverlayCommand = '-f image2 -i /home/pi/runmyrobot/images/hud.png -filter_complex "[0:v]format=argb,geq=r=\'r(X,Y)\':g=\'g(X,Y)\':b=\'b(X,Y)\':a=\'0.7*alpha(X,Y)\'[overlay]; [1:v][overlay]overlay"'