|
|
@ -22,11 +22,15 @@ step 2: start srs <br/>
|
|
|
|
<pre>
|
|
|
|
<pre>
|
|
|
|
./objs/simple_rtmp_server -c conf/srs.conf
|
|
|
|
./objs/simple_rtmp_server -c conf/srs.conf
|
|
|
|
</pre>
|
|
|
|
</pre>
|
|
|
|
step 3(optional): start nginx for HLS <br/>
|
|
|
|
step 3(optinal): start srs listen at 19350 for forward<br/>
|
|
|
|
|
|
|
|
<pre>
|
|
|
|
|
|
|
|
./objs/simple_rtmp_server -c conf/srs.19350.conf
|
|
|
|
|
|
|
|
</pre>
|
|
|
|
|
|
|
|
step 4(optional): start nginx for HLS <br/>
|
|
|
|
<pre>
|
|
|
|
<pre>
|
|
|
|
sudo ./objs/nginx/sbin/nginx
|
|
|
|
sudo ./objs/nginx/sbin/nginx
|
|
|
|
</pre>
|
|
|
|
</pre>
|
|
|
|
step 4: publish live stream <br/>
|
|
|
|
step 5: publish live stream <br/>
|
|
|
|
<pre>
|
|
|
|
<pre>
|
|
|
|
FMS URL: rtmp://127.0.0.1:1935/live
|
|
|
|
FMS URL: rtmp://127.0.0.1:1935/live
|
|
|
|
Stream: livestream
|
|
|
|
Stream: livestream
|
|
|
@ -37,18 +41,25 @@ For example, use ffmpeg to publish:
|
|
|
|
sleep 1; \
|
|
|
|
sleep 1; \
|
|
|
|
done
|
|
|
|
done
|
|
|
|
</pre>
|
|
|
|
</pre>
|
|
|
|
step 5: play live stream <br/>
|
|
|
|
step 6: play live stream <br/>
|
|
|
|
<pre>
|
|
|
|
<pre>
|
|
|
|
rtmp url: rtmp://127.0.0.1:1935/live/livestream
|
|
|
|
rtmp url: rtmp://127.0.0.1:1935/live/livestream
|
|
|
|
m3u8 url: http://127.0.0.1:80/live/livestream.m3u8
|
|
|
|
m3u8 url: http://127.0.0.1:80/live/livestream.m3u8
|
|
|
|
</pre>
|
|
|
|
</pre>
|
|
|
|
step 6: play live stream auto transcoded<br/>
|
|
|
|
step 7: play live stream auto transcoded<br/>
|
|
|
|
<pre>
|
|
|
|
<pre>
|
|
|
|
rtmp url: rtmp://127.0.0.1:1935/live/livestream_ld
|
|
|
|
rtmp url: rtmp://127.0.0.1:1935/live/livestream_ld
|
|
|
|
m3u8 url: http://127.0.0.1:80/live/livestream_ld.m3u8
|
|
|
|
m3u8 url: http://127.0.0.1:80/live/livestream_ld.m3u8
|
|
|
|
rtmp url: rtmp://127.0.0.1:1935/live/livestream_sd
|
|
|
|
rtmp url: rtmp://127.0.0.1:1935/live/livestream_sd
|
|
|
|
m3u8 url: http://127.0.0.1:80/live/livestream_sd.m3u8
|
|
|
|
m3u8 url: http://127.0.0.1:80/live/livestream_sd.m3u8
|
|
|
|
</pre>
|
|
|
|
</pre>
|
|
|
|
|
|
|
|
step 8: play live stream auto forwarded, the hls dir change to /forward<br/>
|
|
|
|
|
|
|
|
<pre>
|
|
|
|
|
|
|
|
rtmp url: rtmp://127.0.0.1:19350/live/livestream_ld
|
|
|
|
|
|
|
|
m3u8 url: http://127.0.0.1:80/forward/live/livestream_ld.m3u8
|
|
|
|
|
|
|
|
rtmp url: rtmp://127.0.0.1:19350/live/livestream_sd
|
|
|
|
|
|
|
|
m3u8 url: http://127.0.0.1:80/forward/live/livestream_sd.m3u8
|
|
|
|
|
|
|
|
</pre>
|
|
|
|
|
|
|
|
|
|
|
|
### System Requirements
|
|
|
|
### System Requirements
|
|
|
|
Supported operating systems and hardware:
|
|
|
|
Supported operating systems and hardware:
|
|
|
|