Skip to content
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

can work this as proxy rtsp server? #144

Open
Classsic opened this issue May 14, 2020 · 3 comments
Open

can work this as proxy rtsp server? #144

Classsic opened this issue May 14, 2020 · 3 comments

Comments

@Classsic
Copy link

Hi, is possible to launch a ffmpeg command on rtsp request to push to rtsp itself?
Please, I think this will useful to many people.
Thanks for your GREAT project.

@iizukanao
Copy link
Owner

@Classsic Thanks for your message!

Is this what you want to do?

  1. Client requests node-rtsp-rtmp-server to play an RTSP stream.
  2. node-rtsp-rtmp-server immediately launches ffmpeg, then ffmpeg receives a remote RTSP stream from remote server and forwards the stream to the client.
  3. The client receives remote RTSP stream without directly communicating with the remote server.

If so, that's impossible at this time, but that would be a nice new feature.

@Classsic
Copy link
Author

Almost exactly:
Is this what you want to do?

  1. Client requests node-rtsp-rtmp-server to play an RTSP stream.
    2.node-rtsp-rtmp-server immediately launches ffmpeg, then ffmpeg receives a remote RTSP stream from remote server and forwards the stream to the node-rtsp-rtmp-server.
    3.The client receives the stream from the same node-rtsp-rtmp-server ...
    I think if I can enlarge the timeout until ffmpeg can feed the node-rtsp-rtmp-server it can work.
    Is an idea.
    Please if, is possible, please pointme on the code, and I try work around.
    Thanks.

@iizukanao
Copy link
Owner

@Classsic When client requests rtsp://server-ip:80/live/test-stream-id, the client first sends DESCRIBE to server and respondDescribe method in rtsp.coffee is called. You can launch ffmpeg in respondDescribe method and set ffmpeg's output URL to rtmp://localhost/live/your-stream-id. After ffmpeg is properly set up, send a response to the DESCRIBE request. In theory this should work.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants