Jump to content

Strm Extract


Recommended Posts

crusher11
Posted
31 minutes ago, TeamB said:

the plugin does not include extras

Any chance of that changing?

Posted
9 hours ago, crusher11 said:

Any chance of that changing?

i have no plans at the moment to add it

gtest4soft
Posted

please help me, how to install this plugin.

Because I'm new to emby

Posted
Quote

To use it install the plugin from the catalogue and look in the Schedule Tasks, there should be a new one.

Install it from the Emby plugin Catalogue, in the Emby Web Client go to the admin dashboard, select plugins on the left, then at the top select Catalogue, the plugin in under the "Metadata" list, scroll though the metadata plugins until you find it.

 

 

  • 4 weeks later...
rbjtech
Posted

@TeamBI've just been playing with the code.

I'm going to use this plugin as a post processing of the 'watchlist' on the home screen I'm writing (scraping a Playlist) - and was wondering why it only worked on some STRM files - I believe it was the mediastream count.  I have a lot of strm's with associated subs (on the same path as the strm) and thus the mediastream count is no longer zero.   I've just removed it for the time being - and it appears to work fine.   Was there any reason why you added this condition ?

if(!string.IsNullOrEmpty(item.Path) &&
    item.Path.EndsWith(".strm", StringComparison.InvariantCultureIgnoreCase)) // &&  Removed stream count as some strm's also have srt etc
    // item.GetMediaStreams().Count == 0)

Minor issue - but I also excluded the PhotoAlbum type from the Query - or it just fills the log with dropped items.. 

query.ExcludeItemTypes = new string[] { "Folder", "CollectionFolder", "UserView", "Series", "Season", "Trailer","Playlist","PhotoAlbum" };  // Added PhotoAlbum

Thanks !

Posted
7 hours ago, rbjtech said:

I believe it was the mediastream count. 

My reasoning was if the mediastream count == 0 then it has not been scanned yet but as you have pointed out if there are other local items in the path these are probably being picked up as streams and it will be > 0 but still not be scanned.

7 hours ago, rbjtech said:

Was there any reason why you added this condition ?

there was probably a reason at the time but I dont remember.

 

  • Thanks 1
  • 4 weeks later...
Posted

Hello, may I ask if this software can read the beginning and ending of strm

GrimEvil
Posted
On 21/05/2024 at 08:15, lifujie said:

Hello, may I ask if this software can read the beginning and ending of strm

I think it just plays the STRM for a couple of seconds to get the media info

TeamB
Posted
1 hour ago, grimevil said:

I think it just plays the STRM for a couple of seconds to get the media info

This plugin calls the item.RefreshMetadata() action on items with the

options.EnableRemoteContentProbe = true;

https://github.com/faush01/StrmExtract/blob/da1ce795093d27a00efa26ec1e37ec7312cc3fbd/StrmExtract/ExtractTask.cs#L84

This forces the server to do a refresh of the metadata and probe the remote data the STRM points to.

 

 

  • Agree 1
Chillout
Posted

Is it possible to add a condition to re-scan the video source if its less than, say 20 seconds? 

I'll pre-load an entire TV season in emby and my iptv provider adds a 15sec video clip saying "not available, or error".  Eventually the video will go live but the media info wont get updated by strm extract. thanks

 

  • 4 weeks later...
zaHrecsohbiw
Posted (edited)

I have installed this plugin and have been letting it run in order to process my (large number of) strm files. 

One thing that I would appreciate some clarification on, as an EMBY n00b, is what actual benefits there are for Emby to probe and cache information about a media file. I suppose it might be obvious, but im just not making the connection, and I didn't necessarily find the answer that I was looking for in your initial post. 

 

I think, anecdotally, it may be loading the remote content a bit quicker than before, but I'm more curious if it helps in other ways that aren't as directly observable.

 

It's not strictly something that I guess you or your plugin description need to / are responsible for answering. I'm really just looking for any Emby developer documentation that describes exactly what constitutes "metadata" ( as in, the data collection that IMetadataService.RefreshMetadata would update) is and how it is used by the system.

Edited by zaHrecsohbiw
zaHrecsohbiw
Posted

@Lukeis there a place that I can look to read about how this sort of file metadata is beneficial for Emby to know ahead of time?

emby-file-metadata.png

Happy2Play
Posted
6 minutes ago, zaHrecsohbiw said:

@Lukeis there a place that I can look to read about how this sort of file metadata is beneficial for Emby to know ahead of time?

emby-file-metadata.png

Not that I know of but without it the server has no way to know how to deliver the content per device playback capabilities so nothing can play.  But as you mentioned it is primarily a timing issue as without it you have to wait for probe to get media info on first playback.

  • Like 1
zaHrecsohbiw
Posted
12 minutes ago, Happy2Play said:

Not that I know of but without it the server has no way to know how to deliver the content per device playback capabilities so nothing can play.  But as you mentioned it is primarily a timing issue as without it you have to wait for probe to get media info on first playback.

I see. so I guess ffprobe is scanning the media before first playback in order to determine what options to pass to ffmpeg? That makes sense, and as I thought, is a rather obvious explanation. I guess I was hoping that it would be the difference between letting ffmpeg automatically determine the codec configuration (perhaps incorrectly), and giving it well defined parameters. 

