-
Notifications
You must be signed in to change notification settings - Fork 26
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
Issue with RTMP Encoder Compatibility #170
Comments
The parsing of the RTMP URL happens here - This PHP file is provided as an example, you can (and should...) change it to fit your use case. Notice that it has several open TODOs, like adding an authentication logic for RTMP connect requests. So, you can change this chunk of code to do -
But you should take into account, that making this change effectively means you won't be able to publish more than one video track and one audio track per channel. An RTMP stream can have at most one video and one audio, and if channel = stream, it means the channel will also be limited to one video and one audio input. |
Hello there, It's working, but there is a problem. We have created 2 applications: one for live and another for testing, as shown below: server {
Then, we have published 2 streams to the following endpoint: rtmp://localhost/live/stream The issue is that both streams from live and testing are being saved in the same location (/tmp/store/channel), causing a conflict. Is there any way to save both streams in different locations, so that we can create separate streams under "live" and "test" categories? like: /tmp/store/channel/live/stream and /tmp/store/channel/testing/stream ? Hope to hear from you soon. |
It's not just the store, you can't have multiple connections to the same track... but what you can do is use different channel ids for the two applications. For example, if you now have
Naturally you will have to change the channel name when playing the stream as well. |
Hello there, Thank you for the update, everything is working fine now. Your prompt assistance is truly appreciated. I have a quick question regarding the application for RTMP. Currently, I have created two applications named "live" and "testing." However, I wanted to inquire if there are any limitations on the number of applications we can create using the media-framework. Our current media server already hosts approximately 1000+ applications. Do we need to change any settings? as per the doc "All stateful nginx-based components (=all except nginx-pckg-module), must be deployed on a single process nginx server (worker_processes 1;)" does this cause any performance issue? Looking forward to your response. |
From what I see, when getting a |
Hello there,
Currently, we are using Wowza and Nimble media servers. Both of these media servers are using the following format:
Wowza: rtmp://server:1935/application/stream
Nimble: rtmp://server:1935/application/stream
but the media-framework requires a slightly different format, as follows:
rtmp://server:1935/application/{channel}_{stream}
We are wondering if there is any option to change the format to something like:
rtmp://server:1935/application/{channel}
We hope to hear from you soon! Thank you.
The text was updated successfully, but these errors were encountered: