From a8a5bbd23fd51bc6fc8660f46647bbaebd0826cc Mon Sep 17 00:00:00 2001 From: jb-alvarado Date: Wed, 6 Mar 2019 15:25:14 +0100 Subject: [PATCH] add info about url/live input --- README.md | 31 ++++++++++++++++++++++++++++--- 1 file changed, 28 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 5b713e7c..6cb8ed93 100644 --- a/README.md +++ b/README.md @@ -45,7 +45,7 @@ JSON Playlist Example "in": 0, "out": 149, "duration": 149, - "source": "/Media/clip2.mp4" + "source": "https://clips.vorwaerts-gmbh.de/big_buck_bunny.webm" }, { @@ -58,8 +58,8 @@ JSON Playlist Example { "in": 0, "out": 2531.36, - "duration": 2531.36, - "source": "/Media/clip4.mp4" + "duration": 0, + "source": "rtmp://srs.discovery.stream/live/stream" } ] } @@ -70,6 +70,31 @@ JSON Playlist Example #### Warning: (Endless) streaming over multiple days will only work when the playlist have **both** keys and the **length** of the playlist is **24 hours**. If you need only some hours for every day, use a cron job, or something similar. +Source from URL / Live Stream +----- +You can use sources from url or live stream in that way: + +```json +... + { + "in": 0, + "out": 149, + "duration": 149, + "source": "https://clips.vorwaerts-gmbh.de/big_buck_bunny.webm" + }, +... + { + "in": 0, + "out": 2531.36, + "duration": 0, + "source": "rtmp://srs.discovery.stream/live/stream" + } +... +``` +But be careful with it, better test it multiple times! + +More informations in [wiki](https://github.com/jb-alvarado/ffplayout/wiki/Live-Source) + Installation ----- - install ffmpeg, ffprobe and mbuffer