From feff57c50024da466a1fa1fef15262f2b79f06c0 Mon Sep 17 00:00:00 2001 From: Jonathan Baecker Date: Thu, 6 Jun 2019 18:16:04 +0200 Subject: [PATCH] fix map_extension, add folder watch --- ffplayout.conf | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/ffplayout.conf b/ffplayout.conf index 3deb0bb0..eba646ab 100644 --- a/ffplayout.conf +++ b/ffplayout.conf @@ -15,6 +15,8 @@ # ------------------------------------------------------------------------------ +# set playlist_mode to false if you want to play clips from the [FOLDER] section + # 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 @@ -22,6 +24,7 @@ # best way is a systemd serivce on linux # stop_threshold: stop ffplayout, if it is async in time above this value [GENERAL] +playlist_mode = True stop_on_error = True stop_threshold = 11 @@ -90,7 +93,7 @@ ffmpeg_copy_settings = ["-c", "copy", "-bsf:v", "h264_mp4toannexb", "-f", "mpegt # map_extension is only for special purpose, # when your playlist have a different extension, then the originial clip # example: map_extension = [".mp4", ".mkv"] -# life blank for no change +# life empty for no change [PLAYLIST] playlist_path = /playlists clips_root = /media @@ -99,7 +102,16 @@ filler_clip = /media/filler/seperator.clock.mp4 blackclip = /opt/dummy.mkv day_start = 06:00:00.000 time_shift = 35 -map_extension = +map_extension = [] + + +# play ordered or ramdomly files from clips_root +# extensions can be a list +# set shuffle to True to pick files randomly +[FOLDER] +storage = /media +extensions = ["*.mp4"] +shuffle = False # the final playout post compression