Jump to content

Is it possible for emby server to read description & capture images from a media file wrapped in strm file?


Recommended Posts

Barronli
Posted (edited)

Hi, community, I've got all my media files managed with strm files, since that brings me lots of flexibilities (like virtual libs across media sources, multiple languages libs over one media lib; and also I don't need to worry about accidentally deleting some of my movie files while sorting out my media library).

(I actually put all my media files in one directory, and all the Emby libs/metadata in another directory with strm files, so that they don't interfere with each other.)

But one thing that blocks me from using strm files for all. The Emby server seems not (?) to read the media info (like description, chapters) from the media files in the strm wrappers. The Image Capture does not extract images either.

(I have some home videos that I've been using AI tools to automatically generate captions, overview, and chapters; and using ffmpeg to embed them into the video files. )

I am wondering if there is a way to get the metadata and capture images from strm-ed media files? 

Thanks.

Edited by Barronli
clarification
Barronli
Posted

Thanks, Will have a try!

  • 4 weeks later...
Barronli
Posted

Since I have already lots of libs that are organized very well with strm wrappers (by maintaining their naming conventions), I only want to apply the Strm Extraction to my home video libraries.  I am wondering what the potential results are by applying it to my whole strm-based libraries. So before applying the plugin, I got some time to read the original source code of this plugin and tried to understand what it does to my libraries.

In https://github.com/faush01/StrmExtract/blob/main/StrmExtract/ExtractTask.cs
Looks like it basically has everything built-in as hard-coded, like the excluded items, the refreshing options. I didn't find anything specific to library types like home videos, or the reverse, non-home-videos.
query.ExcludeItemTypes = new string[] { "Folder", "CollectionFolder", "UserView", "Series", "Season", "Trailer", "Playlist" };
 

Is there anyway to limit the plugin to certain libraries, like library types, or library names, library paths?

Appreciate your helps!

 

TeamB
Posted
9 hours ago, Barronli said:

Since I have already lots of libs that are organized very well with strm wrappers (by maintaining their naming conventions), I only want to apply the Strm Extraction to my home video libraries.  I am wondering what the potential results are by applying it to my whole strm-based libraries. So before applying the plugin, I got some time to read the original source code of this plugin and tried to understand what it does to my libraries.

In https://github.com/faush01/StrmExtract/blob/main/StrmExtract/ExtractTask.cs
Looks like it basically has everything built-in as hard-coded, like the excluded items, the refreshing options. I didn't find anything specific to library types like home videos, or the reverse, non-home-videos.
query.ExcludeItemTypes = new string[] { "Folder", "CollectionFolder", "UserView", "Series", "Season", "Trailer", "Playlist" };
 

Is there anyway to limit the plugin to certain libraries, like library types, or library names, library paths?

Appreciate your helps!

 

you are correct, it is hard coded to process all items, if you want to limit it to a particular library you will need to have some way of specifying the parent item and use recursive lookup.

You would need to alter the query to only include the items from the libraries you are interested in.

https://github.com/faush01/StrmExtract/blob/da1ce795093d27a00efa26ec1e37ec7312cc3fbd/StrmExtract/ExtractTask.cs#L46-L50

You would need to add a UI that allows a user to select the libraries to induced in the STRM extract action and then add them to the query for lookup.

All doable, but not on my todo list, sorry. If you have a crack send me a PR and I will release a new version with your changes.

Barronli
Posted

Got it. I’ll see if I can squeeze in some time later to hack on this. For the moment I will use direct paths (not strm wrappers) for my home videos. 

Thanks again.

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