ffplayout/ffplayout.yml

150 lines
6.2 KiB
YAML
Raw Normal View History

2020-02-03 06:07:21 -05:00
general:
2020-04-14 04:50:44 -04:00
helptext: Sometimes it can happen, that a file is corrupt but still playable,
this can produce an streaming error over all following files. The only way
in this case is, to stop ffplayout and start it again. Here we only say when
2022-01-15 13:38:01 -05:00
it stops, the starting process is in your hand. Best way is a systemd service
2020-04-14 04:50:44 -04:00
on linux. 'stop_threshold' stop ffplayout, if it is async in time above this
value. A number below 3 can cause unexpected errors.
2020-02-03 06:07:21 -05:00
stop_threshold: 11
mail:
2022-01-15 13:38:01 -05:00
helptext: Send error messages to email address, like missing playlist; invalid
2020-04-14 04:50:44 -04:00
json format; missing clip path. Leave recipient blank, if you don't need this.
'mail_level' can be WARNING or ERROR.
2020-02-03 06:07:21 -05:00
subject: "Playout Error"
2022-01-15 13:38:01 -05:00
smtp_server: "mail.example.org"
smtp_port: 587
2020-02-03 06:07:21 -05:00
sender_addr: "ffplayout@example.org"
2020-04-15 15:30:29 -04:00
sender_pass: "abc123"
2020-02-03 06:07:21 -05:00
recipient:
mail_level: "ERROR"
logging:
2022-02-23 09:53:57 -05:00
helptext: Logging to file, if 'log_to_file' false log to console. 'backup_count'
2020-05-12 07:13:17 -04:00
says how long log files will be saved in days. Path to /var/log/ only if you
2022-01-15 13:38:01 -05:00
run this program as daemon. 'log_level' can be DEBUG, INFO, WARNING,
2022-02-23 09:53:57 -05:00
ERROR. 'ffmpeg_level' can be info, warning, error.
log_to_file: true
2020-05-12 07:13:17 -04:00
backup_count: 7
2020-02-03 06:07:21 -05:00
log_path: "/var/log/ffplayout/"
log_level: "DEBUG"
2022-02-23 09:53:57 -05:00
ffmpeg_level: "error"
2020-02-03 06:07:21 -05:00
2020-07-02 14:54:06 -04:00
processing:
2022-02-13 09:58:37 -05:00
helptext: Set playing mode, like playlist; folder, or you own custom one.
Default processing, for all clips that they get prepared in that way,
2020-07-02 14:54:06 -04:00
so the output is unique. 'aspect' must be a float number. 'logo' is only used
if the path exist. 'logo_scale' scale the logo to target size, leave it blank
when no scaling is needed, format is 'number:number', for example '100:-1'
for proportional scaling. With 'logo_opacity' logo can become transparent.
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.
'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 'stream_param', names will be vout2, vout3;
2021-03-29 03:25:43 -04:00
aout2, aout2 etc.
2022-02-13 09:58:37 -05:00
mode: playlist
2020-02-03 06:07:21 -05:00
width: 1024
height: 576
aspect: 1.778
fps: 25
2022-02-23 09:53:57 -05:00
add_logo: true
2020-02-03 06:07:21 -05:00
logo: "docs/logo.png"
2020-05-31 05:47:18 -04:00
logo_scale:
2020-02-03 06:07:21 -05:00
logo_opacity: 0.7
logo_filter: "overlay=W-w-12:12"
2022-02-23 09:53:57 -05:00
add_loudnorm: false
loud_i: -18
loud_tp: -1.5
loud_lra: 11
2020-06-07 14:08:54 -04:00
output_count: 1
2020-02-03 06:07:21 -05:00
ingest:
helptext: Works not with direct hls output, it always needs full processing! Run a server
for a ingest stream. This stream will override the normal streaming until is done.
2022-04-05 05:56:12 -04:00
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.
enable: false
2022-03-21 15:51:36 -04:00
input_param: -f live_flv -listen 1 -i rtmp://localhost:1936/live/stream
2020-02-03 06:07:21 -05:00
playlist:
2022-02-06 06:08:03 -05:00
helptext: >
'path' can be a path to a single file, or a directory. For directory put
only the root folder, for example '/playlists', subdirectories are read by the
script. Subdirectories needs this structure '/playlists/2018/01'. 'day_start'
means at which time the playlist should start, leave day_start blank when playlist
should always start at the begin. 'length' represent the target length from
2022-02-23 09:53:57 -05:00
playlist, when is blank real length will not consider. 'infinit true' works with
2022-02-06 06:08:03 -05:00
single playlist file and loops it infinitely.
2020-02-03 06:07:21 -05:00
path: "/playlists"
day_start: "5:59:25"
length: "24:00:00"
2022-02-23 09:53:57 -05:00
infinit: false
2020-02-03 06:07:21 -05:00
storage:
2022-01-15 13:38:01 -05:00
helptext: Play ordered or randomly files from path. 'filler_clip' is for fill
2020-07-02 07:42:43 -04:00
the end to reach 24 hours, it will loop when is necessary. 'extensions' search
2022-02-23 09:53:57 -05:00
only files with this extension. Set 'shuffle' to 'true' to pick files randomly.
2020-02-03 06:07:21 -05:00
path: "/mediaStorage"
filler_clip: "/mediaStorage/filler/filler.mp4"
extensions:
2020-04-09 15:05:57 -04:00
- ".mp4"
- ".mkv"
2022-02-23 09:53:57 -05:00
shuffle: true
2020-02-03 06:07:21 -05:00
text:
2020-06-01 15:20:23 -04:00
helptext: Overlay text in combination with libzmq for remote text manipulation.
2020-04-14 04:50:44 -04:00
On windows fontfile path need to be like this 'C\:/WINDOWS/fonts/DejaVuSans.ttf'.
In a standard environment the filter drawtext node is Parsed_drawtext_2.
2022-02-23 09:53:57 -05:00
'over_pre' if true text will be overlay in pre processing. Continue same text
over multiple files is in that mode not possible. 'text_from_filename' activate the
extraction from text of a filename. With 'style' you can define the drawtext
parameters like position, color, etc. Post Text over API will override this.
With 'regex' you can format file names, to get a title from it.
2022-02-23 09:53:57 -05:00
add_text: false
over_pre: false
2020-04-29 03:39:24 -04:00
bind_address: "127.0.0.1:5555"
2020-02-03 06:07:21 -05:00
fontfile: "/usr/share/fonts/truetype/dejavu/DejaVuSans.ttf"
2022-02-23 09:53:57 -05:00
text_from_filename: false
2020-12-19 16:28:17 -05:00
style: "x=(w-tw)/2:y=(h-line_h)*0.9:fontsize=24:fontcolor=#ffffff:box=1:boxcolor=#000000:boxborderw=4"
regex: "^(.*)_"
2020-02-03 06:07:21 -05:00
out:
2020-06-07 14:08:54 -04:00
helptext: The final playout compression. Set the settings to your needs.
2022-04-05 05:56:12 -04:00
'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. 'preview' works only in streaming output and creates a separate preview stream.
2020-06-07 14:08:54 -04:00
mode: 'stream'
2022-02-23 09:53:57 -05:00
preview: false
2022-03-21 15:51:36 -04:00
preview_param: >-
-s 512x288
-c:v libx264
-crf 24
-x264-params keyint=50:min-keyint=25:scenecut=-1
-maxrate 800k
-bufsize 1600k
-preset ultrafast
-tune zerolatency
-profile:v Main
-level 3.1
-c:a aac
-ar 44100
-b:a 128k
-flags +global_header
-f flv rtmp://preview.local/live/stream
output_param: >-
-c:v libx264
-crf 23
-x264-params keyint=50:min-keyint=25:scenecut=-1
-maxrate 1300k
-bufsize 2600k
-preset faster
-tune zerolatency
-profile:v Main
-level 3.1
-c:a aac
-ar 44100
-b:a 128k
-flags +global_header
-f flv rtmp://localhost/live/stream