Plex Prerolls
Automates scheduling and generation of Plex preroll videos
Plex Prerolls is a Python-based tool to automate management of preroll (intro/trailer) listings for Plex Media Server. It builds Plex-compatible preroll lists on a schedule, can glob local files to remote Plex paths, and can auto-generate prerolls from media metadata via Plex webhooks.
Key Features
- Multiple scheduling types: always, date_range (with wildcards), weekly, monthly; selectable entries are aggregated at run time
- Weighting and disable_always options to influence random selection probability and section precedence
- Path globbing to translate local filesystem paths to Plex-visible remote paths for bulk preroll inclusion
- Docker-friendly with a provided container image and docker-compose support; recommended deployment via container
- Webhook ingestion and auto-generation of prerolls (recently added media) using Plex webhooks, YouTube assets, and configurable rendering/storage
- Configurable filesystem layout and config.yaml-driven settings; runtime exposes an HTTP endpoint for webhook callbacks
- Logging to a file and configurable cron/scheduling frequency for periodic execution
Use Cases
- Schedule themed or seasonal prerolls (holidays, events) with date_range and weight controls
- Auto-generate trailer-style prerolls for recently added items using Plex webhooks to drive generation
- Maintain a curated or randomized set of prerolls for large Plex libraries using path globbing and weighted lists
Limitations and Considerations
- Auto-generation and path globbing require the prerolls service to run on the same host or have access to the Plex filesystem view
- Plex webhook features require a Plex Pass subscription to deliver webhooks to the application
- Generating prerolls from online sources relies on external tools and cookies (e.g., YouTube extraction) which must be configured and maintained
- There is no built-in graphical management UI; configuration is file-based (config.yaml) and operated via container/CLI
Plex Prerolls is a focused utility for administrators who want deterministic and automated control over Plex preroll behavior. It is optimized for container deployment and for setups where the service can access Plex media paths and webhook events.
Categories:
Tags:
Tech Stack:
Similar Services

Jellyfin
Self-hosted media server for managing and streaming your library
Jellyfin is a free, self-hosted media server to organize, manage, and stream movies, TV, music, and photos to web, mobile, and TV clients.

Cobalt
Ad-free web media downloader for public social platforms
Cobalt is a self-hostable web media downloader for saving publicly accessible videos and audio from supported social platforms via a simple paste-a-link interface and API...
SRS (Simple Realtime Server)
High-performance real-time media server for live streaming and WebRTC
SRS (Simple Realtime Server) is a high-efficiency media server supporting RTMP, WebRTC, HLS, HTTP-FLV, SRT, MPEG-DASH, and GB28181 for real-time streaming.

Kodi
Open source home theater and media center software
Kodi is an open source media center for organizing and playing local and networked video, music, and photos with a TV-friendly interface and add-on ecosystem.


Invidious
Privacy-focused alternative web front-end for YouTube
Invidious is a lightweight, privacy-focused alternative front-end for YouTube with subscriptions, playlists, and an API—without Google accounts, ads, or tracking.

PeerTube
Federated video hosting and streaming with P2P delivery
PeerTube is a decentralized, ActivityPub-federated video hosting platform with live streaming, P2P WebRTC delivery, and customizable community-run instances.
Docker
Python
Python runtime