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

Unable to read from VLC - experience server crash #40

Open bouviervj opened 1 year ago

bouviervj commented 1 year ago

Hi,

On a basic server implementation, I can't get a VLC client to connect to the server, and the server crashes (Windows). Server code:

const RtspServer = require('rtsp-streaming-server').default;

const server = new RtspServer({
    serverPort: 5554,
    clientPort: 6554,
    rtpPortStart: 10000,
    rtpPortCount: 10000
});

async function run () {
   try { 
     await server.start();
   } catch (e) { 
     console.error(e);
   }
}

run();

The stream comes from FFMPEG - only Video H264 encoding - here is my app streaming on rtsp://localhost:5554/stream1:

video-stream

When connecting VLC on address: 'rtsp://localhost:6554/stream1' rtsp_vlc I get rejected - and the server crashes:

rtsp-server-crash

Not sure where I should look at, thanks !

CamiloPenagos99 commented 2 months ago

any updates?