Plex Prerolls

Plex Prerolls

Automates scheduling and generation of Plex preroll videos

89stars
2forks
Last commit: 7mo ago
Repo age: 3y old

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:

Share:

Similar Services

Jellyfin

Jellyfin

Self-hosted media server for managing and streaming your library

47.7k
4.3k
Last commit: 2d ago

Jellyfin is a free, self-hosted media server to organize, manage, and stream movies, TV, music, and photos to web, mobile, and TV clients.

Alternative to:
Plex
Plex
+19
Cobalt

Cobalt

Ad-free web media downloader for public social platforms

38.2k
3.1k
Last commit: 28d ago

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...

Alternative to:
iTubeGo
iTubeGo
+4
SRS (Simple Realtime Server)

SRS (Simple Realtime Server)

High-performance real-time media server for live streaming and WebRTC

28.4k
5.6k
Last commit: 1mo ago

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.

Alternative to:
Wowza Streaming Cloud
Wowza Streaming Cloud
+8
Kodi

Kodi

Open source home theater and media center software

20.3k
6.5k
Last commit: 1d ago

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.

Alternative to:
Microsoft Windows Media Player
Microsoft Windows Media Player
+7
Invidious

Invidious

Privacy-focused alternative web front-end for YouTube

18.4k
2.1k
Last commit: 17h ago

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

Alternative to:
YouTube
YouTube
PeerTube

PeerTube

Federated video hosting and streaming with P2P delivery

14.4k
1.7k
Last commit: 3d ago

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

Alternative to:
YouTube
YouTube
+8