live streaming with OBS
Hi,
I have my live streaming upload ready and am using a cloudinary url to show it in my app but how do I get the "server" and "stream key" that the stream output of OBS is requesting? I have my upload preset: thestationtv-live setup and that is the url I am using for my apps end point... but how do I get my OBS stream over there? I had it working a year ago or so but its been so long and you've made such great progress. Please enlighten me. I so wish I had the time to take your courses and someday I will but for now... quick fixes is all I have time for because I am a 1 team member company (me).
Here is a screenshot of my OBS...
-
Hi Lori,
Thank you for reaching out.
It looks like you are using RTMP live streaming so once you initialise the RTMP live stream the API, you get a JSON response and the one you need is the `live_input_uri` e.g.
rtmp://3.214.86.161:1935/<cloud_name>/dh8bxtg97t9cns4bddoa_56753701a34f46cdc6a094e7
`rtmp://3.214.86.161:1935/<cloud_name> ` goes to the server field in OBS and the key after that (e.g. `dh8bxtg97t9cns4bddoa_56753701a34f46cdc6a094e7`) goes to stream key field.
I would also recommend going over https://cloudinary.com/documentation/video_live_streaming_rtmp#setup and let us know if you still get stuck.
Please let me know if you have any other questions or queries.
Kind Regards,
Thomas0 -
Hi Thomas,
Thanks for the info but will the key be different every time I re-initialize a live stream?
Also, wouldn't the live output string change as well? If so it means I have to reset OBS not to mention change the output url in my app and check in that code real fast every time I want to go live?
Please advise? For some reason this sounds familiar and why I started looking elsewhere in the past but I really want to get it down to one company and just work with yours.
Thanks
0 -
Hi Lori,
Thank you for getting back.
Yes, that is correct, everytime you initialise a new live stream, the keys and output URL will change.
However, by default, the `max_runtime_sec` is 12 hours per https://cloudinary.com/documentation/video_live_streaming_rtmp#live_streaming_reference so depending on your needs you may extend this so less frequently update your OBS settings.
Please note that if the video from your live stream exceeds your storage limits, the video will not be stored in your account.
Please let me know if you have any other questions or queries.
Kind Regards,
Thomas0
Post is closed for comments.
Comments
3 comments