Jump to content

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


Recommended Posts

Grumpy1
Posted

hey guys

 

what do i need to do when i change a setting for it to take place ?

 

i tried running the scheduled task and rescaning the library but to no avail

 

ie - changed 4k to UHD

 

thanks

rbjtech
Posted (edited)
40 minutes ago, Grumpy1 said:

hey guys

 

what do i need to do when i change a setting for it to take place ?

 

i tried running the scheduled task and rescaning the library but to no avail

 

ie - changed 4k to UHD

 

thanks

Did you configure the 'Reset Options' - Refresh All Items ?

Unless you do this - then the Plugin will assume you do not want the item re-processed each time ;)

If you want to change ALL the items from 4K to UHD - then this is what you need to set.

image.png.3f9f37c83d453fcfd72e45bec2cc0316.png

You can do it on an invididual item as well to test - just get the item Id from a web browser and hit 'Save Reprocess List' - then run the schedule - and it will just re-process that item(s)

image.png.d39b0a69351e9451e3a69c6c19da33bb.png

Number to use is 3325277 in the above example.

 

 

Edited by rbjtech
  • Like 1
Grumpy1
Posted
3 minutes ago, rbjtech said:

Did you configure the 'Reset Options' - Refresh All Items ?

Unless you do this - then the Plugin will assume you do not want the item re-processed each time ;)

If you want to change ALL the items from 4K to UHD - then this is what you need to set.

image.png.3f9f37c83d453fcfd72e45bec2cc0316.png

You can do it on an invididual item as well to test - just get the item Id from a web browser and hit 'Save Reprocess List' - then run the schedule - and it will just re-process that item(s)

image.png.d39b0a69351e9451e3a69c6c19da33bb.png

Number to use is 3325277 in the above example.

 

 

thank you..didn't know any of that :)

MagicDoubleM
Posted
4 hours ago, rbjtech said:

Some great thoughts there - thanks.  Yea homebrew stuff may screw things up, but language is a good call.   I strip everything non English which is why I hadn't thought of that scenerio ..

If it gets included, then Yes this is totally optional - I'll add it to a toggle switch now I know how to add them .. haha

btw - I've also added the 'Remux' from the filename now .. and also attempting to fix the multi-video track bug that just re-writes video track 0.  I can see the issue but I'm just working out how to pass the correct video track to mkvpropedit ... yes I know not many files have multi video but the pesky 'MJPEG' are classed as Video tracks and that screws things up occassionally (I should just delete them..) ...

Good catch with "MJPEG", I did sumble across it, but didn't give it much attention, since I remuxed and stipped down the file later and that thing was gone 😅

Maybe the brute-force commentary identification should only run on those files that have been identified as remux, since we have a reliable way to sort those out (thanks for adding the filename to the mix).

MagicDoubleM
Posted (edited)

Found another one that slips through the audiotrack-treatment, this time it's a DTS variant:

image.png.b2c3c8da37db0b6f0528d4952b0d4399.png

sample.json

sample.mkv

Edited by MagicDoubleM
rbjtech
Posted
8 minutes ago, MagicDoubleM said:

Found another one that slips through the audiotrack-treatment, this time it's a DTS variant:

image.png.b2c3c8da37db0b6f0528d4952b0d4399.png

sample.json 7.99 kB · 0 downloads

sample.mkv 471.59 kB · 0 downloads

Hmm - Odd - I did include DTS HRA - but the Additional Format for yours suggests it's DTS XXCH ..

Let me take a look tomorrow - if needs be we'll just add it as an alternative format - that's easy enough.

Thanks !

image.png.de8cbb4c0467af28291c678fa35d3ca0.png

 

  • Like 1
MagicDoubleM
Posted

That was quick. Awesome, thanks! 👍

rbjtech
Posted
1 minute ago, MagicDoubleM said:

That was quick. Awesome, thanks! 👍

Actually - I've just seen the issue - doh! - I put it in the main formatting, but not the RBJ Formating option haha - so I'll add it tomorrow ... ;)

  • Like 1
Posted
On 3/30/2023 at 12:22 PM, Cheesegeezer said:

Well my pretty little fix doesn't work because my only the fly recode to unicode, breaks the path because they do not match.

I need to work on this some more

hmmmmm

Great job 😉

If I can ask, je could you solve my problem of the title with accent ? Thanks à lot

rbjtech
Posted
12 hours ago, MagicDoubleM said:

Found another one that slips through the audiotrack-treatment, this time it's a DTS variant:

image.png.b2c3c8da37db0b6f0528d4952b0d4399.png

sample.json 7.99 kB · 1 download

sample.mkv 471.59 kB · 2 downloads

Fixed .. 

Please let me know of any other specialist formats that may have slipped through the net ! ;)

This version contains the following changes (1.0.1.26) :-

Fixes/Enhancements

1. DTS-HD HRA detection Fix

2. Add 'Remux' to Video Title if 'Remux' in the filename. (note case) - and the file was not previously classed as a Remux due to the bitrate.

3. Remove Spacing before Kb/s (now same as Mb/s)

4. Remove '-' on Bit Depth

5. Added UHD/4K to written Tags

Known Bugs

 1. Multi-video tracks do not get updated properly.   (I attempted but couldn't get it to work - will need @Cheesegeezerfor this one I think).

DLL below

Emby.MediaInfo.dll

 

image.thumb.png.d6183e0c4e2db8dbf4172eb5950aaf30.png

  • Like 1
MagicDoubleM
Posted (edited)

Yup, that one is fixed indeed. Thank you.

Since you asked for it 😅, I'm now in the process of going through my library, and here is the first one I've found. It has two DTS-HD HRA tracks.
If more pops up, I'll post them.

Edit: Found a second one with the same configuration, I spare you the sample/json for now.
 

image.png.7ed5bff9aa229950b5bc87c288d423c7.png

sample.mkv
sample.json

Edited by MagicDoubleM
MagicDoubleM
Posted

Ok, I've found a few of those DTS-HD HRA tracks like above, but here is something else, DTS-HD MA 6.1 😅

image.png.d2858e068fdc75100ea7c26d9bf58488.png

 

sample.json sample.mkv

rbjtech
Posted (edited)
55 minutes ago, MagicDoubleM said:

Since you asked for it 😅,

I walked into that one didn't I .. haha !

Yea something odd going on with HRA - I think i'm going to add both the 'AdditionalFeatures' as can be seen by both your samples below - both are DTS-HD HRA - but one uses 'XBR' (what it used to use before I changed it..) and one has 'XXCH' - which is what it now uses ...      So gonna add both ... ;)

image.png.f1b01c79b9a96c502ae2896e733c5e3d.png

Edited by rbjtech
  • Like 1
rbjtech
Posted (edited)
6 minutes ago, MagicDoubleM said:

Ok, I've found a few of those DTS-HD HRA tracks like above, but here is something else, DTS-HD MA 6.1 😅

image.png.d2858e068fdc75100ea7c26d9bf58488.png

 

sample.json 4.42 kB · 0 downloads sample.mkv 687.47 kB · 0 downloads

so that's a new one on me - that one is 'ES XCh XLL' .. wow

If you can check them all - then I'll add them all at once - no point in doing this piece meal ...

Thanks !

Edited by rbjtech
  • Like 1
Cheesegeezer
Posted

@rbjtechill have to give some teams training for github pal 

  • Like 1
  • Thanks 1
rbjtech
Posted
Just now, Cheesegeezer said:

@rbjtechill have to give some teams training for github pal 

Cheers Dave !

MagicDoubleM
Posted
36 minutes ago, rbjtech said:

I walked into that one didn't I .. haha !

🤣 I'm through my lib for now, and these are the only ones that I could find.

  • Like 1
rbjtech
Posted (edited)

v1.0.1.27

1. Added the alternate DTS-HS HRA back in again (XBR)

2. Added DTS-HD:MA ES (ES XCh XLL)

3. Tamed the logging 🤪 - debug log mode still writes very verbose logging (as it did before), but standard logging just tracks progress per item now - as logs filled quickly when running on a large library ... 

Emby.MediaInfo.dll

 

 

Edited by rbjtech
  • Thanks 1
MagicDoubleM
Posted

Great work, everything looks fine now:👍

image.png.09399e54ef05fb47909d6046aab9ff9c.png

image.png.71a167a0cb8dc251f46d6aef21287b10.png

  • Thanks 1
rbjtech
Posted (edited)

Getting the hang of this c# now - so added some new functionality options which I've wanted for a long time ..

The Plugin now reads the Arr 'Quality' type and adds an an Emby Tag.   It does not add to the track title, as that would be too much.   But you can now sort on the 'Quality' within emby based on this Tag.

 image.png.6436cd83cadb3ae6c1052b1745f80c12.png

image.png.9a3d7408428f4d83b1d08a00cda11f30.png

image.png.928675d1ba80180f4ce2c9776889f78c.png

string[] ArrQuality = new string[] { "WORKPRINT", "CAM", "TELESYNC", "TELECINE", "REGIONAL", "DVDSCR", "SDTV", "DVD", "DVD-R", "WEBDL-480p", "WEBRip-480p", "Bluray-480p", "Bluray-576p", "HDTV-720p", "WEBDL-720p", "WEBRip-720p", "Bluray-720p", "HDTV-1080p", "Raw-HD", "WEBDL-1080p", "WEBRip-1080p", "Bluray-1080p", "Remux-1080p", "HDTV-2160p", "WEBDL-2160p", "WEBRip-2160p", "Bluray-2160p", "Remux-2160p", "BR-DISK", "Raw-HD", "Bluray-2160p Remux" };

...

                            if (config.AddArrTags)
                            {
                                var itemFilename = mediaSource.Path;
                                foreach (var StringToFind in ArrQuality)
                                { 
                                    bool b = itemFilename.Contains(StringToFind);

                                    if (b)
                                    {
                                        Log.Debug("Found Arr Quality in Filename..");
                                        tempList.Add(new LinkedItemInfo
                                        {
                                            Name = StringToFind
                                        });
                                    }

                                }
                            }

@Cheesegeezer- it appears to work just fine, but there is probably a better way to do this ?  Any thoughts of coding wisdom or wizardry ? :)

------

Plugin version - v1.0.1.28

Emby.MediaInfo.dll

 

Edited by rbjtech
  • Thanks 1
MagicDoubleM
Posted

Uuuuuh, that's an very cool idea! 👍 Will try, as soon as I'm home.

MagicDoubleM
Posted

Hmm, yeah, of course I did rename the profiles in *arr... 😅

  • Like 1
MagicDoubleM
Posted (edited)

I'd propose splitting these tags up into the name and resolution:

"WORKPRINT", "CAM", "TELESYNC", "TELECINE", "REGIONAL", "DVDSCR", "SDTV", "DVD", "DVD-R", "WEBDL", "WEBRip", "HDTV" , "Bluray", "Remux" , "Raw-HD", "BR-DISK"

I'm not sure if REGIONAL, Raw-HD and BR-DISK do make any sense in practical use, while some other strings like "DVDRip" might be worthy to add to the mix somehow. Like DVDRip could result in "DVD" and "tvrip" depending on resolution in SDTV or HDTV.

And then a second tag for resolutions: "480p", "480i", "576p", "576i", "720p", "1080p", "1080i", "2160p", "4320p" 

Edited by MagicDoubleM
rbjtech
Posted
8 hours ago, MagicDoubleM said:

I'd propose splitting these tags up into the name and resolution:

"WORKPRINT", "CAM", "TELESYNC", "TELECINE", "REGIONAL", "DVDSCR", "SDTV", "DVD", "DVD-R", "WEBDL", "WEBRip", "HDTV" , "Bluray", "Remux" , "Raw-HD", "BR-DISK"

I'm not sure if REGIONAL, Raw-HD and BR-DISK do make any sense in practical use, while some other strings like "DVDRip" might be worthy to add to the mix somehow. Like DVDRip could result in "DVD" and "tvrip" depending on resolution in SDTV or HDTV.

And then a second tag for resolutions: "480p", "480i", "576p", "576i", "720p", "1080p", "1080i", "2160p", "4320p" 

It's just using the standard Arr quality values - cut'n'pasted from the Apps - the idea being if the Arr has renamed the file, then that's what the tag should be.  These are not manually added items.   If you want resolution and interlace, then you can always get that from the actual emby fields. ?

It's possible to have an CSV field on the Plugin config - and it checks for those as well - maybe that's another route - you can put what you want then.. ;)

 

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