Jump to content

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


Recommended Posts

Posted
4 hours ago, kaledi said:

Works really nicely.

Out if interest, if I run a scheduled task (after the first run) to update new media added, should it take a long time to do the scan - media library is large?

No, it should take seconds and just update those not already in the processed file.

Have you selected just the libraries you want ?  Maybe you have selected picture and/or music libraries and it's scanning those looking for video files ?

Posted

that's what I would have expected.  No, I have no music libraries.

Looking at the log, 2 things I see, it appears that despite the schedule task running to completion, there are a lot of files that need to be processed, so maybe I need to be patient and run it a few times until all files are processed.  I also do see the following appearing.  Is this normal e.g. if the file already has the appropriate title from a previous scan?

Warn MediaInfo: Replace Audio Track Failed to update Track Title & Exited with Code 2

Posted
6 minutes ago, kaledi said:

that's what I would have expected.  No, I have no music libraries.

Looking at the log, 2 things I see, it appears that despite the schedule task running to completion, there are a lot of files that need to be processed, so maybe I need to be patient and run it a few times until all files are processed.  I also do see the following appearing.  Is this normal e.g. if the file already has the appropriate title from a previous scan?

Warn MediaInfo: Replace Audio Track Failed to update Track Title & Exited with Code 2

Hmm - code 0 is success, code 1 is warning (but changes made), code 2 is error (no changes made)

The most common code 2 error is either access issues, or the file is locked by another process.

Posted

Only for emby on windows server ??

Posted
4 hours ago, rbjtech said:

Hmm - code 0 is success, code 1 is warning (but changes made), code 2 is error (no changes made)

The most common code 2 error is either access issues, or the file is locked by another process.

OK, that is interesting.  I've just started the task again and looking at the log the same number of files need to be processed and I'm getting this same error code for those files.

I can't see any issue with access to the files, e.g. i don't see any option in DSM (Synology NAS) to provide permissions to the shared folders to mkvtoolnix.  Is there any configuration necessary for mkvtoolnix

Posted

v1.0.1.40

No updates other than built with latest 4.8.0.80 NuGet package from the Emby Team (previously built with 4.7)

Emby.MediaInfo.dll

Please take a copy of the old DLL if replacing, as while I have done basic testing to ensure it functions as expected, the 4.7 version did not have any issues. :)

 

Posted

I'm trying to get this running on my Asustor Nas server , but I'm unsure which version of Mediainfo and MKVToolNix to download. Any help appreciated.

Posted

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
  • Thanks 3
rbjtech
Posted
8 hours ago, 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

Fantastic - thanks for this.   Is it ok if I add your github link to the Wiki ?

 

Posted
13 hours ago, rbjtech said:

Fantastic - thanks for this.   Is it ok if I add your github link to the Wiki ?

 

Sure, feel free to add it and anything else you wish.

  • Thanks 1
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

Thank you for the credit. I'll take a look later.

 

supermood
Posted

hi I don't understand how to map the @appstore folder so that I can maintain the path in the Plugin. emby is running in a docker on synology. any hint for me? 

Screenshot_20240310_020330.jpg

  • 2 months later...
supermood
Posted
On 3/2/2024 at 11:29 AM, MrLinford said:

Thank you for the credit. I'll take a look later.

 

Mr. Linford. your guide is incredible!!! many thanks for that!!!!

with the infos on page 37 i was able to set it up.

emby is Running on a linux docker and i thought i will never be able to see the correct audio codecs...

Now the log tells me that something positive happened?

but only for 3% any idea why?

many thanks!!!

2024-05-14 18:38:37.747 Info Media Info: MKVPropEdit Process Version Check Completed with Exit Code: 0
2024-05-14 18:38:37.748 Info Media Info: MKVPROPEDIT VERSION IS 70 - CONGRATS..... THIS VERSION IS SUPPORTED!!
2024-05-14 18:38:37.748 Info Media Info: No. of Libraries selected is 3
2024-05-14 18:38:37.748 Info Media Info: Getting Folder(s) Items
2024-05-14 18:38:38.037 Info Media Info: Total No. of items in Library 4781
2024-05-14 18:38:38.196 Info Media Info: Actual Items to process = 133
2024-05-14 18:38:38.196 Info Media Info: PERFORMING MEDIAINFO EXTRACTION
2024-05-14 18:38:38.266 Info Media Info: MEDIAINFO TITLES Completed for 133 Videos
2024-05-14 18:38:38.267 Info TaskManager: Advanced Media Information Completed after 0 minute(s) and 0 seconds
 

 

 

 

  • Thanks 1
rbjtech
Posted
7 minutes ago, supermood said:

Mr. Linford. your guide is incredible!!! many thanks for that!!!!

with the infos on page 37 i was able to set it up.

emby is Running on a linux docker and i thought i will never be able to see the correct audio codecs...

Now the log tells me that something positive happened?

but only for 3% any idea why?

many thanks!!!

2024-05-14 18:38:37.747 Info Media Info: MKVPropEdit Process Version Check Completed with Exit Code: 0
2024-05-14 18:38:37.748 Info Media Info: MKVPROPEDIT VERSION IS 70 - CONGRATS..... THIS VERSION IS SUPPORTED!!
2024-05-14 18:38:37.748 Info Media Info: No. of Libraries selected is 3
2024-05-14 18:38:37.748 Info Media Info: Getting Folder(s) Items
2024-05-14 18:38:38.037 Info Media Info: Total No. of items in Library 4781
2024-05-14 18:38:38.196 Info Media Info: Actual Items to process = 133
2024-05-14 18:38:38.196 Info Media Info: PERFORMING MEDIAINFO EXTRACTION
2024-05-14 18:38:38.266 Info Media Info: MEDIAINFO TITLES Completed for 133 Videos
2024-05-14 18:38:38.267 Info TaskManager: Advanced Media Information Completed after 0 minute(s) and 0 seconds
 

 

 

 

Can you turn on debug logging (in emby) and run it again - then post the log.   For some reason it's only doing 133 of the 4781 files .. ?

supermood
Posted
8 minutes ago, rbjtech said:

Can you turn on debug logging (in emby) and run it again - then post the log.   For some reason it's only doing 133 of the 4781 files .. ?

good thinking! one sec! 

 - yes 3 % - best guess... ;)

supermood
Posted

do you see anything more? is this even a debug log

 

2024-05-14 19:04:21.819 Info Media Info: MEDIAINFO TASK IS STARTING
2024-05-14 19:04:21.819 Debug Media Info: isEnabled = True
2024-05-14 19:04:21.819 Info Media Info: Performing MKV Version Checks.........
2024-05-14 19:04:21.819 Debug Media Info: MKVPROPEDIT EXE: /bin/mkvpropedit 
2024-05-14 19:04:21.881 Info Media Info: MKVPropEdit Process Version: mkvpropedit v70.0.0 ('Caught A Lite Sneeze') 64-bit

2024-05-14 19:04:21.881 Info Media Info: MKVPropEdit Process Version Check Completed with Exit Code: 0
2024-05-14 19:04:21.881 Info Media Info: MKVPROPEDIT VERSION IS 70 - CONGRATS..... THIS VERSION IS SUPPORTED!!
2024-05-14 19:04:21.881 Info Media Info: No. of Libraries selected is 3
2024-05-14 19:04:21.881 Debug Media Info: Internal Library Folder Id = 40731 - Folder Name: 0300 - docus
2024-05-14 19:04:21.881 Debug Media Info: Internal Library Folder Id = 3 - Folder Name: 0100 - movies
2024-05-14 19:04:21.881 Debug Media Info: Internal Library Folder Id = 7152 - Folder Name: 0200 - seasons
2024-05-14 19:04:21.881 Info Media Info: Getting Folder(s) Items
2024-05-14 19:04:21.992 Info Media Info: Total No. of items in Library 4781
2024-05-14 19:04:22.064 Info Media Info: Actual Items to process = 133
2024-05-14 19:04:22.064 Info Media Info: PERFORMING MEDIAINFO EXTRACTION
2024-05-14 19:04:22.119 Info Media Info: MEDIAINFO TITLES Completed for 133 Videos
2024-05-14 19:04:22.119 Debug XmlSerializer: Serializing to file /config/plugins/configurations/Emby.MediaInfo.xml
2024-05-14 19:04:22.121 Info TaskManager: Advanced Media Information Completed after 0 minute(s) and 0 seconds
2024-05-14 19:04:24.900 Debug App: ScheduledTasksWebSocketListener stop transmitting over websocket to 172.17.0.1
2024-05-14 19:04:24.924 Debug Server: http/1.1 GET http://host2:9988/emby/System/Logs/Query?IncludeItemTypes=Log&Fields=BasicSyncInfo,CanDelete,PrimaryImageAspectRatio,ProductionYear,Status,EndDate,CommunityRating,OfficialRating,CriticRating&StartIndex=0&EnableImageTypes=Primary,Backdrop,Thumb&ImageTypeLimit=1&Recursive=true&Limit=30&X-Emby-Client=Emby Web&X-Emby-Device-Name=Chrome Windows&X-Emby-Device-Id=4bd47e49-d1bf-4290-9ce4-d51eb2690086&X-Emby-Client-Version=4.8.6.0&X-Emby-Token=x_secret1_x&X-Emby-Language=en-us. UserAgent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/124.0.0.0 Safari/537.36 Edg/124.0.0.0
2024-05-14 19:04:24.925 Debug Server: http/1.1 Response 200 to host1. Time: 1ms. GET http://host2:9988/emby/System/Logs/Query?IncludeItemTypes=Log&Fields=BasicSyncInfo,CanDelete,PrimaryImageAspectRatio,ProductionYear,Status,EndDate,CommunityRating,OfficialRating,CriticRating&StartIndex=0&EnableImageTypes=Primary,Backdrop,Thumb&ImageTypeLimit=1&Recursive=true&Limit=30&X-Emby-Client=Emby Web&X-Emby-Device-Name=Chrome Windows&X-Emby-Device-Id=4bd47e49-d1bf-4290-9ce4-d51eb2690086&X-Emby-Client-Version=4.8.6.0&X-Emby-Token=x_secret1_x&X-Emby-Language=en-us
2024-05-14 19:04:29.187 Debug Server: http/1.1 GET http://host2:9988/emby/System/Logs/embyserver.txt?api_key=x_secret1_x&SetFilename=true. UserAgent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/124.0.0.0 Safari/537.36 Edg/124.0.0.0
 

MrLinford
Posted
18 minutes ago, supermood said:

do you see anything more? is this even a debug log

 

2024-05-14 19:04:21.819 Info Media Info: MEDIAINFO TASK IS STARTING
2024-05-14 19:04:21.819 Debug Media Info: isEnabled = True
2024-05-14 19:04:21.819 Info Media Info: Performing MKV Version Checks.........
2024-05-14 19:04:21.819 Debug Media Info: MKVPROPEDIT EXE: /bin/mkvpropedit 
2024-05-14 19:04:21.881 Info Media Info: MKVPropEdit Process Version: mkvpropedit v70.0.0 ('Caught A Lite Sneeze') 64-bit

