Jump to content

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
  • Thanks 1
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. 

  • Thanks 1
Granbuba
Posted

Buenísimo compa hoy llegando a mi casa llego aprobarlo se agradece mi compa aguante los strm

  • Thanks 1
soderlund
Posted
On 6/6/2026 at 6:43 PM, GrimEvil said:

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

image.png.a642124e847328e8cee8bb3ed65ee0fd.png

Any progress? :) 

GrimEvil
Posted (edited)

image.png.4541e9027fc0652766dd13902811fc25.png

Its on its way, I know it will take a long-time, but that is fine and expected with the size of my data, but its a good test for the plugin!

no issues so far and looks to be working as expected.:D

Edited by GrimEvil
  • Like 1
soderlund
Posted
On 6/11/2026 at 10:58 AM, GrimEvil said:

image.png.4541e9027fc0652766dd13902811fc25.png

Its on its way, I know it will take a long-time, but that is fine and expected with the size of my data, but its a good test for the plugin!

no issues so far and looks to be working as expected.:D

Good to hear!

One feature I have come to love that was missing from other plugins is the ability to run this on newly added media as it adds to the library. 
In theory you only have to run this big scan once, and from there it gets auto-scanned when added :) 

  • Like 1
  • 3 months later...
GrimEvil
Posted

I want it to merge all versions across my different folders, these are the settings

image.png.d605fca5a479398bc8ca5e1818755574.png

It said it had merged all items,  but for some reason it has not merged but un-merged all my media?

example tv shows

image.png.a098ec2fd37e3651c44bfa2334d1d9e8.png

 

drahmed86
Posted

Does merging across different folders mean moving the actual files to one folder or what ??

GrimEvil
Posted
1 hour ago, drahmed86 said:

Does merging across different folders mean moving the actual files to one folder or what ??

No it take your content across two different folders and merges them into one item within Emby, your folders and files stay in the same place.

  • 1 month later...
GrimEvil
Posted

So as an update, snice I last tested this I have redone my server, so it is now scanning my library again, lets see if I can get to finish this time :P 

soderlund
Posted
On 9/19/2026 at 1:06 PM, GrimEvil said:

I want it to merge all versions across my different folders, these are the settings

image.png.d605fca5a479398bc8ca5e1818755574.png

It said it had merged all items,  but for some reason it has not merged but un-merged all my media?

example tv shows

image.png.a098ec2fd37e3651c44bfa2334d1d9e8.png

 

I'm so sorry! I have totally missed this post.. 

This is a messed up behavior and shouldn't happen.. Was it a one time happening or did you encounter this at any more occasions?

 

2 hours ago, GrimEvil said:

So as an update, snice I last tested this I have redone my server, so it is now scanning my library again, lets see if I can get to finish this time :P 

Same here actually! I have run my movies now (about 18k) and it took a about 3 hours with 4 at a time. 
Now the series with 156k episodes. 

For this reason I made a few updates on the plugin but haven't released it. Ill get to it right away! 

 

soderlund
Posted (edited)

StrmCompanion 1.2.0.0

https://github.com/soderlund91/StrmCompanion/releases/tag/v1.2.0.0

Requires Emby 4.10.1.0 or later.

 

New

  • Split Versions: undo merged versions for a series, season, movie or the whole library. You can follow progress live and cancel the job.
  • Movie picker with type-ahead search. Merged movies are listed only once.

Fixed

  • Running merge jobs at the same time could split versions that were already merged. Merge and split jobs now run one at a time. Extra jobs wait in a queue, and duplicate triggers reuse the job that is already queued.
  • The settings page now reconnects to merge jobs that are waiting in the queue.

StrmCompanion.dll

Edited by soderlund
Added .dll
  • Thanks 1
GrimEvil
Posted

As allways I will give the new version ago and report back anything I find :D

 

miichaelp
Posted

Hey,

Thanks for the plug in its really useful.

