how does livekit cloud work when trying to use OBS...
# ask-ai
b
how does livekit cloud work when trying to use OBS / stream keys? I am seeing errors on my dashboard that suggest we're trying to connect and it's not working
Copy code
livestream-46b046fa-c725-4142-b766-e1bd1df115cb-14037a69-e191-4c4d-a2cf-544b6440c20e
RM_wRqfsH8BZpF5
Oct 13, 2025, 1:04:43 pm	
0 min
Error
RTMP_INPUT
Get "http://localhost:9191/rtmp/RT_dAMkhQQsUydw?token=7gDaA7TFYLAF":
and I want to be able to use OBS with livekit cloud if possible
t
Thanks for reaching out, Ian. I'm an AI assistant and I'm here to help. Give me a moment while I research this topic.
I'm happy to help you get started with using OBS and LiveKit Cloud! Here’s a simple way to set it up: 1. Open OBS and head over to the Stream settings. Choose the Custom... service from the list. 2. Next, paste the LiveKit Ingress URL into the Server field. 3. Then, enter your stream key in the Stream Key field. You can find both the Ingress URL and the stream key in the
IngressInfo
object that’s returned when you use the CreateIngress API. About the RTMP_INPUT error you mentioned—this often happens if the server doesn’t have enough CPU capacity. LiveKit needs to check that there’s enough CPU available before accepting an RTMP stream, and if the CPU resources aren’t above the set threshold, the stream won’t go through. To fix this, please make sure your LiveKit Cloud deployment has enough resources to handle all the RTMP inputs you expect. It’s a good idea to keep an eye on your server load and tweak your ingress setup or scale up your infrastructure if needed. If you’ve checked all this and the issue still comes up, don’t hesitate to reach out—I’m here to help you get it sorted! Sources: Encoder configuration | LiveKit Docs | test/rtmp.go | Diagnosing Connection Errors with Connection Test Utility | Stream import | LiveKit Docs
b
• what explains this context canceled thing? Get "http://localhost:9191/rtmp/RT_dAMkhQQsUydw?token=7gDaA7TFYLAF": context canceled I am trying to test with ffmpeg on a mac ffmpeg -re -f lavfi -i "color=reds=1280x720r=30" \ -f lavfi -i "anullsrc=r=44100:cl=stereo" \ -vf "drawtext=fontfile=/System/Library/Fonts/Helvetica.ttc:text='Test'fontcolor=whitefontsize=48:x=(w-text_w)/2:y=(h-t ext_h)/2" \ -c:v libx264 -preset veryfast -b:v 2000k -pix_fmt yuv420p -g 60 \ -c:a aac -b:a 128k -ar 44100 \ -f flv "rtmps://legend-trade-y60g95gr.rtmp.livekit.cloud/x/kh2YprWnjNnF"
t
It looks like the "context canceled" error usually happens when the RTMP ingestion pipeline stops a bit earlier than expected. This can be due to timeouts, upstream hiccups, or shutdown signals. Don’t worry, here are some friendly steps to help you troubleshoot: 1. Verify RTMP Source: Please double-check that your RTMP input URL is reachable and actively streaming. You might want to try using
ffplay
or similar tools to see if the stream kicks off quickly. 2. Check Logs: Take a look at your logs for messages like "EOS received" or "pipeline failure"—these can give clues about upstream issues or stream format troubles. 3. Network Connectivity: It’s a good idea to make sure there aren’t any network interruptions, firewall blocks, or DNS problems affecting your RTMP connection. Also, verify that port 1935 (which RTMP uses by default) is open. 4. Stream Stability: Try to confirm that your input stream is stable and encoded in supported formats, like H.264 for video and AAC or Opus for audio. 5. Timeouts: Keep in mind, the pipeline has a 10-second creation timeout. If your RTMP source takes a bit longer to respond, this might cause the error. Looking at your
ffmpeg
command, double-check that your RTMP URL and stream key are spot on, and that your stream starts without delay. If you’d like, I’m here to help you through any of these steps—just let me know! Sources: Universal Egress | pkg/media/input.go | Diagnosing Connection Errors with Connection Test Utility