chriswiggins / rtsp-streaming-server

Lightweight RTSP/RTP streaming media server written in Javascript
GNU General Public License v3.0
106 stars 21 forks source link

Examples unclear #22

Closed RobotnickIsrael closed 3 years ago

RobotnickIsrael commented 3 years ago

Hello, From what I seen on the docs, Everytime I do "start" I'm creating a new server. How do I create one server (one port) with X paths, where every path goes to a different ffmpeg announce server? (Is it possible using ffmpeg cli to create multiple announces with different paths on the same port but different path? I guess not)

The docs say it supports many publishers, but I didn't see any documentation about it :\

Thanks, Israel

RobotnickIsrael commented 3 years ago

To whom ever sees this, it is possible to announce as many paths as you wish, with different ffmpeg instances, on the same port. Meaning ffmpeg -i .mp4 -c:v copy -f rtsp rtsp://127.0.0.1:/stream1 and then another ffmpeg -i .mp4 -c:v copy -f rtsp rtsp://127.0.0.1:/stream2

And you will be able to connect to either of them using their path. The RTSP server is created only once with publish port