ffplayout
https://github.com/ffplayout/ffplayout
Rust and FFmpeg based 24/7 broadcasting playout for folder playback, editable JSON playlists, multichannel output, and HLS/RTMP/SRT delivery.
ffplayout
Rust and FFmpeg based playout for 24/7 broadcasting. ffplayout plays out a folder of video clips or a day-based JSON playlist that stays editable while on air. It is built to run as a system service on Linux and should run on any platform supported by Rust and FFmpeg.
About
ffplayout is a broadcasting playout application. You can start it with its web based frontend or run the playout in foreground mode without a frontend. A single instance can run multiple channels, each following its own playlist and output configuration.
Playlists are JSON files with one entry per clip, image, or remote source. While the playlist is on air, it remains editable, so schedule changes do not require a restart. When a playlist or clip is missing, ffplayout replaces it with a single filler or multiple fillers from a folder, and if no filler exists it creates a dummy clip. Playlists can also be generated from a template or imported from text or m3u files with the CLI or the frontend.
{
"channel": "My Channel",
"date": "2026-07-15",
"program": [{
"in": 0,
"out": 647.68,
"duration": 647.68,
"source": "/Media/clip1.mp4"
}, {
"in": 0,
"out": 149,
"duration": 149,
"source": "/Media/clip2.mp4",
"ad": true
}, {
"in": 0,
"out": 114.72,
"duration": 114.72,
"source": "/Media/image.jpg"
}, {
"in": 0,
"out": 2531.36,
"duration": 2531.36,
"source": "https://example.org/big_buck_bunny.webm",
"ad": false
}
]
}
In playlist mode, moving backwards or forwards in time saves the time shift so the playlist stays in sync. This may shorten the playlist; if not reset, it resets automatically the next day.
What makes it useful
- Playlist stays live-editable — change the day's schedule without stopping playout, and loop the playlist infinitely if needed.
- Filler handling — missing playlists or clips are covered by a single filler or multiple fillers from a folder; without a filler, a dummy clip is generated.
- Full-day control — trim the last clip to get exactly 24 hours, loop fillers until time is full, and set a custom
day_start(for example 06:00 to 06:00 instead of midnight to midnight). - Multiple outputs per channel — HLS, RTMP, SRT, UDP, MoQ, desktop, NDI and DeckLink SDI can run simultaneously with individual resolutions and a shared program frame rate, including exact 23.976, 29.97 and 59.94 fps.
- Conforming built in — letterbox or pillarbox for aspect changes, fps changes, target resolution fitting, silence added for short audio, and the last frame held for short video.
- Output resilience — independent output reconnection retries every 15 seconds for up to three minutes, with a manual retry afterwards; other outputs keep running when one reconnects.
- CPU-based processing — no GPU is required, and no special tools beyond the FFmpeg libraries.
- Live preview — a built-in program preview over MoQ on the Player page starts on demand and stays available for three minutes after the last viewer leaves. An optional public preview publishes continuously and is disabled by default.
Features
- Start with the web based frontend or run playout in foreground mode without a frontend.
- Dynamic playlist that can be replaced and edited while on air.
- Watched folder mode for playing clips from a folder.
- Email and HTTP push notifications for log alerts.
- Overlay a static or animated logo.
- Control manual graphics, text, and the program logo on the Graphics page (experimental for manual graphics).
- Schedule image/video graphics and lower thirds per playlist clip, with fades and repetitions (experimental).
- Overlay text controllable through the web frontend.
- Remote source support.
- RTMP/SRT live ingest with optional direct forwarding (experimental for forwarding).
- Image source that loops until its out duration is reached.
- Import playlists from text or m3u files with the CLI or frontend, and generate playlists based on a template.
- Run an external task when a clip starts.
- On import, validate all video clips and, if desired, check that the audio track is not completely muted.
- WebVTT subtitles in HLS mode.
- Mono, stereo, or 5.1 program audio with configurable output tracks and independent recording.
- Native HLS with MPEG-TS or fMP4, shared audio, and optional 5.1 tracks. New HLS outputs default to Native and can switch to FFmpeg.
- Per-channel input options and clip overrides for playlist sources.
- Explicit encoding sharing between compatible outputs, including selecting an HLS rendition as the encoding source.
- Configure outputs in Settings → Outputs. HLS, Stream, MoQ, NDI, and DeckLink outputs support live destination and activation changes while the program format stays compatible. Program format, desktop, and recording changes require a channel restart.
- Log to channel log files, mail queues, or color console output.
For continuous, day-based playout across multiple days, set day_start and length to 24 hours. For shorter scheduled runs, start ffplayout with a scheduler such as cron or systemd timers.
Requirements
- RAM and CPU usage depend on video resolution; at least 4 dedicated threads and 2GB RAM for 720p are recommended.
- FFmpeg v7.0+ development libraries are required with either HLS packager. The maximum supported version follows
ffmpeg-nextand is currently FFmpeg 9.1. With the FFmpeg packager, builds withlibavformatbefore v61.9.100 can use WebVTT subtitles, but may not support custom HLS subtitle display names. The native packager supports custom subtitle display names independently of thelibavformatversion. - Live HLS subtitles: the FFmpeg packager currently does not write
EXT-X-PROGRAM-DATE-TIMEto WebVTT subtitle playlists, which can cause subtitles to disappear during longer playback in hls.js and Video.js 10 using hls.js. The native packager withhls_flags=program_date_timewrites matching timestamps to video and subtitle playlists. See subtitles. - Official Linux glibc builds use mimalloc. NDI requires the NDI 6 runtime, and physical DeckLink SDI requires Blackmagic Desktop Video. See installation and output settings.
- macOS and Windows releases do not include FFmpeg shared libraries; follow the macOS or Windows installation instructions to install them separately.
Getting started
Full setup details are in the installation guide. You can also export and restore complete JSON configurations using --dump-config and --import-config; see export and restore settings.
- Install a package from the latest release.
- Start the ffplayout service as described in the installation guide.
- Open
http://<server-address>:8787and enter the setup token from the service startup log. Complete setup to create the global settings and the first global admin.
HLS is the default output mode. For production delivery, serve the generated HLS files through nginx, another web server, or a CDN; ffplayout's built-in HTTP route is intended for previewing.
ffplayout is licensed under the GNU General Public License v3.0.
Comments
No comments yet.
Sign in to leave a comment