I use IPTV and have scanned my whole libary, but have some strm files which have been pulled from my IPTV service which are dead the server side. 

Im looking to add this as part of a daily/weekly schedule but it looks like it will rescan any strm files which have no media found. So it would take a few hours just to find the newly added ones.

 

how does the auto-scan new .strm files work, im scared to enable this and then hit my IPTV rate limit and be banned for 24 hours

  • how does it know what new .strm files are?
  • When does it start probing 'new' .strm is it after an emby library scan 

Another column for unscanned items would be great and an option to only scan these

Thanks

image.png.4d2667388ebacc0ec05a9469e4d21448.png image.thumb.png.a8e9d483e46bffd26a80df3e1a07522f.png

soderlund
Posted
4 hours ago, miichaelp said:

Hey,

Thanks for the plug in its really useful.

I use IPTV and have scanned my whole libary, but have some strm files which have been pulled from my IPTV service which are dead the server side. 

Im looking to add this as part of a daily/weekly schedule but it looks like it will rescan any strm files which have no media found. So it would take a few hours just to find the newly added ones.

 

how does the auto-scan new .strm files work, im scared to enable this and then hit my IPTV rate limit and be banned for 24 hours

  • how does it know what new .strm files are?
  • When does it start probing 'new' .strm is it after an emby library scan 

Another column for unscanned items would be great and an option to only scan these

Thanks

image.png.4d2667388ebacc0ec05a9469e4d21448.png image.thumb.png.a8e9d483e46bffd26a80df3e1a07522f.png

Hi! 

Glad you find this plugin usefull :)
 
Auto-scan listens for Emby's "item added" event. When Emby adds a new movie or episode that is a .strm file in one of the libraries selected in the plugin, the plugin probes that item once. It start as soon as Emby adds the item, usually during a library scan. It doesn't wait for a scheduled task.

Auto-scan will only lister for newly added, so it wont scan dead files.

The retries of previously dead files will be conducted on the "Extract media info" task. This task scans all items without media info. Dead files, new files, and those that hit an error before (that might have come alive again). 

The "Concurrent scans" setting currently only applies to the scheduled task and manual scan, not to auto-scan. Each new item starts its own probe, so a large batch of new files could trigger a lot of probes at once. Normal small daily additions are much less of a concern, but if your provider is strict, I'd leave auto-scan off before a big import. I'm going to fix this asap (in a few days..) so that auto-scan also take the "concurrent scan setting" into account..

The best way for you if you are afraid of scanning dead files is to use a software that auto removes them. There are numerous different software that does this, and I have built my own tailored for my provider and my needs. Take a look at it if you are interested, I cant guarantee it will work if you have another provider than I have: 
https://github.com/soderlund91/strmcreator

 

miichaelp
Posted
5 hours ago, soderlund said:

Hi! 

Glad you find this plugin usefull :)
 
Auto-scan listens for Emby's "item added" event. When Emby adds a new movie or episode that is a .strm file in one of the libraries selected in the plugin, the plugin probes that item once. It start as soon as Emby adds the item, usually during a library scan. It doesn't wait for a scheduled task.

Auto-scan will only lister for newly added, so it wont scan dead files.

The retries of previously dead files will be conducted on the "Extract media info" task. This task scans all items without media info. Dead files, new files, and those that hit an error before (that might have come alive again). 

The "Concurrent scans" setting currently only applies to the scheduled task and manual scan, not to auto-scan. Each new item starts its own probe, so a large batch of new files could trigger a lot of probes at once. Normal small daily additions are much less of a concern, but if your provider is strict, I'd leave auto-scan off before a big import. I'm going to fix this asap (in a few days..) so that auto-scan also take the "concurrent scan setting" into account..

The best way for you if you are afraid of scanning dead files is to use a software that auto removes them. There are numerous different software that does this, and I have built my own tailored for my provider and my needs. Take a look at it if you are interested, I cant guarantee it will work if you have another provider than I have: 
https://github.com/soderlund91/strmcreator

 

