ffplayout/ffplayout
关于
基于 Rust 和 ffmpeg 的播出系统
设计与媒体可以做什么
- 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
实测星标增长
- 24小时
- +1
- 7天
- +6
- 15天
- +9
- 1个月
- 正在收集历史
各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。
README.md
原文ffplayout

ffplayout is a 24/7 broadcasting solution. It can playout a folder containing video clips, or play a JSON playlist for each day, keeping the current playlist editable.
The application is mostly designed to run as a system service on Linux. In general it should run on any platform supported by Rust and FFmpeg.
Check the releases for prebuilt packages.
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 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 web frontend
- loop playlist infinitely
- remote source
- trim last clip, to get full 24 hours
- when playlist is not 24 hours long, loop fillers until time is full
- set a custom day start, for example from 06:00 to 06:00 instead of midnight to midnight
- normal system requirements and no special tools beyond FFmpeg libraries
- CPU-based processing; a GPU is not required
- log to channel log files, mail queues, or color output to console
- Conform audio and video as needed to match the output stream:
- letterbox or pillarbox to fit aspect
- change fps
- fit target resolution
- add silence if audio duration is too short
- hold the last frame if video duration is too short
- output: stream, desktop, HLS, and MoQ
- RTMP/SRT live ingest with optional direct forwarding (experimental for forwarding)
- image source (will loop until out duration is reached)
- import playlist from text or m3u file, with CLI or frontend
- generate playlist based on template
- run an external task when a clip starts
- 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
- WebVTT subtitles in HLS mode
- multiple simultaneous outputs per channel, with individual resolutions and a shared program frame rate
- explicit encoding sharing between compatible outputs, including selection of an HLS rendition as the encoding source
- built-in program preview over MoQ on the Player page. The private preview 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.
- independent output reconnection: automatic retries every 15 seconds for up to three minutes, followed by a manual retry option; successful media delivery resets the retry window
Configure output instances in Settings → Outputs. HLS, Stream and MoQ outputs support live configuration and activation changes. Program format, desktop and recording changes require a channel restart. When an output reconnects, other outputs continue running.
Requirements
- RAM and CPU usage depends on video resolution; at least 4 dedicated threads and 3GB 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 for details. - The macOS and Windows releases do not include FFmpeg shared libraries. Follow the macOS or Windows installation instructions to install them separately.
Install
Check install for details about how to install ffplayout.
Quick Start
See export and restore settings
for complete JSON configuration exports using --dump-config and --import-config.
- Install a package from the latest release.
- Start the ffplayout service as described in the installation guide.
- Open
http://<server-address>:8787and complete the first-time setup. It creates 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.
JSON Playlist Example
{
"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
}
]
}
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.
Day-Long Playlists
For continuous, day-based playout across multiple days, configure a day_start value and set length to 24 hours. For shorter scheduled runs, start ffplayout with a scheduler such as cron or systemd timers.
探索相关项目
加载中…