Jump to content

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


Recommended Posts

rbjtech
Posted (edited)
52 minutes ago, Neminem said:

Deadpool & Wolverine (2024) - Release Dates — The Movie Database (TMDB) (themoviedb.org)
Ok I see its what Emby sees as an premier date 👍if I'm not mistaken 😂🤣

 

 

Hmm - you're right.

This is going to need a little bit more logic to make it work.

In this instance, it was a 'Theatrical' release (cinema) 3 months ago - but on Digital Release early this month - and that's what people are going to want to use - either that or the Physical release date.

I don't *think* these other dates are available in Emby - or it would be in the metadata.

I think I just need to apply some basic logic and say that if the 'added' date is greater than 6 months, then use the Premier Date .. otherwise don't mess with the added date.    If I don't do this, then anything added with a Premier date is going to disappear off the 'Recently Added' row when it really shouldn't ?

Edited by rbjtech
  • Like 1
Neminem
Posted (edited)

Correct.

I have noticed emby only uses cinema dates.

And that drives me crazy at times 😉

 

Edited by Neminem
rbjtech
Posted

So I've had a play - TMDB API supports getting ALL the release dates specified by type

Release Type
Premiere 1
Theatrical (limited) 2
Theatrical 3
Digital 4
Physical 5
TV 6

https://developer.themoviedb.org/reference/movie-release-dates

I've no idea why Emby just uses the Premiere date (type 1) - as the others are seemingly available (in our case we need type 4 or 5).

A quick TMDB API request in powershell/c# brings me the data - using my own TMDB API Key ..

@Luke @ebr

Is there any way to utilise the 'type' from the TMDB output and specify we want to use type 3 or 4 if it exists ?

