How to add prerolls
How to use pre-rolls
Plex
Instructions courtesy of u/xenithedflare
First make a folder for your preroll videos that the Plex media server has access to.
Put your videos into newly created folder, click and copy folder path/video.mp4. I made this easier for myself by making a .text file and copied+pasted paths into that.
If you made a .txt file like I did, copy all the text and paste it into this text field under Settings > Extras > Advanced. Pay attention to the use of semi-colons, or if you’re a complete monster, commas. Semi-colons will randomize the pre-roll while commas play each one sequentially (annoying!)
Navigate to Settings > Libraries, hover over Movies library and the edit button will appear. Click it.
Click Advanced and select Enable Cinema Trailers. Done!
Linux and Mac
Courtesy of u/alvaropinot
I wanted to share a quick way of getting all the files paths in case anyone is willing to preserve the original filenames (*nix or Mac users).
Running in a terminal inside the folder you are using for your pre-rolls will give a semicolon separated list of all the files there.
ls -d $PWD/* | tr '\n' ';'
or if you want it to be copied directly into your clipboard
ls -d $PWD/* | tr '\n' ';' | pbcopy
Now paste it in the (really tiny) input in Plex and you should be good to go. No more renaming and manual adding new pre-rolls.
Windows
Courtesy of u/EpicWolverine
Install Windows Subsystem for Linux and Windows Terminal
Once WSL is installed on your Windows machine, cd
to the directory with your pre-rolls in it.
Open Windows Terminal and issue the following command:
ls -d $PWD/*.mp4 | tr ‘\n’ ‘;’ | sed “s/\/mnt\/d/D:/g”
Where the D: in the command is your drive letter.
Emby
First make a folder for your preroll videos that the Emby media server has access to.
Put your videos into newly created folder, click and copy folder path/video.mp4. I made this easier for myself by making a .text file and copied+pasted paths into that.
Cinema Intros is configured in the server dashboard by navigating to Playback -> Cinema Intros. By default it is disabled.
Specify your own custom videos to be used with cinema intros by simply entering the pre-roll directory’s path in this field.
Jellyfin
Open the dashboard in Jellyfin, then select Plugins
and open Repositories
at the top.
Click the +
button, and add the repository URL below, naming it whatever you like. Save.
https://raw.githubusercontent.com/dkanada/jellyfin-plugin-intros/master/manifest.json
Select Catalog
at the top and click on ‘Intros’ at the very bottom of the list. Install the most recent version.
Restart Jellyfin and go back to the plugin settings. Select Installed
at the top and then ‘Intros’ to configure.
Link to repo: https://github.com/dkanada/jellyfin-plugin-intros