soderlund 231 Posted June 6 Posted June 6 (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 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 Intro detect Media info scan Merge version StrmCompanion.dll Edited June 6 by soderlund Added .dll 1
GrimEvil 111 Posted June 6 Posted June 6 (edited) will give it ago and report back in 6000 years, my library is VERY large Edited June 6 by GrimEvil 1
soderlund 231 Posted June 6 Author Posted June 6 4 hours ago, GrimEvil said: will give it ago and report back in 6000 years, my library is VERY large 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. 1
GrimEvil 111 Posted June 7 Posted June 7 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 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 231 Posted June 7 Author Posted June 7 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 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. 1
Granbuba 1 Posted June 7 Posted June 7 Buenísimo compa hoy llegando a mi casa llego aprobarlo se agradece mi compa aguante los strm 1
soderlund 231 Posted June 10 Author Posted June 10 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 Any progress?
GrimEvil 111 Posted June 11 Posted June 11 (edited) 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. Edited June 11 by GrimEvil 1
soderlund 231 Posted June 12 Author Posted June 12 On 6/11/2026 at 10:58 AM, GrimEvil said: 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. 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 1
GrimEvil 111 Posted September 19 Posted September 19 I want it to merge all versions across my different folders, these are the settings It said it had merged all items, but for some reason it has not merged but un-merged all my media? example tv shows
drahmed86 6 Posted September 19 Posted September 19 Does merging across different folders mean moving the actual files to one folder or what ??
GrimEvil 111 Posted September 19 Posted September 19 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.
GrimEvil 111 Posted October 29 Posted October 29 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
soderlund 231 Posted October 29 Author Posted October 29 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 It said it had merged all items, but for some reason it has not merged but un-merged all my media? example tv shows 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 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 231 Posted October 29 Author Posted October 29 (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 October 29 by soderlund Added .dll 1
GrimEvil 111 Posted October 30 Posted October 30 As allways I will give the new version ago and report back anything I find
miichaelp 0 Posted November 6 Posted November 6 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
soderlund 231 Posted November 6 Author Posted November 6 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 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 0 Posted November 6 Posted November 6 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 231 Posted November 7 Author Posted November 7 (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 November 7 by soderlund added .dll
soderlund 231 Posted November 7 Author Posted November 7 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 231 Posted November 8 Author Posted November 8 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 1
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now