Tutorials
OBS Streaming

OBS Studio Streaming

Learn how to stream to your ingress endpoint using OBS Studio.

Prerequisites

Step 1: Create an Ingress

Generate an ingress endpoint using the API or curl:

curl -X POST https://live-api.block8910.com/api/ingress/generate \
  -H "Content-Type: application/json" \
  -H "x-api-key: YOUR_API_KEY" \
  -d '{
    "roomName": "obs-stream",
    "participantName": "OBS Broadcast"
  }'

Note the response values:

  • Server URL: rtmp://rtmp.block8910.com:1935/x
  • Stream Key: aAXevUYwfj9K (your actual key)

Step 2: Configure OBS

Open Stream Settings

  1. Open OBS Studio
  2. Go to SettingsStream

Enter Server Details

SettingValue
ServiceCustom...
Serverrtmp://rtmp.block8910.com:1935/x
Stream KeyYour stream key from the API response

OBS Stream Settings

Step 3: Configure Output Settings

Go to SettingsOutputStreaming

Recommended Settings

SettingValue
Encoderx264 (or NVENC if available)
Rate ControlCBR
Bitrate2500-4500 kbps
Keyframe Interval2 seconds
Presetveryfast or fast

For 1080p Streaming

SettingValue
Bitrate4500 kbps
Resolution1920x1080
FPS30 or 60

For 720p Streaming

SettingValue
Bitrate2500 kbps
Resolution1280x720
FPS30

Step 4: Audio Settings

Go to SettingsAudio

SettingValue
Sample Rate48 kHz
ChannelsStereo

Go to SettingsOutputAudio

SettingValue
Audio Bitrate128 kbps (or 192 for better quality)

Step 5: Start Streaming

  1. Click Start Streaming in OBS
  2. Check the status bar at the bottom for connection status
  3. Green square = connected, Red = disconnected

Step 6: Verify Stream

Check if your stream is active:

curl -X GET https://live-api.block8910.com/api/ingress \
  -H "x-api-key: YOUR_API_KEY"

Troubleshooting

"Failed to connect to server"

  • Verify the server URL is correct: rtmp://rtmp.block8910.com:1935/x
  • Check that your stream key is correct
  • Ensure the ingress hasn't expired or been deleted

"Encoding overloaded"

  • Lower the video resolution
  • Use a faster encoder preset
  • Reduce the bitrate
  • Close other applications

High latency

  • Use CBR rate control
  • Set keyframe interval to 2 seconds
  • Reduce buffer size in advanced settings

Quick Reference

QualityResolutionBitratePreset
Low720p301500 kbpsveryfast
Medium720p603000 kbpsfast
High1080p304500 kbpsfast
Ultra1080p606000 kbpsmedium