Go to file
2024-09-03 16:21:53 +02:00
.github Update feature_request.md 2024-09-02 21:57:49 +02:00
.vscode change mail_queue structure 2024-06-06 09:17:30 +02:00
assets update build 2024-06-28 16:30:12 +02:00
debian remove ffpapi references 2024-06-12 10:16:00 +02:00
docker load config on channel save, fix docker paths 2024-08-22 17:23:39 +02:00
docs Update output.md 2024-09-03 09:45:48 +02:00
ffplayout save log level in cookie, don't save color dummy on playlist generation 2024-09-03 16:21:53 +02:00
frontend@1c7f6892fd save log level in cookie, don't save color dummy on playlist generation 2024-09-03 16:21:53 +02:00
migrations create preset set on channel creation, only select/insert/update presets that belongs to channel 2024-08-27 11:19:17 +02:00
scripts create run script inside Dockerfile, update packages, 2024-07-22 10:34:06 +02:00
tests fix restart, when out of sync, log only ones when console log is active 2024-08-26 20:08:12 +02:00
.gitignore update docker 2024-07-05 15:24:55 +02:00
.gitmodules rename submodul 2024-06-17 20:23:46 +02:00
Cargo.lock save log level in cookie, don't save color dummy on playlist generation 2024-09-03 16:21:53 +02:00
Cargo.toml create preset set on channel creation, only select/insert/update presets that belongs to channel 2024-08-27 11:19:17 +02:00
CHANGELOG.md update changelog 2024-01-03 21:26:05 +01:00
CONTRIBUTING.md add info about screenshots. 2024-04-17 10:51:25 +02:00
Cross.toml add macos cross build 2024-04-26 13:54:33 +02:00
LICENSE add LICENSE 2022-04-14 17:10:59 +02:00
README.md update packages 2024-08-18 16:33:42 +02:00

ffplayout

License: GPL v3

ffplayout-engine (ffplayout)

ffplayout is a 24/7 broadcasting solution. It can playout a folder containing audio or video clips, or play a JSON playlist for each day, keeping the current playlist editable.

The ffplayout applications are mostly designed to run as system services on Linux. But in general they should run on any platform supported by Rust.

Check the releases for pre compiled version.

Features

  • start program with web based frontend, or run playout in foreground mode without frontend
  • dynamic playlist
  • replace missing playlist or clip with single filler or multiple fillers from folder, if no filler exists, create dummy clip
  • playing clips in watched folder mode
  • send emails with error message
  • overlay a logo
  • overlay text, controllable through web frontend (needs ffmpeg with libzmq and enabled JSON RPC server)
  • loop playlist infinitely
  • remote source
  • trim and fade the last clip, to get full 24 hours
  • when playlist is not 24 hours long, loop fillers until time is full
  • set custom day start, so you can have playlist for example: from 6am to 6am, instate of 0am to 12pm
  • normal system requirements and no special tools
  • no GPU power is needed
  • stream to server or play on desktop
  • log to files or color output to console
  • add filters to input, if is necessary to match output stream:
    • yadif (deinterlacing)
    • pad (letterbox or pillarbox to fit aspect)
    • fps (change fps)
    • scale (fit target resolution)
    • aevalsrc (if video have no audio)
    • apad (add silence if audio duration is to short)
    • tpad (add black frames if video duration is to short)
  • output:
    • stream
    • desktop
    • HLS
    • null (for debugging)
  • live ingest
  • image source (will loop until out duration is reached)
  • extra audio source, has priority over audio from video (experimental *)
  • multiple audio tracks (experimental *)
  • Stream Copy mode (experimental *)
  • custom filters globally in config, or in playlist for specific clips
  • import playlist from text or m3u file, with CLI or frontend
  • audio only, for radio mode (experimental *)
  • generate playlist based on template (experimental *)
  • During playlist import, all video clips are validated and, if desired, checked to ensure that the audio track is not completely muted.
  • run multiple channels (experimental *)

For preview stream, read: /docs/preview_stream.md

* Experimental features do not guarantee the same stability and may fail under unusual circumstances. Code and configuration options may change in the future.

Requirements

  • RAM and CPU depends on video resolution, minimum 4 dedicated threads and 3GB RAM for 720p are recommend
  • ffmpeg v5.0+ and ffprobe (ffplay if you want to play on desktop)
  • if you want to overlay dynamic text, ffmpeg needs to have libzmq

Install

Check install for details about how to install ffplayout.


JSON Playlist Example

{
    "channel": "Test 1",
    "date": "2019-03-05",
    "program": [{
            "in": 0,
            "out": 647.68,
            "duration": 647.68,
            "source": "/Media/clip1.mp4"
        }, {
            "in": 0,
            "out": 890.02,
            "duration": 890.02,
            "source": "/Media/clip2.mp4",
            "custom_filter": "eq=gamma_b=0.6:gamma_g=0.7[c_v_out]"
        }, {
            "in": 0,
            "out": 149,
            "duration": 149,
            "source": "/Media/clip3.mp4",
            "category": "advertisement"
        }, {
            "in": 0,
            "out": 114.72,
            "duration": 114.72,
            "source": "/Media/image1.jpg",
        }, {
            "in": 0,
            "out": 230.30,
            "duration": 230.30,
            "source": "/Media/image2.jpg",
            "audio": "/Media/audio1.mp3"
        }, {
            "in": 0,
            "out": 2531.36,
            "duration": 2531.36,
            "source": "https://example.org/big_buck_bunny.webm",
            "category": ""
        }
    ]
}

If you are in playlist mode and move backwards or forwards in time, the time shift is saved so the playlist is still in sync. Bear in mind, however, that this may make your playlist too short. If you do not reset it, it will automatically reset the next day.

Warning

(Endless) streaming over multiple days will only work if config has a day_start value and the length value is 24 hours. If you only need a few hours for each day, use a cron job or something similar.


Sponsoring

If you like this project and would like to make a donation, please use one of the options provided. Please note that donations are not intended to get support or features! Donations are only a sign of appreciation.

Backers