From f5b1b7ca4ab0a99fc89cb4040af2da6cb3d4aba7 Mon Sep 17 00:00:00 2001 From: jb-alvarado Date: Tue, 8 Jun 2021 09:27:56 +0200 Subject: [PATCH] update parameters --- docs/CONFIG.md | 33 ++++++++++++++++++++++++++------- 1 file changed, 26 insertions(+), 7 deletions(-) diff --git a/docs/CONFIG.md b/docs/CONFIG.md index 48a839eb..32eb2b6f 100644 --- a/docs/CONFIG.md +++ b/docs/CONFIG.md @@ -53,7 +53,7 @@ Path to **/var/log/** only if you run this program as *deamon*. --- ```YAML -pre_compress: +processing: width: 1024 height: 576 aspect: 1.778 @@ -67,6 +67,7 @@ pre_compress: loud_I: -18 loud_TP: -1.5 loud_LRA: 11 + output_count: 1 ``` ffmpeg pre-compression settings, all clips get prepared in that way, @@ -77,6 +78,8 @@ so the input for the final compression is unique. - 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 'ffmpeg_param', names will be vout2, vout3; +aout2, aout2 etc. **INFO:** output is progressive! @@ -118,21 +121,29 @@ with this extension, add as many as you want. Set `shuffle` to **True** to pick ```YAML text: add_text: True + over_pre: False bind_address: "tcp://127.0.0.1:5555" fontfile: "/usr/share/fonts/truetype/dejavu/DejaVuSans.ttf" + text_from_filename: False + style: "x=(w-tw)/2:y=(h-line_h)*0.9:fontsize=24:fontcolor=#ffffff:box=1:boxcolor=#000000:boxborderw=4" + regex: "^(.*)_" ``` -Overlay text in combination with [messenger](https://github.com/ffplayout/messenger). +Overlay text in combination with [messenger](https://github.com/ffplayout/messenger) or the web [frontend](https://github.com/ffplayout/ffplayout-frontend). 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**. +`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. --- ```YAML out: - preview: False + mode: 'stream' service_name: "Live Stream" service_provider: "example.org" - post_ffmpeg_param: >- + ffmpeg_param: >- -c:v libx264 -crf 23 -x264-params keyint=50:min-keyint=25:scenecut=-1 @@ -144,10 +155,18 @@ out: -c:a aac -ar 44100 -b:a 128k + stream_output: >- -flags +global_header - -f flv - out_addr: "rtmp://localhost/live/stream" + -f flv rtmp://localhost/live/stream + hls_output: >- + -flags +cgop + -f hls + -hls_time 6 + -hls_list_size 600 + -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 ``` The final ffmpeg post compression, Set the settings to your needs! -`preview` works only on a desktop system with ffplay!! Set it to **True**, if you need it. +`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.