Preroll Manager
The Preroll Manager lets you configure videos that play before your media content, with scheduling support for seasonal or event-based prerolls.
Preroll Presets
Section titled “Preroll Presets”Presets store references to preroll media files on your server.
Creating a Preset
Section titled “Creating a Preset”- Navigate to Tools → Preroll Manager
- Click Add Preset
- Enter a name (e.g., “Holiday 2024”, “Default Intro”)
- Enter the file path to the preroll video on your server
- The path is validated server-side to confirm the file exists and is readable
Path Validation
Section titled “Path Validation”When you enter a preroll file path, Librariarr validates it in two ways:
- Directory whitelisting — The path must fall within an allowed directory. By default, the allowed prefixes are
/media,/data,/mnt, and/opt/prerolls. You can customize this with thePREROLL_ALLOWED_PATHSenvironment variable (comma-separated list of directory prefixes). - Read-only file access check — Librariarr verifies the file exists and is readable from inside the container. It only needs read access — preroll files are never modified.
Supported Formats
Section titled “Supported Formats”Preroll files can be any video format supported by your media server (MP4, MKV, AVI, etc.).
Preroll Schedules
Section titled “Preroll Schedules”Schedules control when specific preroll presets are active.
Schedule Types
Section titled “Schedule Types”Recurring
Section titled “Recurring”Set repeating schedules tied to specific days and times.
- Days of week: Select which days the preroll should play
- Start/End time: 24-hour format time window
- Example: Play holiday prerolls on weekends from 6:00 PM to 11:00 PM
One-Time
Section titled “One-Time”Set a single window with specific start and end dates/times.
- Example: Special event preroll from 2024-12-31 20:00 to 2025-01-01 03:00
Seasonal
Section titled “Seasonal”Use built-in holiday presets or define custom date ranges.
- Holiday presets: New Year, Valentine’s Day, Easter, Halloween, Christmas, and more (dates auto-calculated)
- Custom: Define your own annual date range
Priority
Section titled “Priority”Each schedule has a priority value. When multiple schedules are active simultaneously, the highest-priority schedule’s preroll path is used.
Combining Presets
Section titled “Combining Presets”The Preroll Manager includes a preset combination tool in the UI. Select multiple presets and combine their paths using:
- Sequential (comma-separated) — play all selected prerolls in order
- Random (semicolon-separated) — media server picks one at random
The combined path can then be used in a schedule’s preroll path field. This leverages your media server’s native path separator support (Plex uses ; for random and , for sequential).
How It Works
Section titled “How It Works”The preroll enforcer checks every 30 seconds:
- Evaluates which preroll schedules are currently active
- Selects the highest-priority active schedule
- Sets that schedule’s preroll path on the media server
Limitations
Section titled “Limitations”- Plex: Preroll support works by setting the preroll path via the Plex API. Requires Plex Pass for the preroll feature.
- Jellyfin/Emby: Preroll support varies by server version and may require plugins or specific configuration.
- Changes to active prerolls take effect on the next playback start — currently playing content is not affected.