Ive had several issues with playback of strm files, particularly with scrubbing through the file, or with out-of-sync audio, and I was hoping that this plugin may help. In any case, it's still nice to reduce the time between pressing play and having the video start.

  • 1 month later...
horstepipe
Posted

any chance adding an option to select the libraries this plugin scans for?
I'd just need it for my audio book libraries.

 

BR

  • Agree 1
  • 1 month later...
soderlund91
Posted

Awesome plugin, been using it for quite some time now and it's been working great!

However, lately I have recognized that my series/episodes doesn't populate with any media info. I'm certain that it did before. I'm not sure when this issue started to appear, but i noticed in the last few days and i'm guessing after a server update. Currently running 4.8.10.0 on Linux. I believe this might have started after 4.8.7., but that is just a guess...

The task is running without any issues or errors. 


What kind of logs do you need to help me figure this out? 

soderlund91
Posted
1 hour ago, soderlund91 said:

Awesome plugin, been using it for quite some time now and it's been working great!

However, lately I have recognized that my series/episodes doesn't populate with any media info. I'm certain that it did before. I'm not sure when this issue started to appear, but i noticed in the last few days and i'm guessing after a server update. Currently running 4.8.10.0 on Linux. I believe this might have started after 4.8.7., but that is just a guess...

The task is running without any issues or errors. 


What kind of logs do you need to help me figure this out? 

Well, this is embarrassing.. I was totally sure that the plugin also did series before. Reading the code i found that series and episodes where excluded. Rebuilded the dll with the changes and now it seems to be scanning a shit ton of files.

I totally get why episodes are excluded, the scan could take forever. Me myself have about 110.000 of episodes, and maybe this was a bad idea to scan all of these..
Which lead me to  the same question as horstepipe.
 

It would be awesome to choose what libraries to include to the scan. For example a library with "trending now" or "recommended" series would be great to have already extracted the media info. But a serie nobody is ever going to watch would be a waste of time and resources to scan.
My coding skills is very limited to be able to do it myself.. 

On 8/23/2024 at 2:50 PM, horstepipe said:

any chance adding an option to select the libraries this plugin scans for?
I'd just need it for my audio book libraries.

 

BR

 

Posted

i wrote this plugin as a POC to see if it could be done. I actually dont use it but there were a lot of people that were complaining about strm entries not having all the metadata filled in so I created this plugin as an experiment.

adding a bunch of settings and config to emby plugins is actually a pain in the ass, my hope was someone would pick this plugin up and run with it but we are seeing fewer and fewer devs willing to contribute to plugins etc recently so i am not sure that is going to happen now.

creating ux to selectively include or exclude libraries is not a small amount of work for plugin dev, hopefully someone can step up and take that on.

  • Agree 1
  • 4 weeks later...
Posted

this was working for me for months. But now all meta data is gone! I think because of the emby update for nfo stuff, but im not sure. I am sure the data is gone and i cannot rescann the strm files, it only do his thing on new files. re-installed the plugin but the same happening.

 

maybe it is just another Emby bug because i als notice tags are removed from items even when tags are locked 🙄

  • 5 weeks later...
Posted

is there a set of instructions somewhere to see how to use the plug in? i have it installed but do i have to point to a strm file?

Posted
36 minutes ago, whubbartt said:

is there a set of instructions somewhere to see how to use the plug in? i have it installed but do i have to point to a strm file?

This plugin simply accesses the existing strm files so that they are properly seen by emby and thus their media info extracted.

Without the plugin, the strm is only seen by name, but not actually accessed (by design, because most strm files are remote files or urls)

Posted

So do I just take my m3u file with the strm links and add them to live tv? or do I the copy the entire M3u copy

to a VOD library folder and maybe change from m3u to strm extension?

I did notice if i extract one stream from the m3u and save it with a strm extension and place in vod it works

but I would rather not extract 100 streams manually. Please elaborate a little more. I really appreciate the help.

Posted
21 hours ago, whubbartt said:

So do I just take my m3u file with the strm links and add them to live tv? or do I the copy the entire M3u copy

to a VOD library folder and maybe change from m3u to strm extension?

I did notice if i extract one stream from the m3u and save it with a strm extension and place in vod it works

but I would rather not extract 100 streams manually. Please elaborate a little more. I really appreciate the help.

You should use a program to extract your vod m3u into strm files, then add them to an emby libray. This plugin then will prove the media info.

  • 2 months later...
horstepipe
Posted

Hey @TeamB
What API call do you use to probe the files? I'd like to set it up with ScripterX to probe only new strm files.

 

BR

Posted (edited)
3 hours ago, horstepipe said:

Hey @TeamB
What API call do you use to probe the files? I'd like to set it up with ScripterX to probe only new strm files.

 

BR

it uses the refresh metadata function with the EnableRemoteContentProbe option set to true

https://github.com/faush01/StrmExtract/blob/da1ce795093d27a00efa26ec1e37ec7312cc3fbd/StrmExtract/ExtractTask.cs#L91

 

 

Edited by TeamB
  • Thanks 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...