update description to newes config version, prepare for version 4.0.0
This commit is contained in:
parent
bdaed3a399
commit
7cf52fe995
@ -1,18 +1,17 @@
|
|||||||
The configuration file **ffplayout.yml** have this sections:
|
The configuration file **ffplayout.yml** has this sections:
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
```YAML
|
```YAML
|
||||||
general:
|
general:
|
||||||
stop_on_error: True
|
|
||||||
stop_threshold: 11
|
stop_threshold: 11
|
||||||
```
|
```
|
||||||
sometimes it can happen, that a file is corrupt but still playable,
|
Sometimes it can happen, that a file is corrupt but still playable,
|
||||||
this can produce an streaming error over all following files.
|
this can produce an streaming error over all following files. The only way
|
||||||
The only way in this case is, to stop ffplayout and start it again
|
in this case is, to stop ffplayout and start it again. Here we only say when
|
||||||
here we only say it can stop, the starting process is in your hand
|
it stops, the starting process is in your hand. Best way is a **systemd service**
|
||||||
best way is a **systemd serivce** on linux.
|
on linux. `stop_threshold` stop ffplayout, if it is async in time above this
|
||||||
`stop_threshold:` stop ffplayout, if it is async in time above this value.
|
value. A number below 3 can cause unexpected errors.
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
@ -28,8 +27,9 @@ mail:
|
|||||||
```
|
```
|
||||||
Send error messages to email address, like:
|
Send error messages to email address, like:
|
||||||
- missing playlist
|
- missing playlist
|
||||||
- unvalid json format
|
- invalid json format
|
||||||
- missing clip path
|
- missing clip path
|
||||||
|
|
||||||
leave recipient blank, if you don't need this.
|
leave recipient blank, if you don't need this.
|
||||||
`mail_level` can be: **WARNING, ERROR**
|
`mail_level` can be: **WARNING, ERROR**
|
||||||
|
|
||||||
@ -76,8 +76,8 @@ so the input for the final compression is unique.
|
|||||||
- with `logo_scale = 100:-1` logo can be scaled
|
- with `logo_scale = 100:-1` logo can be scaled
|
||||||
- with `logo_opacity` logo can make transparent
|
- with `logo_opacity` logo can make transparent
|
||||||
- with `logo_filter = overlay=W-w-12:12` you can modify the logo position
|
- with `logo_filter = overlay=W-w-12:12` you can modify the logo position
|
||||||
- with use_loudnorm you can activate single pass EBU R128 loudness normalization
|
- with `use_loudnorm` you can activate single pass EBU R128 loudness normalization
|
||||||
- loud_* can adjust the loudnorm filter
|
- `loud_*` can adjust the loudnorm filter
|
||||||
- `output_count` sets the outputs for the filtering, > 1 gives the option to use the same filters for multiple outputs. This outputs can be taken in 'ffmpeg_param', names will be vout2, vout3;
|
- `output_count` sets the outputs for the filtering, > 1 gives the option to use the same filters for multiple outputs. This outputs can be taken in 'ffmpeg_param', names will be vout2, vout3;
|
||||||
aout2, aout2 etc.
|
aout2, aout2 etc.
|
||||||
|
|
||||||
@ -85,16 +85,36 @@ aout2, aout2 etc.
|
|||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
|
```YAML
|
||||||
|
ingest:
|
||||||
|
stream_input: >-
|
||||||
|
-f live_flv
|
||||||
|
-listen 1
|
||||||
|
-i rtmp://localhost:1936/live/stream
|
||||||
|
```
|
||||||
|
**ingest** works only in combination with output -> mode = **live_switch**!
|
||||||
|
It run a server for a ingest stream. This stream will override the normal streaming
|
||||||
|
until is done.
|
||||||
|
There is no authentication, this is up to you. The recommend way is to set address to localhost, stream to a local server with authentication and from there stream to this app.
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
```YAML
|
||||||
|
play:
|
||||||
|
mode: playlist
|
||||||
|
```
|
||||||
|
Set playing mode, like **playlist**; **folder**, or your own custom one.
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
```YAML
|
```YAML
|
||||||
playlist:
|
playlist:
|
||||||
playlist_mode: True
|
|
||||||
path: "/playlists"
|
path: "/playlists"
|
||||||
day_start: "5:59:25"
|
day_start: "5:59:25"
|
||||||
length: "24:00:00"
|
length: "24:00:00"
|
||||||
```
|
```
|
||||||
Playlist settings -
|
|
||||||
set `playlist_mode` to **False** if you want to play clips from the `storage:` section
|
Put only the root path here, for example: **"/playlists"**.
|
||||||
put only the root path here, for example: **"/playlists"**.
|
|
||||||
Subfolders is read by the script and needs this structur:
|
Subfolders is read by the script and needs this structur:
|
||||||
- **"/playlists/2018/01"** (/playlists/year/month)
|
- **"/playlists/2018/01"** (/playlists/year/month)
|
||||||
|
|
||||||
@ -158,7 +178,16 @@ out:
|
|||||||
stream_output: >-
|
stream_output: >-
|
||||||
-flags +global_header
|
-flags +global_header
|
||||||
-f flv rtmp://localhost/live/stream
|
-f flv rtmp://localhost/live/stream
|
||||||
hls_output: >-
|
```
|
||||||
|
|
||||||
|
The final ffmpeg post compression, Set the settings to your needs!
|
||||||
|
`mode` has the standard options **desktop**, **hls**, **live_switch**, **stream**. Self made outputs
|
||||||
|
can be define, by adding script in output folder with an **output()** function inside.
|
||||||
|
|
||||||
|
For output mode hls, `stream_output` can look like:
|
||||||
|
|
||||||
|
```YAML
|
||||||
|
stream_output: >-
|
||||||
-flags +cgop
|
-flags +cgop
|
||||||
-f hls
|
-f hls
|
||||||
-hls_time 6
|
-hls_time 6
|
||||||
@ -166,7 +195,3 @@ out:
|
|||||||
-hls_flags append_list+delete_segments+omit_endlist+program_date_time
|
-hls_flags append_list+delete_segments+omit_endlist+program_date_time
|
||||||
-hls_segment_filename /var/www/srs/live/stream-%09d.ts /var/www/srs/live/stream.m3u8
|
-hls_segment_filename /var/www/srs/live/stream-%09d.ts /var/www/srs/live/stream.m3u8
|
||||||
```
|
```
|
||||||
|
|
||||||
The final ffmpeg post compression, Set the settings to your needs!
|
|
||||||
`mode` has the standard options **desktop**, **hls**, **stream**. Self made outputs
|
|
||||||
can be define, by adding script in output folder with an 'output' function inside.
|
|
||||||
|
Loading…
Reference in New Issue
Block a user