How to add prerolls

How to use pre-rolls

Plex

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

1) Open the Admin Dashboard, then under Advanced, select Plugins, and then open Repositories from the top bar.
2) Click the ‘+’ button, and add the Repository URL as ‘_https://dkanada.xyz/plugins/manifest.json_’, naming it whatever you like. Save.
3) Select Catalog from the top bar, and at the very bottom of the list will be ‘Intros’. Click and install the most recent version.
4) Restart Jellyfin, and go back to the Plugins category / My Plugins from the top bar and select ‘Intros’ to configure.


Link to repo: https://github.com/dkanada/jellyfin-plugin-intros