-
Notifications
You must be signed in to change notification settings - Fork 23
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unhandled promise rejection (rejection id: 1): Error: Mount does not exist #13
Comments
Hmmmm. Strange @anuranBarman! Can you show your JS source so I can have a look? |
I am justing using the demo source you have provided:
|
I have the same issue. Also using javascript. I push the video stream with gstreamer using this command:
I also use the example in README. Get the same error:
|
It seems like the whole rtsp protocol is not implemented. The missing commands are ANNOUNCE, RECORD, GET_PARAMETER, SET_PARAMETER and REDIRECT. From ClientServer.ts this.server = createServer((req: RtspRequest, res: RtspResponse) => {
debug('%s:%s request: %s', req.socket.remoteAddress, req.socket.remotePort, req.method);
switch (req.method) {
case 'DESCRIBE':
return this.describeRequest(req, res);
case 'OPTIONS':
return this.optionsRequest(req, res);
case 'SETUP':
return this.setupRequest(req, res);
case 'PLAY':
return this.playRequest(req, res);
case 'TEARDOWN':
return this.teardownRequest(req, res);
default:
console.error('Unknown ClientServer request', { method: req.method, url: req.url });
res.statusCode = 501; // Not implemented
return res.end();
}
}); See rtsp protocol |
@Gronis you’re looking at the wrong file. The ClientServer and PublishServer have different protocol support.
Based on your output, you’re sending your stream to the wrong port. Clients need to connect on the client port, and streams need to be published to the server port. Your command needs to be: Take note of the port. I’ll double check the example with Gstreamer myself this morning and get back to you |
@Gronis this is working for me - Can you please try with the correct port and let me know if you're still having issues? |
Yea, I finally got it working yesterday. I had the ports mixed up. But I also have other problems related to my environment. I think it's safe to say that this problem was me using incorrect ports. |
ffmpeg -f avfoundation -i "1:0" -vcodec libx264 -r 25 -s 1280x720 -f rtsp rtsp://127.0.0.1:5554/test |
I am trying to use this in NodeJS application. But getting the following error when trying to play the stream from VLC. the ffmpeg command also mentioned in the README
(
ffmpeg -i demo.mp4 -c:v copy -f rtsp rtsp://127.0.0.1:5554/stream1
) is executing but stopping after showing the metadata options. The error I am getting is below:The text was updated successfully, but these errors were encountered: