Jump to content

MediaInfo For Emby Plugin(HDR, Vision, Atmos, DTS:X)


Recommended Posts

rbjtech
Posted
19 hours ago, vaise said:

I backed away from this and uninstalled it before use.  I’m after something more native that will just change embys metadata rather than the files.  The initial build of my backup emby server was a very time consuming activity, and I just backup changes now so it’s quick.  I Can’t have the entire lot changed.

i have had radarr set for many years to rename the files with the media info video and audio info, and scanned those for now and got a list of DV media with supposed HDR fallback to test on my sons HDR only TV.  These will teplace the 4K library ones then on primary and backup systems.

Do what I did - and simply apply the changes to your backup system thus the archive attribute bit will be older on the backup system, thus it will not need to update it.

But I get it - some people don't want their file names changed (apart for the obvious reason, I'm really not sure why people would NOT want all their files names and track titles kept uniform ..).

rbjtech
Posted (edited)

v4.0.1.42

Added 'decade' tagging a while ago to my own version (lol) but I don't ever recall uploading it on here.

This adds a tag with the decade that film or episode belongs to - prefixed with a hash.  ie #1980   This allows you to quickly filter for all films in the 1980's for example.

WARNING - there is no on/off switch for this decade tag - so if you use this version, it will add it regardless.    I never got around to adding another toggle switch..

Emby.MediaInfo.zip

As always, please backup the previous DLL before overwriting with the attatched.  A restart will be required and a refresh of items if you want the new tags added.

Edited by rbjtech
added red for warning
  • Like 2
Neminem
Posted
2 hours ago, rbjtech said:

WARNING - there is no on/off switch for this decade tag - so if you use this version, it will add it regardless.    I never got around to adding another toggle switch..

Can you mark this In RED People do not read notes 🤣😂

  • Thanks 1
arrbee99
Posted

What does the decade tag do - does it add a tag to the database or change the original media file somehow ?

rbjtech
Posted
11 hours ago, arrbee99 said:

What does the decade tag do - does it add a tag to the database or change the original media file somehow ?

It just adds an emby tag for the decade (database) - it doesn't touch the original file.

15 hours ago, jaycedk said:

Can you mark this In RED People do not read notes 🤣😂

Done.  I should stop being lazy and add a toggle like I did with the others... 

Being honest, I'm still waiting (it's only been 8 years .. 🤬) on the official smart playlists before doing any more with this plugin on tags.   I might break it out or add as a tag section as there is so much that could be done with tags.

 

  • Like 2
  • Thanks 1
mickle026
Posted (edited)
5 hours ago, rbjtech said:

It just adds an emby tag for the decade (database) - it doesn't touch the original file.

I also have this in one of my unreleasd plugins that I use for my own reasons daily :) , I add the actual year as (example) #1987 and the decade as #1980's.  So very similar!
I think with at least two people who are able to impliment it did so, then it shows that it would get used by many more.....

Saves me from messing around with the "as I feel -my personal opinion" - awkward at best filters, and the very lack lustre search function that devs thing is soooo good, but is actually very limited.  There should be at least an avanced search that enables you to search by media type alone, and return more than 50 results.  Have you tried searching for something like the anime called "blood" ?, it simply doesnt even show because of how unhelpful the search is when there are literally 1000's of movies with that in their name, by adding tags you can at least negate this and use the tag system to filter all movies with blood in their name.  Clcik one with that tag then list them all with that tag.

I like TAGS :)

Edited by mickle026
  • Agree 1
rbjtech
Posted
3 hours ago, mickle026 said:

I also have this in one of my unreleasd plugins that I use for my own reasons daily :) , I add the actual year as (example) #1987 and the decade as #1980's.  So very similar!
I think with at least two people who are able to impliment it did so, then it shows that it would get used by many more.....

Saves me from messing around with the "as I feel -my personal opinion" - awkward at best filters, and the very lack lustre search function that devs thing is soooo good, but is actually very limited.  There should be at least an avanced search that enables you to search by media type alone, and return more than 50 results.  Have you tried searching for something like the anime called "blood" ?, it simply doesnt even show because of how unhelpful the search is when there are literally 1000's of movies with that in their name, by adding tags you can at least negate this and use the tag system to filter all movies with blood in their name.  Clcik one with that tag then list them all with that tag.

I like TAGS :)

Agreed - the search and filtering is very limited.   The fact you still can't compound (AND) or expand (OR) a search in 2024 is frankly a little embarassing for the product ..

Yea I just created the decade logic to find all the '80's movies' for example in a single button click.  Either via the filter or from the Tag option itself.

Really not sure why this hasn't been implemeted tbh ..

image.png.f6d654af5dc57f49f9f0fc226edc9a77.png

Of course the ideal place to have it is when you filter by date... but after all these years, it's still missing .. ☺️

image.png.e04e17ac8d886d94ae8de4ca3e9214f5.png

 

  • Agree 1
arrbee99
Posted

The toggle bit and breaking tags out sounds good.

arrbee99
Posted

I installed the plugin and it appears. I have no idea how to tag by decade. Do I select something under Item Tagging maybe ?

  • Thanks 1
rbjtech
Posted
6 hours ago, arrbee99 said:

I installed the plugin and it appears. I have no idea how to tag by decade. Do I select something under Item Tagging maybe ?

Good call - As I said, I was being lazy and had to look at my own code to remember where I added it lol ..

image.png.2acfb0c3d9e28537bdbcc94cdf55aeb5.png

It's hooked into the 'Edition' tag option - so turning that on will also turn on the 'decade' tagging option.

image.png.86cf55a5a4d8c9eebdf5c8d273c9849a.png

I'll add a proper toggle sometime ...

  • Thanks 1
arrbee99
Posted

Thanks for the info.

I guess I still have to make library selections though to get it to work ? Where it says 'Warning: This will write a title directly into your mkv files for each track' - you say that won't actually happen for just this decades tag ?

mickle026
Posted (edited)

No safety checks

Tag = "#" + Year.ToString().Substring(0, 3) + "0's";
Edited by mickle026
MrLinford
Posted
On 01/03/2024 at 00:58, SimCity said:

Well boredom may have set in.

After reading MrLinford's process of setting up the pre-requisite apps in docker. I decided to transform this into a LSIO docker-mod that will allow simply adding an environment variable to the container definition to have the creation of the container include the apps required.

Almost all of this is entirely based on MrLinford's script, diced and sliced into parts that leverage LSIO's standardised structure for customising their containers and some added checks in place to ensure that it wont try and install things if they already are or its not a compatible base image. There is also an option to enable the BifTools stuff to be installed if you wish to use the BIF generator.

https://github.com/SimCity/emby-mediainfo-plugin-prereq has all the details on how to use.

Quick outline:

Add the environment variable to the LSIO Emby container definition:
	DOCKER_MODS=ghcr.io/simcity/emby-mediainfo-plugin-prereq:latest

Optionally, to be able to utilise BIF generator, also add:
	INCLUDE_BIFTOOL=TRUE 

Start container. If the container is already running, you will need to restart the container (not just restart emby) for the changes to apply.

When container is up, it will also initialise with all the packages and files required for MediaInfo to work.

In the settings for MediaInfo plugin, the locations are:
	/bin/mediainfo
	/bin/mkvpropedit
	/bin/biftool

@SimCitylinuxserver updated their image yesterday and your plugin is broken.

My script still works fine. I tried to raise an issue on GitHub but couldn't.

  • Like 1
Posted
19 hours ago, MrLinford said:

@SimCitylinuxserver updated their image yesterday and your plugin is broken.

My script still works fine. I tried to raise an issue on GitHub but couldn't.

thanks for the heads up. will look into it once I have time (recently started a new job)

  • Like 1
Posted (edited)

