Skip to content

sgeisbacher/rtmp-delay-screen

Repository files navigation

RTMP Delay Screen

idea

olympic weightlifters need to constantly review and analyse their lifting attempts while training. but a live stream to the gym's TV isn't helpful, cause while performing they need to focus on the execution and form of the lift. so rtmp-delay-screen records the stream and replays it on a certain delay.

illustration

how it works

rtmp-delay-screen ...

  • can be installed on a raspberry-pi, which is connected (via HDMI) to a TV or any other screen.
  • acts like an RMTP-Server that you can use as a server in your favourite video-streaming-client-app, like IPCam Lite.
  • records and stores the stream via an in-memory ring-buffer
  • boots up a chromium instance in fullscreen kiosk mode to act, via an html5-video-tag, as a player. this makes it way easier to "inject" infos to the video-feed via javascript, and so avoids re-rendering.
  • the stream is re-streamed to the chromium-instance via webRTC
  • starts an admin-interface to adjust the delay and other parameters

start browser

open chrome-browser with

--autoplay-policy=no-user-gesture-required

otherwise autoplay of the video wont work

setup raspberry-pi

make setup

build and deploy server-app

go mod tidy
make build
make deploy

develop

run build in watchmode

make run-web-gen
make run

About

Rtmp-Server to show a delayed stream on a TV! only exciting for olympic-weightlifters ;-)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published