update parameters

This commit is contained in:
jb-alvarado 2021-06-08 09:27:56 +02:00
parent 7418f2be18
commit f5b1b7ca4a

View File

@ -53,7 +53,7 @@ Path to **/var/log/** only if you run this program as *deamon*.
--- ---
```YAML ```YAML
pre_compress: processing:
width: 1024 width: 1024
height: 576 height: 576
aspect: 1.778 aspect: 1.778
@ -67,6 +67,7 @@ pre_compress:
loud_I: -18 loud_I: -18
loud_TP: -1.5 loud_TP: -1.5
loud_LRA: 11 loud_LRA: 11
output_count: 1
``` ```
ffmpeg pre-compression settings, all clips get prepared in that way, 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 `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;
aout2, aout2 etc.
**INFO:** output is progressive! **INFO:** output is progressive!
@ -118,21 +121,29 @@ with this extension, add as many as you want. Set `shuffle` to **True** to pick
```YAML ```YAML
text: text:
add_text: True add_text: True
over_pre: False
bind_address: "tcp://127.0.0.1:5555" bind_address: "tcp://127.0.0.1:5555"
fontfile: "/usr/share/fonts/truetype/dejavu/DejaVuSans.ttf" 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**. 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**. 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 ```YAML
out: out:
preview: False mode: 'stream'
service_name: "Live Stream" service_name: "Live Stream"
service_provider: "example.org" service_provider: "example.org"
post_ffmpeg_param: >- ffmpeg_param: >-
-c:v libx264 -c:v libx264
-crf 23 -crf 23
-x264-params keyint=50:min-keyint=25:scenecut=-1 -x264-params keyint=50:min-keyint=25:scenecut=-1
@ -144,10 +155,18 @@ out:
-c:a aac -c:a aac
-ar 44100 -ar 44100
-b:a 128k -b:a 128k
stream_output: >-
-flags +global_header -flags +global_header
-f flv -f flv rtmp://localhost/live/stream
out_addr: "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! 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.