iizukanao / node-rtsp-rtmp-server

RTSP/RTMP/HTTP hybrid server
MIT License
1.1k stars 282 forks source link

Playing live RTSP stream on client side #149

Open nfynt opened 3 years ago

nfynt commented 3 years ago

Hello,

I am trying to setup a local RTSP server that can broadcast to local users (one-to-many fashion). What I have done now is configure the server on a system with serverport as 1934 (to avoid using reserved port). Now I am able to use ffmpeg to send rtsp stream from client machine to the server, but I am not able access livestream of user over VLC on another client! I can get the rtsp stream from file directory but not the livestream.

To publish the rtsp stream:

ffmpeg -re -i test.mp4 -c:v libx264 -preset fast -c:a aac -ab 128k -ar 44100 -f rtsp -muxdelay 0.1 rtsp://x.x.x.x:1934/live/test

On VLC to access the stream:

rtsp://x.x.x.x:1934/live/test

What am I missing here? Below is the server console log, which shows c5 as streaming.

image

Thanks