Browse Source

update readme / config readme

pull/509/head
aler9 4 years ago
parent
commit
67e0db13ab
  1. 10
      README.md
  2. 8
      rtsp-simple-server.yml

10
README.md

@ -318,7 +318,7 @@ ffmpeg -re -stream_loop -1 -i file.ts -c copy -f flv rtmp://localhost:8554/mystr
### HLS protocol ### HLS protocol
HLS is a media format that allows to embed live streams into web pages, inside standard `<video>` HTML tags. Every stream published to the server can be accessed with a web browser by visiting HLS is a media format that allows to embed live streams into web pages. Every stream published to the server can be accessed with a web browser by visiting:
``` ```
http://localhost:8888/mystream http://localhost:8888/mystream
@ -326,6 +326,14 @@ http://localhost:8888/mystream
where `mystream` is the name of a stream that is being published. where `mystream` is the name of a stream that is being published.
The direct HLS URL, that can be used to read the stream with Javascript libraries (hls.js) can be obtained by appending `/stream.m3u8`:
```
http://localhost:8888/mystream/stream.m3u8
```
Please note that most browsers don't support HLS directly (except Safari); a Javascript library, like [hls.js](https://github.com/video-dev/hls.js/), must be used to load the stream.
### Publish from OBS Studio ### Publish from OBS Studio
In `Settings -> Stream` (or in the Auto-configuration Wizard), use the following parameters: In `Settings -> Stream` (or in the Auto-configuration Wizard), use the following parameters:

8
rtsp-simple-server.yml

@ -98,16 +98,16 @@ rtmpAddress: :1935
hlsDisable: no hlsDisable: no
# address of the HLS listener. # address of the HLS listener.
hlsAddress: :8888 hlsAddress: :8888
# whether to always start the HLS remuxer; otherwise, it is started only # by default, HLS is generated only when requested by a user;
# after an HLS stream is requested. # this option allows to generate it always, avoiding an initial delay.
hlsAlwaysRemux: no hlsAlwaysRemux: no
# number of HLS segments to generate. # number of HLS segments to generate.
# increasing segments allows more buffering, # increasing segments allows more buffering,
# decreasing segments decreases latency. # decreasing segments decreases latency.
hlsSegmentCount: 3 hlsSegmentCount: 3
# minimum duration of each segment. # minimum duration of each segment.
# the real segment duration is also influenced by the interval between IDR frames, # the final segment duration is also influenced by the interval between IDR frames,
# since the server changes the segment duration to include at least one IDR frame in each. # since the server changes the segment duration to include at least a IDR frame in each one.
hlsSegmentDuration: 1s hlsSegmentDuration: 1s
# value of the Access-Control-Allow-Origin header provided in every HTTP response. # value of the Access-Control-Allow-Origin header provided in every HTTP response.
# This allows to play the HLS stream from an external website. # This allows to play the HLS stream from an external website.

Loading…
Cancel
Save