@MrLinford, I'm getting similar issues running your script direct on a fresh container based on the latest beta release.

 

Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 mkvtoolnix : Depends: libflac8 (>= 1.3.0) but it is not installable
              Depends: libfmt8 (>= 8.1.1+ds1) but it is not installable
 mkvtoolnix-gui : Depends: libflac8 (>= 1.3.0) but it is not installable
                  Depends: libfmt8 (>= 8.1.1+ds1) but it is not installable
E: Unable to correct problems, you have held broken packages.

looks like iinuxserver.io changed the base version to noble, was jammy before.

Still looking into what the solution will be (last resort will be to fall back to building from scratch)

Edited by SimCity
typo
MrLinford
Posted (edited)
29 minutes ago, SimCity said:

@MrLinford, I'm getting similar issues running your script direct on a fresh container based on the latest beta release.

 

Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 mkvtoolnix : Depends: libflac8 (>= 1.3.0) but it is not installable
              Depends: libfmt8 (>= 8.1.1+ds1) but it is not installable
 mkvtoolnix-gui : Depends: libflac8 (>= 1.3.0) but it is not installable
                  Depends: libfmt8 (>= 8.1.1+ds1) but it is not installable
E: Unable to correct problems, you have held broken packages.

looks like iinuxserver.io changed the base version to noble, was jammy before.

Still looking into what the solution will be (last resort will be to fall back to building from scratch)

My scripted ran but with errors now. 

Edited by MrLinford
MrLinford
Posted

What is the current version of mkvtoolnix that is supported by the plugin?

Posted

got mine working again as well. had to add the jammy repos that held the missing dependencies back in. 
also added some more checks so if it does break again it fails gracefully.

  • Like 1
Posted

DockerMod is fully operational now. Have tested it on latest beta branch

Anyone using this, please stop and restart the container. This will cause it to fetch the latest version (assuming you haven't hardcoded a version ofc)

matrixtech
Posted (edited)
14 hours ago, MrLinford said:

@SimCityUpdated my script and appears to be working now: https://github.com/MrLinford/Docker-MediaInfo-PreReq

Doesn't this install version 86 (newest) of mkvtoolnix which is unsupported? I believe version 71 is the newest supported.

Also installing both versions of mkvtoolnix is not needed, the command line version is lighter and does everything.

Edited by matrixtech
add info
matrixtech
Posted

Unfortunately noble does not have an older version than 83. So either the plugin needs to update its supported versions or people will need to manual toggle the "OVERRIDE MKVPROPEDIT VERSION CHECK" each time they run the task.

I've checked and v86 does run properly with the plugin it just throws the error and will not go unless you check the override each time. Ill be using the ls213 release from linuxserver until I need to change as its still jammy which supports much older mkvtoolnix packages.

If you find a way to get v71 or lower installed on noble please let me know.

matrixtech
Posted

For anyone interested I have been using and updating this docker image which installs the packages for Media Toolbox.

I'm using this on TrueNAS Scale and it has been working with no issues for a while now. I found it was the easiest way to get the plugin working over there.

 

https://hub.docker.com/r/makacan/emby

  • Thanks 1
rbjtech
Posted

The mkvtoolnix version control was added because a certain version was corrupting mkv files.  I'll check the code for the version but don't have access to it right now but will post when I do in abouts a weeks time.

Pls let me have any updates for the install guides on the wiki.

Posted
1 hour ago, matrixtech said:

Doesn't this install version 86 (newest) of mkvtoolnix which is unsupported? I believe version 71 is the newest supported.

Also installing both versions of mkvtoolnix is not needed, the command line version is lighter and does everything.

no it does not.

It defines a version: mkvtoolnix=70.0.0-0~ubuntu2204bunkus01

And yes, GUI isn't required for the plugin (the script also works outside of docker containers where you might have a gui to us it wiht).

 

I have noticed earlier today that someone has made a different docker mod to mine about a month ago and had LSIO create an official branch for it. That one DOES install the latest version and that is why I raised an issue against it as it is very misleading due to it not following the wiki guidelines.

 

Basically, add the jammy repos for main and universe before running the script and it will work (my dockermod does this) 

I believe only main is required for CLI.

 

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