This project prevents a livestream dying and instead will display a fallback image.
4.6K
https://github.com/JoshFryOrg/RtmpFallback
This project prevents a livestream dying and instead will display a fallback image.
For example:
INPUT_URL RTMP stream.OUTPUT_URL RTMP stream pointed to channel 2.VA-API with Intel iGPU Example:
services:
rtmp-fallback:
image: 'joshfryup/rtmp-fallback:latest'
container_name: RtmpFallback
restart: unless-stopped
volumes:
- '/yourDirectory:/app:ro'
environment:
- INPUT_URL=rtmp://
- OUTPUT_URL=rtmp://
- LIBVA_DRIVER_NAME=iHD
devices:
- /dev/dri:/dev/dri
You can remove LIBVA_DRIVER_NAME and the devices section if you're not on an iGPU, and use the standard entrypoint.sh in your mounted /app volume.
If you are, you need to rename entrypoint-vaapi.sh to entrypoint.sh and place it in your volume.
On first start before you start streaming, the fallback image can look squished rather than 1920x1080. This goes away when you start streaming.
Content type
Image
Digest
sha256:38979683a…
Size
381.8 MB
Last updated
2 days ago
docker pull joshfryup/rtmp-fallback