SRS is a simple, high-efficiency, real-time media server supporting RTMP, WebRTC, HLS, HTTP-FLV, HTTP-TS, SRT, MPEG-DASH, and GB28181, with codec support for H.264, H.265, AV1, VP9, AAC, Opus, and G.711.
The SRS origin server should start and be ready to receive and serve streams. Check the console output for startup messages.
## Step 3: Verify SRS Registration
Check the proxy logs to confirm SRS has registered itself with the proxy:
The proxy logs are printed to the console where you started the proxy server. Check the terminal running the proxy for messages indicating:
- "Register SRS media server" messages when SRS registers itself with the proxy
The SRS origin server should automatically register itself with the proxy when it starts. Look for successful registration messages in proxy console outputs.
## Step 4: Publish a Test Stream
In a new terminal, publish a test stream using FFmpeg:
> Note: `-stream_loop -1` makes FFmpeg loop the input file infinitely, ensuring the stream doesn't quit after the file ends.
## Step 5: Verify Stream with ffprobe
In another terminal, use ffprobe to verify the stream is working:
**Test RTMP stream:**
```bash
ffprobe rtmp://localhost/live/livestream
```
**Test HTTP-FLV stream:**
```bash
ffprobe http://localhost:8080/live/livestream.flv
```
Both commands should successfully detect the stream and display video/audio codec information. If ffprobe shows stream details without errors, the proxy is working correctly.