Ahh okay I see, 

yeah if the autoscan new strms took into consideratin the concurrent limit then id use that when i run a library scan, if not a schedule to scan new strms would also work. 

Thanks for the suggestion but im using xtremetuner plugin to pull the VOD from dispatcharr so i think that if i delete them they will just get imported on the next scan. Even if nothing changed Taking a couple of hours isnt the end of the world and I could just live with that anyway.

Thanks for your help!

 

soderlund
Posted (edited)

StrmCompanion 1.3.0.0

https://github.com/soderlund91/StrmCompanion/releases/tag/v1.3.0.0

Requires Emby 4.10.1.0 or later.

 

Release Notes

This release focus on Media Info - smarter scanning and better statistics

WARNING
With the new "All libraries option", if no libraries are selected, Media Info now scans nothing. Previously, a full scan
would process every library. To keep scanning everything, open Media Info — Settings
and tick the new All libraries option.

New

  • All libraries option: always includes every library, also ones created later.
  • More detailed statistics: the stats table now shows Scanned, Not scanned, Failed
    and Queued, with a total row and a coverage bar.
  • Failed items list: see each failed item with the reason, number of attempts, last
    attempt and next retry. Retry all now starts a full scan that also retries them.
  • Automatic retry delays: failed items are no longer probed on every scan, which
    reduces requests to dead streams and the risk of provider rate limits. By default they
    wait 1 day, 3 days and then 7 days between attempts. You can change this under
    Scan behaviour. Failure history is kept across server restarts.

Updates

  • Concurrent scans is now a true overall limit: it applies to full scans and
    auto-scan combined. Adding many files at once no longer starts all their probes at the
    same time. Changes also apply to scans that are already queued.
  • Auto-scan no longer needs a restart: turning it on or off takes effect as soon as
    you save.
  • No duplicate probes: an item that is already queued or being probed is not probed
    again by another scan.

Fixed

  • Cancel now stops a full scan: previously the job was shown as cancelled while the
    scan kept running. A probe already in progress may still finish.
  • Start Scan is available during auto-scan: auto-scan jobs no longer hide the button
    or take the place of a full scan.
  • A probe timeout no longer cancels the whole scan: it now counts as a failure for
    that item only.
  • Last run results: the results view now shows full scans rather than a single
    auto-scan item.

Good to know

 

  • Existing dead streams appear under Not scanned until they have been probed once
    with this version. They then move to Failed.
  • Items without a video stream, such as audio-only streams, count as Failed.
  • Too see all changes in the UI, you might have to refresh your browser and clear cache.

StrmCompanion.dll

Edited by soderlund
added .dll
soderlund
Posted

Noticed now that I missed a bug in 1.3.0.0. 
It’s only a graphical bug: during a media scan the webpage doesn’t update. It makes the progress bar not moving and it looks like that nothing really is happening. 
 

The scan is working as it should! It just doesn’t update in the UI. 
 

Im not able to get a fix out there right now, I’ll do it asap. In the meantime refresh your browser page during a scan and you should see the progress. 
 

soderlund
Posted

StrmCompanion 1.3.1.0

https://github.com/soderlund91/StrmCompanion/releases/tag/v1.3.1.0

Requires Emby 4.10.1.0 or later.

 

Release Notes

Bug fixes and some improvements

Updates

  • Files added at the same time share one auto-scan job (with auto-scan on).
  • The settings page shows scans started elsewhere without a reload.
  • Lighter progress updates while a scan runs.
  • Stream URLs are hidden in error messages and logs.
  • Added option to disable/enable retry-wait (defaults to disabled)

Fixed

  • Media Info scans no longer call TheTVDB, TMDb or other metadata providers.
  • Media Info scans no longer overwrite metadata or manual edits.
  • Starting a scan twice no longer starts two scans.
  • Numerous UI fixes, e.g not updating stats. 

 

StrmCompanion.dll

  • Like 1

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