Jump to content

Plugin: StrmCompanion


Recommended Posts

soderlund
Posted (edited)

Hello! I have put together a small plugin to help when using .strm files. There are already existing plugins and functions for this, but i wanted to gather them under the same hood and add the ability to control the settings some more of the functions they provide. I made this for myself, and sharing if anyone else finds it useful :) 

 

image.png.d1ca3b44b66f13769845761045f24aa4.png

This plugin enables functions that is missing from native Emby when using .strm files. Most of the functions can also be used on regular media types(mkv, avi, etc). 

More info and latest release at: https://github.com/soderlund91/StrmCompanion

 

Features

Media info extract (specific for .strm files)
This plugin uses FFmpeg to probe movies and episodes in selected libraries to extract the media information. 
This enable Emby to recognize resolution, playtime, audio-codec, subtitles, etc that Emby natively cannot do. 
It also enables for faster startup since this process has already been made.  

Can be run as a scheduled task and/or auto detect on new media. 


Auto merge (all mediatypes)
The plugin can merge same movies and episodes across multiple libraries and folders. Emby native only merge if they are located within the same folder. This enable you to for example  have a folder of 4K movies and another one of 1080p. The plugin then finds multiple movies or episodes with the same IMDb or TVDb ID and merges them across all or selected libraries. 

Can be run as a scheduled task and/or auto detect on new media. 


Intro dectect (all mediatypes)
The built in Emby function to detect intros can not run on .strm files. This plugin uses the same technique as Emby (chromaprint) and some other tweaks to find the intro. The detection runs on user selected shows or season, it then posts the intro markers to Emby database and it will work as native in Emby player with the "skip intro" button.

The intro detect also can list all existing intro markers even if they are not from this plugin. 

Disclaimer
The intro detection is work in progress. It currently works really good on some shows, and not as good on others. The process is pretty slow (I have prioritized quality over speed) but when the fingerprinting is done you can change the settings and play around with them and it will be a lot quicker. The fingerprinting is the slow process and unaffected by the user settings. 
So do the fingerprinting and then test with other settings. 

 

Screenshots:

Quote

Start page
image.png.1b36e76472bc5fe8a585de8f6a760453.png

 

Intro detect
image.png.8dec648a84fce5d6a7281fbeece03e6e.png

 


Media info scan
image.png.3aff0c4180f0751361744f05a87e6eff.png

 

Merge version
image.png.7a49d30d0b0ad472a0cc5fe2d16bfe9a.png

 

StrmCompanion.dll

Edited by soderlund
Added .dll
GrimEvil
Posted (edited)

will give it ago and report back in 6000 years, my library is VERY large :D 

image.png.a642124e847328e8cee8bb3ed65ee0fd.png

Edited by GrimEvil
  • Haha 1
soderlund
Posted
4 hours ago, GrimEvil said:

will give it ago and report back in 6000 years, my library is VERY large :D 

image.png.a642124e847328e8cee8bb3ed65ee0fd.png

Damm! I thought my library was large with about 160k movies and episodes 😅 

You could bump up the simultaneous scan, but be carefull you don’t get rate limited, especially if it’s from an IPTV provider. I would go with 3, maybe 4 if that is the case. 

  • Haha 1
GrimEvil
Posted
12 hours ago, soderlund said:

Damm! I thought my library was large with about 160k movies and episodes 😅 

You could bump up the simultaneous scan, but be carefull you don’t get rate limited, especially if it’s from an IPTV provider. I would go with 3, maybe 4 if that is the case. 

Yes it is quite large....

Its fine I will keep it at the default, but I have no issue with rate limiting, but I am in no rush, will let it just do its thing :P

But so far so good and it does help that it has its own gui, at least I can now see what it is doing!

 

soderlund
Posted
1 hour ago, GrimEvil said:

Yes it is quite large....

Its fine I will keep it at the default, but I have no issue with rate limiting, but I am in no rush, will let it just do its thing :P

But so far so good and it does help that it has its own gui, at least I can now see what it is doing!

 

Yeah a good GUI was exactly what I felt was missing from existing plugins. 

If you have any feedback, good or bad, just let me know 😊 I’m vibe coding this 100% so I’ll just tell Claude to fix it in between diaper changes. 
 

I’m thinking of implementing another project I have made into the plugin as well where you can use a m3u file and create .strm files for all movies and series. 
https://github.com/soderlund91/strmcreator

But I’m unsure how it works with other providers, and might be better to keep them apart. 

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...