{
  "id": 533535,
  "results": [
    {
      "iso_3166_1": "AE",
      "release_dates": [
        {
          "certification": "",
          "descriptors": [],
          "iso_639_1": "",
          "note": "",
          "release_date": "2024-07-25T00:00:00.000Z",
          "type": 3
        }
      ]
    },
.......

If not, then we 'could' query TMDB ourselves as part of the Plugin but the user would need to provide their own TMDB API Key (it's free, so not a big deal) - but it would be better on the Provider if Emby simply got a more useful value that is relevant to the product.

 

 

 

  • Like 1
Posted
32 minutes ago, rbjtech said:

So I've had a play - TMDB API supports getting ALL the release dates specified by type

Release Type
Premiere 1
Theatrical (limited) 2
Theatrical 3
Digital 4
Physical 5
TV 6

https://developer.themoviedb.org/reference/movie-release-dates

I've no idea why Emby just uses the Premiere date (type 1) - as the others are seemingly available (in our case we need type 4 or 5).

A quick TMDB API request in powershell/c# brings me the data - using my own TMDB API Key ..

@Luke @ebr

Is there any way to utilise the 'type' from the TMDB output and specify we want to use type 3 or 4 if it exists ?

{
  "id": 533535,
  "results": [
    {
      "iso_3166_1": "AE",
      "release_dates": [
        {
          "certification": "",
          "descriptors": [],
          "iso_639_1": "",
          "note": "",
          "release_date": "2024-07-25T00:00:00.000Z",
          "type": 3
        }
      ]
    },
.......

If not, then we 'could' query TMDB ourselves as part of the Plugin but the user would need to provide their own TMDB API Key (it's free, so not a big deal) - but it would be better on the Provider if Emby simply got a more useful value that is relevant to the product.

 

 

 

If there are mulitple release dates, then yes it probably could be a little smarter about prioritizing them.

  • Like 1
rbjtech
Posted
14 hours ago, Luke said:

If there are mulitple release dates, then yes it probably could be a little smarter about prioritizing them.

Thanks.

So this is already a feature request from last year - https://emby.media/community/index.php?/topic/122577-release-date-by-physical-or-digital-release-date/#comment-1291943

It doesn't appear to have any support - so I'll probably just add it to MediaInfo Plugin to get and use the Digital or Physical date if it's available, unless that's an easy fix for you if you are already getting the TMDB data during discovery... 🤪 

  • Like 1
  • Thanks 1
rbjtech
Posted

Getting there .. oh how I hate javascript ..

Now we have the TMDB API Keys, I can directly query TMDB for the Release dates (using the tmdbid) and use the Digital or Physical release date instead of the Premiere/Theatrical date.. :)

image.png.4d742da7453d418c777ee269ffe5f72f.png

  • Like 3
Teddyknuddel
Posted

What happens if I swap the episodes of a series - is there any way of summarising them, or do I have to have each individual episode scanned again?

 

Posted
4 hours ago, Teddyknuddel said:

What happens if I swap the episodes of a series - is there any way of summarising them, or do I have to have each individual episode scanned again?

 

If they got new emby id's - then they will be included in the next run, but if they kept the same emby-id's - then they will need to be re-scanned by using the 're-process' function - you can add them both at the same time.

Teddyknuddel
Posted
51 minutes ago, rbjtech said:

If they got new emby id's - then they will be included in the next run, but if they kept the same emby-id's - then they will need to be re-scanned by using the 're-process' function - you can add them both at the same time.

Is the ID of the series/season sufficient, or does each episode have to be edited individually?

Posted
39 minutes ago, Teddyknuddel said:

Is the ID of the series/season sufficient, or does each episode have to be edited individually?

It's episode or movie id's only - so just add them in here in csv format and it will reprocess them all.  

Good idea to add the show or even season level - but I haven't programmed it to recognise any 'Parent' id's ... 🤪

image.thumb.png.7ca933bcb8e9c06c84ed5c955365e8d9.png

Teddyknuddel
Posted

Well, if you replace an entire series, with maybe 80 episodes, it's very tedious.

 

  • Agree 1
Posted
13 hours ago, Teddyknuddel said:

Well, if you replace an entire series, with maybe 80 episodes, it's very tedious.

 

In that scenerio, then it's better to remove the series you want to replace, the plugin will remove all the items, after a full scan and then re-add them.

  • Thanks 1
  • 2 weeks later...
Posted

Quick teaser for v1.0.2.1 as I'm still testing it... but all working well thus far (movies only for the moment)

  • A number of options for 'Original Titles' to be used and displayed.
    • Append Original title to the Current Title 
    • Transpose Original Title with the Current Title
    • Prefix the Overview with the Original title
    • Tag the item that it has an Original Title

image.thumb.png.8541c5567d140e9e80b4a4c8d2b627d6.png

Example of how it looks - unfortunately you are restricted by the single line :(  One day Emby may allow you to extend to 2 lines without the use of CSS..

Note this is using the 'Original Title' tag - allowing me to filter by that Tag to show all my films that have an original title ..

image.thumb.png.cdd8a9281ff98a46b0b31ef077cf1936.png

This is what the Original title overview prefix looks like (in yellow, my highlight) - When using the graphical name, you won't see the original title - so it's inserted here (as an option). 

image.thumb.png.42a7e97b971f8135282d4614872fb901.png

Turn on/off the tagging 

image.png.d0539e30151cb1eef39caaa2ccc62908.png

Any thoughts or suggestions welcome.. :)

I'll release shortly once I've fully tested the options as the only way to revert back is to refresh the metadata on that item.

  • Like 2
  • Thanks 1
MagicDoubleM
Posted

That's a very nice addition. But let me be that annoying guy who nitpicks and says "hey i like () better than [] for that". 🤪

  • Haha 1
Posted (edited)
On 11/9/2022 at 2:47 PM, MrLinford said:


 

I have now created a shell script to run with "emby" docker container, you can find it here: https://github.com/MrLinford/Docker-MediaInfo-PreReq

 

Here is my quick guide on how to install the dependencies for Media Toolbox when running EMBY in a Docker Container.

A few notes:

You must be running the https://github.com/linuxserver/docker-emby container

You will have to reinstall the dependencies when a new docker image is used.

image.png.5b56a376b629c0cbcfb43ca4df32899b.png

# **MediaInfo For Emby running in Docker**

**A few notes:**

You must be running the https://github.com/linuxserver/docker-emby container

You will have to reinstall the dependencies when a new docker image is used.

---

**First you need to connect to the emby container:**

`docker exec -it <container> bash`

---

**Install mediainfo (https://mediaarea.net/en/MediaInfo/Download/Ubuntu):**

`apt update`

`apt-get install mediainfo`

---

**Install mkvtoolnix (https://mkvtoolnix.download/downloads.html#ubuntu):**

`curl -o /usr/share/keyrings/gpg-pub-moritzbunkus.gpg https://mkvtoolnix.download/gpg-pub-moritzbunkus.gpg`

`cd /etc/apt/sources.list.d`

`touch mkvtoolnix.download.list`

`cat > mkvtoolnix.download.list << EOF
deb [signed-by=/usr/share/keyrings/gpg-pub-moritzbunkus.gpg] https://mkvtoolnix.download/ubuntu/ jammy main
deb-src [signed-by=/usr/share/keyrings/gpg-pub-moritzbunkus.gpg] https://mkvtoolnix.download/ubuntu/ jammy main
EOF`

Now run `apt update` followed by `apt install mkvtoolnix=70.0.0-0~ubuntu2204bunkus01 mkvtoolnix-gui=70.0.0-0~ubuntu2204bunkus01`



---

**Download BifTool Executables:**

`curl -Lo /tmp/biftool_linux.zip https://github.com/rokudev/samples/raw/master/utilities/bif%20tool/biftool_linux.zip`

**Installed unzip:**

`apt-get install unzip`


**Extract BifTool zip file to /bin/:**

`unzip /tmp/biftool_linux.zip -d /bin`

---

Configure the Media Toolbox plugin, applications installed will be located in `/bin/`

 

How i use  this on  a Synology? I only  can use ASH. But  i doesnt have APT-GET etc. (Emby server runs in Docker)

image.png.fd83bac8d715151065706700f7b02945.png

Edited by muiz
Posted (edited)
On 3/5/2023 at 5:28 PM, Teddyknuddel said:

MediaInfoCLI File Path:
/volume1/@appstore/mediainfo/bin/mediainfo

MKVPropEdit File Path
/volume1/@appstore/mkvtoolnix/bin/mkvpropedit

Provided that these two parts are also installed:

image.png.e67ce94bcd2207f4b6e9920819e4bee2.png

image.png.2886da2a5dff99a3457c1219bc9319f7.png

This only works if the  Emby server runs as Synology app? Cause those paths are not showing when  running Emby as Docker on Synology?image.png.3c5d6878bb961e0a9bdfca2918856427.pngimage.png.77ad6935ef792daf919b1acb8e3d878b.pngimage.png.75d138e775664a476718b4c0c3ab784c.png

Edited by muiz
Posted

I got  the paths in the tool now with : image.png.e6431dc248ee999676cb321acd8fc748.pngimage.png.35be7b44772a44453401e19bc060075e.png But it does not work. Any one  else using Emby in Docker on a Synology who has this working?

Posted

@muiz if you are running emby in a docker container, I recommend just following the docker instructions in the wiki instead. Install the tools inside the docker image rather than external. You can then avoid messing around in Synology world entirely

While what your second post shows should work, Synology is probably getting in the way cause it is not liking a docker container accessing the app folders (user permissions across the container boundary are always a pain even in OS's where you have full control).

Posted
23 hours ago, SimCity said:

@muiz if you are running emby in a docker container, I recommend just following the docker instructions in the wiki instead. Install the tools inside the docker image rather than external. You can then avoid messing around in Synology world entirely

While what your second post shows should work, Synology is probably getting in the way cause it is not liking a docker container accessing the app folders (user permissions across the container boundary are always a pain even in OS's where you have full control).

I tried. But no luck. Emby  runs fine in Docker.But  those other 2??

  • 3 weeks later...
Posted

hi media info was working perfectly until last or pre last update of my linuxserver docker on synology. now a reprocess all and start the scheduled task runs only a second without any activity.

libs are still in the list, I cannot find find any change in settings or general emby setup.

any idea what happened? 

Screenshot_20241121_092201.jpg

Screenshot_20241121_092141.jpg

Posted
2 hours ago, supermood said:

any idea what happened? 

run it again and then check your emby logs. search for 'MediaInfo'

There will be an entry from MediaInfo explaining what happened. Most likely it will say something about not being able to access the location or something along those lines, i.e. the app was not found at the location that it was configured to search for it or it didn't have permission to access it. For example, if the config setting for media info is left unset, it will try and run this blank file location... and this would in turn generate an access error. Same thing if the location is set but the app is not in that location. Cant access something that doesn't exist, so again access error recorded.

90% of the time that I have seen 0 second runs, its cause I forgot to reconfigure the location after an update or something caused a reset (I modified my script to do this form me now...).

If you have an different error than those 2, then your going to need to supply the logs so someone here can diagnose it. 

  • Like 1
  • Thanks 1
Posted
1 hour ago, SimCity said:

run it again and then check your emby logs. search for 'MediaInfo'

There will be an entry from MediaInfo explaining what happened. Most likely it will say something about not being able to access the location or something along those lines, i.e. the app was not found at the location that it was configured to search for it or it didn't have permission to access it. For example, if the config setting for media info is left unset, it will try and run this blank file location... and this would in turn generate an access error. Same thing if the location is set but the app is not in that location. Cant access something that doesn't exist, so again access error recorded.

90% of the time that I have seen 0 second runs, its cause I forgot to reconfigure the location after an update or something caused a reset (I modified my script to do this form me now...).

If you have an different error than those 2, then your going to need to supply the logs so someone here can diagnose it. 

many thanks!!! 

seems it's exactly the missing folder / file? how can that happen and what should I do now any idea? emby is running all media is there Screenshot_20241121_131234.thumb.jpg.01111d664b160aa23b693faa06bb0663.jpg

Posted (edited)

The log is simply stating that it cannot start the mkvpropedit executable - likely permissions caused by your last update.

Quote

last or pre last update of my linuxserver docker on synology

Remember it's the two executables you specify in the plugin that do all the updating to the FILES - so emby only needs execute access to those files, but those executables need write access to the actual media files (to make the changes to the MKV track titles).

If you turn on debug logging in emby, the mediainfo plugin is very verbose in what it is doing which may give further clues, but it looks like permissions to me in the log.

This may help - 

https://github.com/Cheesegeezer/MediaInfoWiki/wiki/Various-OS-Installation-Help#5-docker

https://github.com/Cheesegeezer/MediaInfoWiki/wiki/Various-OS-Installation-Help#2-synology-nas

Edited by rbjtech
  • Like 1
Posted

So I am having an issue; 

Debian 11

Emby Server Version 4.8.10.0

MediaToolBox (Latest from Plugin Sections)

 

I have installed MediaInfoCLI (its in /usr/bin) and I have installed MKVToolNix (again, in /usr/bin). I can manually execute them, and they work just fine. So I go into Media Toolbox in Emby and I try to add the Executable FILE Paths and after I exit the page to do a lib scan, I come back and the paths do not save. (Or show saved?)  I wen to check the /var/lib/emby/plugins/configurations/Emby.MediaInfo.xml and I do not see any paths saved in that file either. I am not sure what the path tag is, otherwise I would add them by hand. Any idea of what is going on, or is this just an oddity?

 

 

<?xml version="1.0"?>
<PluginConfiguration xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
  <EnableMediaInfo>true</EnableMediaInfo>
  <AutoRunLibraryScan>false</AutoRunLibraryScan>
  <RunMediaInfoOnNewItemAdded>true</RunMediaInfoOnNewItemAdded>
  <EnableMovies>true</EnableMovies>
  <EnableTVEpisodes>true</EnableTVEpisodes>
  <AddToItemTags>true</AddToItemTags>
  <ShowHD>false</ShowHD>
  <ShowBitrate>false</ShowBitrate>
  <ShowCodecFormat>false</ShowCodecFormat>
  <ShowAsUHD>false</ShowAsUHD>
  <ShowHDRFormat>true</ShowHDRFormat>
  <ShowRemux>false</ShowRemux>
  <AbbrAudioOutput>true</AbbrAudioOutput>
  <ShowDefaultTrack>true</ShowDefaultTrack>
  <ShowAudioBitDepth>false</ShowAudioBitDepth>
  <ShowAudioSampleRate>false</ShowAudioSampleRate>
  <UseRBJTechFormat>false</UseRBJTechFormat>
  <ExludeIdString />
  <MIreprocessList />
  <ResetEmbeddedTitles>false</ResetEmbeddedTitles>
  <RemoveTags>false</RemoveTags>
  <ResetProcessedList>true</ResetProcessedList>
  <VersionOverride>false</VersionOverride>
  <EnableHDRConvert>false</EnableHDRConvert>
  <RunBIFOnNewItemAdded>true</RunBIFOnNewItemAdded>
  <EnableHDRMovies>false</EnableHDRMovies>
  <EnableHDREpisodes>false</EnableHDREpisodes>
  <EnableHDRReprocess>false</EnableHDRReprocess>
  <BifReprocessList />
  <UseCustomBifInterval>false</UseCustomBifInterval>
  <BifInterval>10</BifInterval>
  <EnableSubKiller>false</EnableSubKiller>
  <RunSubKillerOnItemAdded>false</RunSubKillerOnItemAdded>
  <LibrariesToConvert>
    <string>3</string>
  </LibrariesToConvert>
  <ProcessedList />
  <MediaSourceProcessedList />
  <HDRProcessedMovieList />
  <HDRProcessedEpisodeList />
</PluginConfiguration>
 

 

 

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