default output to hls, add host IP to DB

This commit is contained in:
jb-alvarado 2022-07-27 10:33:05 +02:00
parent 203ff28c2c
commit 9b054c8ce3
3 changed files with 14 additions and 6 deletions

View File

@ -116,8 +116,9 @@ text:
out:
help_text: The final playout compression. Set the settings to your needs. 'mode'
has the options 'desktop', 'hls', 'null', 'stream'.
mode: stream
has the options 'desktop', 'hls', 'null', 'stream'. Use 'stream' and adjust 'output_param:' settings,
when you want to stream to a rtmp/rtsp/srt/... server.
mode: hls
output_param: >-
-c:v libx264
-crf 23
@ -131,5 +132,10 @@ out:
-c:a aac
-ar 44100
-b:a 128k
-flags +global_header
-f flv rtmp://localhost/live/stream
-flags +cgop
-f hls
-hls_time 6
-hls_list_size 600
-hls_flags append_list+delete_segments+omit_endlist
-hls_segment_filename /usr/share/ffplayout/public/live/stream-%d.ts
/usr/share/ffplayout/public/live/stream.m3u8

4
debian/postinst vendored
View File

@ -11,7 +11,9 @@ if [ ! -d "/usr/share/ffplayout/db" ]; then
mkdir -p "/var/lib/ffplayout/playlists"
mkdir "/var/lib/ffplayout/tv-media"
/usr/bin/ffpapi -i
IP=$(hostname -I | cut -d ' ' -f1)
/usr/bin/ffpapi -i -d $IP
chown -R ${sysUser}. "/usr/share/ffplayout"
chown -R ${sysUser}. "/var/lib/ffplayout"

@ -1 +1 @@
Subproject commit 0dcd1646938a6ec66573c057ef959ffd000eff5c
Subproject commit d0a2fa6921172d667ce718e9362d4076fc16c23c