2024-05-14 19:04:21.881 Info Media Info: MKVPropEdit Process Version Check Completed with Exit Code: 0
2024-05-14 19:04:21.881 Info Media Info: MKVPROPEDIT VERSION IS 70 - CONGRATS..... THIS VERSION IS SUPPORTED!!
2024-05-14 19:04:21.881 Info Media Info: No. of Libraries selected is 3
2024-05-14 19:04:21.881 Debug Media Info: Internal Library Folder Id = 40731 - Folder Name: 0300 - docus
2024-05-14 19:04:21.881 Debug Media Info: Internal Library Folder Id = 3 - Folder Name: 0100 - movies
2024-05-14 19:04:21.881 Debug Media Info: Internal Library Folder Id = 7152 - Folder Name: 0200 - seasons
2024-05-14 19:04:21.881 Info Media Info: Getting Folder(s) Items
2024-05-14 19:04:21.992 Info Media Info: Total No. of items in Library 4781
2024-05-14 19:04:22.064 Info Media Info: Actual Items to process = 133
2024-05-14 19:04:22.064 Info Media Info: PERFORMING MEDIAINFO EXTRACTION
2024-05-14 19:04:22.119 Info Media Info: MEDIAINFO TITLES Completed for 133 Videos
2024-05-14 19:04:22.119 Debug XmlSerializer: Serializing to file /config/plugins/configurations/Emby.MediaInfo.xml
2024-05-14 19:04:22.121 Info TaskManager: Advanced Media Information Completed after 0 minute(s) and 0 seconds
2024-05-14 19:04:24.900 Debug App: ScheduledTasksWebSocketListener stop transmitting over websocket to 172.17.0.1
2024-05-14 19:04:24.924 Debug Server: http/1.1 GET http://host2:9988/emby/System/Logs/Query?IncludeItemTypes=Log&Fields=BasicSyncInfo,CanDelete,PrimaryImageAspectRatio,ProductionYear,Status,EndDate,CommunityRating,OfficialRating,CriticRating&StartIndex=0&EnableImageTypes=Primary,Backdrop,Thumb&ImageTypeLimit=1&Recursive=true&Limit=30&X-Emby-Client=Emby Web&X-Emby-Device-Name=Chrome Windows&X-Emby-Device-Id=4bd47e49-d1bf-4290-9ce4-d51eb2690086&X-Emby-Client-Version=4.8.6.0&X-Emby-Token=x_secret1_x&X-Emby-Language=en-us. UserAgent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/124.0.0.0 Safari/537.36 Edg/124.0.0.0
2024-05-14 19:04:24.925 Debug Server: http/1.1 Response 200 to host1. Time: 1ms. GET http://host2:9988/emby/System/Logs/Query?IncludeItemTypes=Log&Fields=BasicSyncInfo,CanDelete,PrimaryImageAspectRatio,ProductionYear,Status,EndDate,CommunityRating,OfficialRating,CriticRating&StartIndex=0&EnableImageTypes=Primary,Backdrop,Thumb&ImageTypeLimit=1&Recursive=true&Limit=30&X-Emby-Client=Emby Web&X-Emby-Device-Name=Chrome Windows&X-Emby-Device-Id=4bd47e49-d1bf-4290-9ce4-d51eb2690086&X-Emby-Client-Version=4.8.6.0&X-Emby-Token=x_secret1_x&X-Emby-Language=en-us
2024-05-14 19:04:29.187 Debug Server: http/1.1 GET http://host2:9988/emby/System/Logs/embyserver.txt?api_key=x_secret1_x&SetFilename=true. UserAgent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/124.0.0.0 Safari/537.36 Edg/124.0.0.0
 

Do all your files have the correct permissions?

Also try the "Refresh All Items" option in the plugin and do a new scan.

  • Agree 1
supermood
Posted

yes permissions are good as long as i can check with my limited knowledge. the whole share and the folder itself full control for mkpro, info and the 2 emby user i could find.. there are no different auth fpr specifi movie folder

refresh was on several times

I will reboot the nas now not only the docker image 

 

supermood
Posted

tataaaa! something is happening! yipiajeh!!

it's def more than a sec. it's running 3 min and has 5% I would say time for champagne!! 

i will write in 30m hopefully with a smile 

supermood
Posted (edited)

this looks just BEAUTIFUL!! 

in case my nas is still running in one hour, could you make me huge favor and post only the ssh commands I have to perform after an emby docker update?

I have absolutely no clue which one you mean in your guide :( sorry!!

thanks!!! 

Screenshot_20240514_195850.jpg

Edited by supermood
Pic
  • Like 1
rbjtech
Posted

While we are waiting  what options did you use on the MediaInfo Plugin ? Maybe do a screenshot ..?

supermood
Posted (edited)

sure. I guess standard besides the different tags?

honestly I tried 10 times yesterday with a test lib, and only a few tags, without success.

today I completely forget and later I will have it all for all libs :) 

 

 

 

Screenshot_20240514_200716.jpg

Screenshot_20240514_200706.jpg

Screenshot_20240514_200359.jpg

Screenshot_20240514_200352.jpg

 

Screenshot_20240514_200331.jpg

Screenshot_20240514_200324.jpg

Screenshot_20240514_200255.jpg

Edited by supermood

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