update readme

This commit is contained in:
jb-alvarado 2022-10-02 22:05:01 +02:00
parent ec4f5d2ac2
commit 9c23bc322a
3 changed files with 17 additions and 2 deletions

View File

@ -48,6 +48,7 @@ Check the [releases](https://github.com/ffplayout/ffplayout/releases/latest) for
- image source (will loop until out duration is reached) - image source (will loop until out duration is reached)
- extra audio source (experimental) (has priority over audio from video source) - extra audio source (experimental) (has priority over audio from video source)
- [custom filter](/docs/custom_filters.md) globally in config, or in playlist for specific clips - [custom filter](/docs/custom_filters.md) globally in config, or in playlist for specific clips
- import playlist from text or m3u file, with CLI or frontend
For preview stream, read: [/docs/preview_stream.md](/docs/preview_stream.md) For preview stream, read: [/docs/preview_stream.md](/docs/preview_stream.md)

View File

@ -324,3 +324,14 @@ curl -X POST http://127.0.0.1:8787/api/file/1/remove/ -H 'Content-Type: applicat
curl -X POST http://127.0.0.1:8787/api/file/1/upload/ -H 'Authorization: <TOKEN>' curl -X POST http://127.0.0.1:8787/api/file/1/upload/ -H 'Authorization: <TOKEN>'
-F "file=@file.mp4" -F "file=@file.mp4"
``` ```
**Import playlist**
Import text/m3u file and convert it to a playlist
lines with leading "#" will be ignore
```BASH
curl -X POST http://127.0.0.1:8787/api/file/1/import/ -H 'Authorization: <TOKEN>'
-F "file=@list.m3u"
```

View File

@ -8,11 +8,14 @@ ffplayout also allows the passing of parameters:
``` ```
OPTIONS: OPTIONS:
-c, --config <CONFIG> File path to ffplayout.conf -c, --config <CONFIG> File path to ffplayout.yml
-d, --date <DATE> Target date (YYYY-MM-DD) for text/m3u to playlist import
-f, --folder <FOLDER> Play folder content -f, --folder <FOLDER> Play folder content
-g, --generate <YYYY-MM-DD>... Generate playlist for date or date-range, like: 2022-01-01 - 2022-01-10: --fake-time <FAKE_TIME> fake date time, for debugging
-g, --generate <YYYY-MM-DD>... Generate playlist for dates, like: 2022-01-01 - 2022-01-10
-h, --help Print help information -h, --help Print help information
-i, --infinit Loop playlist infinitely -i, --infinit Loop playlist infinitely
--import <IMPORT> Import a given text/m3u file and create a playlist from it
-l, --log <LOG> File path for logging -l, --log <LOG> File path for logging
-m, --play-mode <PLAY_MODE> Playing mode: folder, playlist -m, --play-mode <PLAY_MODE> Playing mode: folder, playlist
-o, --output <OUTPUT> Set output mode: desktop, hls, stream -o, --output <OUTPUT> Set output mode: desktop, hls, stream