Encoder Setup
Encoder Setup
AntCDN accepts live video via RTMP. Any software or hardware encoder that supports RTMP will work.
Ingest Endpoint
| Protocol | Address |
|---|---|
| RTMP | rtmp://ingest.antcdn.net/live |
Get your stream key from the dashboard (Live Streams → Manage → Connect your encoder) or via the API.
OBS Studio
- Open OBS → Settings → Stream
- Set Service to
Custom… - Server:
rtmp://ingest.antcdn.net/live - Stream Key:
<your-stream-key> - Click OK → Start Streaming
FFmpeg
ffmpeg -re -i input.mp4 \ -c:v libx264 -preset veryfast -b:v 3000k \ -c:a aac -b:a 128k \ -f flv "rtmp://ingest.antcdn.net/live/<your-stream-key>"Recommended Encoder Settings
| Setting | Recommended value |
|---|---|
| Video codec | H.264 (x264) |
| Audio codec | AAC |
| Keyframe interval | 2 seconds |
| Rate control | CBR |
| Bitrate | 2500–6000 kbps (depends on quality preset) |
| Audio bitrate | 128–192 kbps |
| Resolution | Match your quality preset (720p for standard, 1080p for high) |
Verifying the Connection
After clicking Start Streaming:
- The stream state in your dashboard will change from
idle→connecting→live - The HLS playback URL becomes active once the first segments are available (~5–10 seconds)
- If the state stays at
connectingfor more than 30 seconds, check your firewall — port 1935 TCP must be open outbound