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

Read a RTSP stream and publish it to a RTMP server #16

Closed
seguidor777 opened this issue Aug 4, 2021 · 5 comments
Closed

Read a RTSP stream and publish it to a RTMP server #16

seguidor777 opened this issue Aug 4, 2021 · 5 comments

Comments

@seguidor777
Copy link

First of all thanks a lot for this amazing effort,
I´m looking for a pure Rust RSTP client library for an IoT project and wondering if it´s possible to read a RTSP stream and publish it to a RTMP server. Can you please let me know if this is possible or if it's any plan to support this?

@scottlamb
Copy link
Owner

My current goal is to support the rtsp half well, staying agnostic of what happens after that (saving to mp4 as in the current example, decoding with ffmpeg, serving with another protocol, etc). I'm not planning to use rtmp myself right now (although who knows, maybe someone will want it in Moonfire NVR).

I see there are at least a couple rtmp crates already. I'm very open to any changes to help interoperate with them. For example, as mentioned in #15 we could have a flag to output H.264 video in Annex B format; a rtmp library might be expecting that. I'd also accept a PR with an example that integrates with a rtmp library, assuming it's reasonably small. How does that sound?

@seguidor777
Copy link
Author

Sounds great, with the rtsp half functionality I'm good, I can encode the frames and post them to RTMP using another crate, is there any you can recommend?

@scottlamb
Copy link
Owner

I haven't tried any of them, but I see the crate rtmp is under recent development which seems promising.

@seguidor777
Copy link
Author

Ok, will take a look. Thanks

@seguidor777
Copy link
Author

Closing as this is not a real issue

@seguidor777 seguidor777 changed the title Can I read a RTSP stream and publish it to a RTMP server? Read a RTSP stream and publish it to a RTMP server Aug 4, 2021
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