flaviostutz / rtsp-relay

RTSP server for ffmpeg sources
MIT License
61 stars 16 forks source link

rtsp-relay

RTSP stream relay server with codec passthrough, so that no encoding will take place and low CPU will be used.

Any input URL handled by ffmpeg can be used, but keep in mind that no transcoding will take place to the output rtsp stream.

Multiple clients can connect to the same stream.

This is based on ffmpeg, https://github.com/aler9/rtsp-simple-server and https://github.com/aler9/rtsp-simple-proxy.

Exposed ports:

Usage

version: '3.7'

services:

  rtsp-relay:
    image: flaviostutz/rtsp-relay
    ports:
      - 8554:8554
    restart: always
    environment:
        - SOURCE_URL=http://ip-thomasmarina.greatlakescam.com/user/cgi-bin/getstream.cgi?10&&&&0&0&0&0&0

ENVs

Tips

  rtsp-relay:
    image: flaviostutz/rtsp-relay
    ports:
        - 8554:8554
    environment:
        - SOURCE_URL=file:///samples/cars1.mp4
    volumes:
        - ./samples:/samples