Skip to content
This repository has been archived by the owner on Jul 19, 2022. It is now read-only.

Latest commit

 

History

History
34 lines (24 loc) · 986 Bytes

README.md

File metadata and controls

34 lines (24 loc) · 986 Bytes

playlist-generator

This generator is not necessery anymore, because the ffplayout engine has now one included.

This script loop over ramdomized files in given folder, and generate a playlist from it.

Options:

optional arguments:
  -h, --help            show this help message and exit
  -c CONFIG, --config CONFIG
                        file path to ffplayout.yml
  -d DATE [DATE ...], --date DATE [DATE ...]
                        playlist date (yyyy-mm-dd)
  -t LENGTH, --length LENGTH
                        set length in "hh:mm:ss", default 24:00:00
  -i INPUT, --input INPUT
                        input folder
  -o OUTPUT, --output OUTPUT
                        output folder

When no options are set, the script uses the settings from ffplayout.yml

--date paramter can be a list, or a range: 2021-01-01 - 2021-01-31

Example command:

./generate-playlist.py -d 2021-01-01 - 2021-01-31 -t 24:00:00 -i /opt/tv-media -o /opt/playlists