Skip to content

17. Twitch Troubleshooting

Troubleshooting issues specific to streaming to Twitch.

17.1 Common Issues

Issue Description
Transcoding Quality Stream looks worse on Twitch than expected, poor video quality
Ingest Server Issues Stream works intermittently, connection failures
Stream Not Appearing OBS shows streaming but nothing appears on Twitch
Debug Logs How to check Twitch-specific logs and error messages

17.2 Transcoding Quality

Issue: Stream looks worse on Twitch than expected

Check: Verify transcoding settings:

grep TWITCH env/relay.env

Solution: Adjust quality settings:

# Increase bitrate
TWITCH_KBITS_PER_VIDEO_FRAME=100  # From 75

# Better encoding quality (more CPU)
TWITCH_X264_PRESET=slow  # From medium

See Twitch Configuration for detailed settings.

17.3 Ingest Server Issues

Issue: Stream works sometimes, fails other times

Check: Test different ingest servers:

# Try different endpoints
TWITCH_ENDPOINT=lax  # Los Angeles
TWITCH_ENDPOINT=ord  # Chicago
TWITCH_ENDPOINT=iad  # Ashburn

Verify connectivity:

docker compose exec relay ping -c 5 live-<endpoint>.twitch.tv

Replace <endpoint> with your chosen endpoint (e.g., jfk, lax, ord).

17.4 Stream Not Appearing

17.4.1 Symptoms

  • OBS shows "Streaming" but stream doesn't appear on Twitch
  • No errors in OBS

17.4.2 Possible Causes

17.4.2.1 1. Service Not Enabled

Check: Look at container logs during startup:

docker compose logs relay | grep -i "configured and enabled"

Expected output:

Twitch configured and enabled.

Solution: If Twitch is missing: - Verify TWITCH_KEY is set in env/relay.env - Restart container after setting the key

17.4.2.2 2. Invalid Stream Key

Check: Look for authentication errors in logs:

docker compose logs relay | grep -i "error\|auth\|publish"

Solution: - Verify stream key is correct in env/relay.env - Check for extra spaces or quotes around key - Get fresh key from Twitch dashboard

17.4.2.3 3. Platform-Specific Issues

  • Verify stream key hasn't expired
  • Check Twitch dashboard for account status
  • Ensure you're not already streaming from another source

17.5 Debug Logs

17.5.1 Enable Detailed Logging

For Twitch-specific issues, check logs:

# Twitch-specific logs
docker compose logs relay | grep -i twitch

17.5.2 Common Log Messages

Success messages:

Twitch configured and enabled.

Error messages:

ERROR: TWITCH_KEY is not set
ERROR: Failed to validate TWITCH_KEY

17.6 See Also