Skip to content

Instantly share code, notes, and snippets.

View RyAndrew's full-sized avatar
🎯
Focusing

Andrew Ry RyAndrew

🎯
Focusing
View GitHub Profile

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"'

@RyAndrew
RyAndrew / setup.sh
Created May 5, 2019 20:49 — forked from jkatz/setup.sh
Install PostgreSQL 10 & pgAdmin 4 with Docker
#!/bin/bash
mkdir postgres
cd postgres
docker volume create --driver local --name=pgvolume
docker volume create --driver local --name=pga4volume
docker network create --driver bridge pgnetwork
@RyAndrew
RyAndrew / ffmpeg-jsmpeg-test.md
Created January 4, 2019 16:17 — forked from keijiro/ffmpeg-jsmpeg-test.md
FFmpegOut streaming test setup steps