Jump to content

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


Cheesegeezer

Recommended Posts

Cheesegeezer
3 minutes ago, FrostByte said:

Ok.  Currently I don't let Emby create bifs for any of my HDR movies.  I use a PS script that creates 5 second bifs and tone maps them.  Then I throw them in the folder and a scan sees them and I can use them in clients.   

I'm not sure the plugin would be any different other than you would need to know where to place the bifs if there were none.

You could either check the current setting for location in Emby and/or let the user change that setting within the plugin.

Just a thought.  That way we aren't creating bifs twice.

 

 

God Damn I didn't know that.  i think i will need to test this also.  @rbjtech fancy testing this out when you get a second

 

Link to comment
Share on other sites

rbjtech

I'm not sure what I'm testing ..

Everything Frostbyte said, I said previously.

The plugin works great - and does exactly what it says on the tin.

It REPLACES the crappy non tone mapped BIF's with correctly tonemapped BIF's on HDR only titles.

It doesn't do Dolby Vision 5 and it doesn't touch SDR.

It also only works on those libraries where you have activated BIF's in the first place - otherwise it's pointless.

If users are trying to CREATE BIF's for the first time - without Emby doing so (badly) first - then fine, but it was never designed for that.

So what is there to test here ?

Everything works .. :)

Edited by rbjtech
Link to comment
Share on other sites

FrostByte

Only to prevent creating bifs twice.  Why even check.  Just create them.

Edit: of course you would need to delete an old one if there was one there already, but if not still make one.

Edited by FrostByte
Link to comment
Share on other sites

FrostByte

Also, if all your HDR movies are in one library why would you want Emby to create bifs for that library that you're just going to turn around and delete?  You could still tell the plugin to create tone mapped bifs for that library.

Even if Emby is creating bifs for a folder as long as you beat it to the punch it will just skip that folder.  It doesn't delete yours and then create its own

Link to comment
Share on other sites

rbjtech
5 minutes ago, FrostByte said:

Also, if all your HDR movies are in one library why would you want Emby to create bifs for that library that you're just going to turn around and delete?  You could still tell the plugin to create tone mapped bifs for that library.

Even if Emby is creating bifs for a folder as long as you beat it to the punch it will just skip that folder.  It doesn't delete yours and then create its own

Agreed - but I think you are missing the point.

Not everybody has a separate HDR library - thus the Plugin works perfectly because it will only upgrade the movies/episodes with HDR.

The BIF had been created in the past - so creating a new one needs to happen - no getting around that.

As the Plugin looks for 'new' media (I don't use this, I just use it on a schedule) - it is literally going to be a race to see who creates the BIF first - but may actually be bad because both emby AND the plugin are gonna try and create the BIF.

This is why I think having a BIF there before TRYING to create a new BIF is a good thing.

If there is no BIF - then emby will create one on a library scan - afterwhich the plugin will replace it with a tonemapped one ...

Anyway ... lets see what @Cheesegeezer thinks .. haha

 

 

Link to comment
Share on other sites

FrostByte

Agree, you sure wouldn't want two apps creating bifs for the same movie at once.  My NAS is slow enough already.

Is there a way to see which folders Emby is creating bifs for now?  If Emby isn't creating bifs then the plugin isn't going to create them either.

Link to comment
Share on other sites

rbjtech
24 minutes ago, FrostByte said:

Is there a way to see which folders Emby is creating bifs for now?  If Emby isn't creating bifs then the plugin isn't going to create them either.

Good question - I save BIF's with the media - but if it uses the local cache area, I wonder if the plugin knows this ... 

Link to comment
Share on other sites

FrostByte

Ok, I assume he's checking both places :)

 

However, below is what I was thinking.  I realize it probably adds some complexity for maybe a small user base which Cheese may not want to deal with, but---

IF Emby is NOT configured to create bifs for library X 

 

    THEN create bifs regardless AND then add to processed list

ELSE 

     IF EXIST bif file THEN delete old bif file AND create new bif AND add to processed list

    ELSE

     Skip and don't add to process list so you can try again later after Emby creates its own

Link to comment
Share on other sites

Dizzy49
9 hours ago, Cheesegeezer said:

You can check the config file, Emby.MediaInfo.xml found in \Emby-Server\programdata\plugins\configurations to see if it's populating the processed list

Can you share the emby log? What system are you running on?

I let it run for about 12 hours.  Still said 0.0%.  I hit cancel and 2hrs later it still says 'Stopping'

I am running in Windows 10 Pro.  Here is what's in the Emby.MediaInfo.xml file, and I attached the log.

Spoiler


<ProcessedList>
    <long>793328</long>
    <long>902826</long>
    <long>1066408</long>
    <long>1092231</long>
    <long>1156284</long>
    <long>793750</long>
    <long>904384</long>
    <long>793506</long>
    <long>1093267</long>
    <long>1093405</long>
    <long>1156479</long>
    <long>1067501</long>
    <long>795791</long>
    <long>793467</long>
  </ProcessedList>
  <HDRProcessedMovieList>
    <long>793750</long>
    <long>795881</long>
    <long>793619</long>
    <long>795790</long>
  </HDRProcessedMovieList>

 

9 hours ago, Cheesegeezer said:

so have you read the wiki? All the info to get it up and running is in there 👍

image.png.6de723cb5891fff8c5c7e22324b160fd.png

I read them for both parts of the plugin.  They were very detailed and helpful, I appreciate that! 

My issue is that I THOUGHT that I had thumbnails enabled already, so my setup doesn't quite fit with your config.  The only thing I changed was checking the box to store with the media.  So the question now is... If your plugin will only replace EXISTING BIF files, how do I get Emby to generate files where they are supposed to be?  I hit the Extract Thumbnail task, but it didn't seem to do anything.  My guess is that it's only going to work for new files.

embyserver.txt

Link to comment
Share on other sites

rbjtech
10 hours ago, Dizzy49 said:

I  My guess is that it's only going to work for new files.

 

Correct - you have to refresh the metadata for it to then generate the files.

Hold fire for the moment - I think we need to give this a little more thought before you try again.

This plugin was never about creating fresh new BIF's - it was always meant to replace existing bifs. ;)

The logic could simply be if no bif exists, then create it - and we simply state in the Plugin - that the USER must turn on the library option to enable 'Preview Thumbnails' to actually see the results.      This also makes the assumption that they have a separate HDR only library - if not, then it's only going to create BIF's for HDR items ..

It just needs a decision within the plugin.

Link to comment
Share on other sites

Cheesegeezer
1 minute ago, rbjtech said:

Correct - you have to refresh the metadata for it to then generate the files.

Hold fire for the moment - I think we need to give this a little more thought before you try again.

This plugin was never about creating fresh new BIF's - it was always meant to replace existing bifs. ;)

The logic could simply be if no bif exists, then create it - and we simply state in the Plugin - that the USER must turn on the library option to enable 'Preview Thumbnails' to actually see the results.      This also makes the assumption that they have a separate HDR only library - if not, then it's only going to create BIF's for HDR items ..

It just needs a decision within the plugin.

lets take this to the Dev Thread if we can.  

Whe need to understand exactly how emby works, we also need to understand a few variables when the plugin generates the bif images and how that feeds back into the emby household.

I actually think that the way it's set up at the minute is the most fool proof way of ensuring it works. But that is my humble opinion.

  • Agree 2
Link to comment
Share on other sites

Derkington

I cannot seem to get the plugin to work for me. I have scanned the forum, spent a few hours changing settings running scans, adding files and removing them, however nothing seems to be happening. I have run through the logs for any warnings or errors related to media info. The following is what I get for every file that is processed. Any ideas why the plugin does not change anything?


Media info debug log output

2022-09-06 17:18:03.906 Info Media Info: PROCESSING OF  The Lion King  HAS STARTED
2022-09-06 17:18:03.906 Info Media Info: Item FilePath = /mnt/media/Movies/The Lion King (1994)/The Lion King (1994).mkv
2022-09-06 17:18:03.906 Debug Media Info: Starting MediaInfo.exe process
2022-09-06 17:18:03.908 Debug Media Info: ************** Reset Embedded Titles = False
2022-09-06 17:18:03.908 Debug Media Info: The input does not contain any JSON tokens. Expected the input to start with a valid JSON token, when isFinalBlock is true. Path: $ | LineNumber: 0 | BytePositionInLine: 0.

2022-09-06 17:18:04.378 Info Media Info: PROCESSING OF  Summer Wars  HAS STARTED
2022-09-06 17:18:04.378 Info Media Info: Item FilePath = /mnt/media/Anime Movies/Summer Wars.mkv
2022-09-06 17:18:04.378 Debug Media Info: Starting MediaInfo.exe process
2022-09-06 17:18:04.381 Debug Media Info: ************** Reset Embedded Titles = False
2022-09-06 17:18:04.381 Debug Media Info: The input does not contain any JSON tokens. Expected the input to start with a valid JSON token, when isFinalBlock is true. Path: $ | LineNumber: 0 | BytePositionInLine: 0.
2022-09-06 17:18:04.381 Info Media Info: PROCESSING OF Summer Wars HAS COMPLETED

Emby Install info

2022-09-06 00:00:00.009 Info App: Emby
    Command line: /opt/emby-server/system/EmbyServer.dll -programdata /var/lib/emby -ffdetect /opt/emby-server/bin/ffdetect -ffmpeg /opt/emby-server/bin/ffmpeg -ffprobe /opt/emby-server/bin/ffprobe -restartexitcode 3 -updatepackage emby-server-deb_{version}_amd64.deb
    Operating system: Linux version 5.15.0-47-generic (buildd@lcy02-amd64-060) (gcc (Ubuntu 11.2.0-19ubuntu1) 11.2.0, GNU ld (GNU Binutils for Ubuntu) 2.38) #51-Ubuntu SMP
    Framework: .NET 6.0.2
    OS/Process: x64/x64
    Runtime: opt/emby-server/system/System.Private.CoreLib.dll
    Processor count: 4
    Data path: /var/lib/emby
    Application path: /opt/emby-server/system
2022-09-06 00:00:00.009 Info App: Logs path: /var/lib/emby/logs
2022-09-06 00:00:00.009 Info App: Cache path: /var/lib/emby/cache
2022-09-06 00:00:00.009 Info App: Internal metadata path: /var/lib/emby/metadata
2022-09-06 00:00:00.009 Info App: Transcoding temporary files path: /var/lib/emby/transcoding-temp
2022-09-06 00:00:00.010 Info App: Plugins:
    Addic7ed 1.0.9.0
    Bluray Folder Support 1.0.0.0
    Cinema Intros 1.0.40.0
    Dvd Folder Support 1.0.0.0
    Emby Guide Data 1.0.7.0
    Fanart.tv 1.0.13.0
    Media Info 1.0.0.2
    MovieDb 1.6.2.0
    MusicBrainz 1.0.21.0
    Nfo Metadata 1.0.69.0
    OMDb 1.0.18.0
    Open Subtitles 1.0.31.0
    Podnapisi 1.0.9.0
    Server Configuration Backup 1.4.9.0
    Studio Images 1.0.3.0
    SubDb 1.0.7.0
    TheAudioDb 1.0.15.0
    TheTVDB 1.3.1.0
    Webhooks 1.0.19.0
   

Example of file ownership on file system  (Files are on a remote filesystem shared via CIFS)

drwxr-xr-x 2 emby emby 0 Jul  9 20:01 'Kanata No Astra'
drwxr-xr-x 2 emby emby 0 Jun 15 21:51 'Kimetsu No Yaiba'
drwxr-xr-x 2 emby emby 0 Sep 13  2020 'Legend of the Galactic Heroes'
drwxr-xr-x 2 emby emby 0 Sep 13  2020 'Little Witch Academia'
drwxr-xr-x 2 emby emby 0 Aug 23  2020 'Macross Plus'


Binary information

/usr/bin$ ls -lags mkvpropedit
3836 -rwxr-xr-x 1 root 3925760 Aug 14 08:20 mkvpropedit

/usr/bin$ mkvpropedit -V
mkvpropedit v70.0.0 ('Caught A Lite Sneeze') 64-bit


/usr/bin$ ls -lags mediainfo
48 -rwxr-xr-x 1 root 47352 Apr  3 15:38 mediainfo

/usr/bin$ mediainfo -h
MediaInfo Command line,
MediaInfoLib - v21.09

Link to comment
Share on other sites

Cheesegeezer
5 hours ago, Derkington said:

I cannot seem to get the plugin to work for me. I have scanned the forum, spent a few hours changing settings running scans, adding files and removing them, however nothing seems to be happening. I have run through the logs for any warnings or errors related to media info. The following is what I get for every file that is processed. Any ideas why the plugin does not change anything?


Media info debug log output

2022-09-06 17:18:03.906 Info Media Info: PROCESSING OF  The Lion King  HAS STARTED
2022-09-06 17:18:03.906 Info Media Info: Item FilePath = /mnt/media/Movies/The Lion King (1994)/The Lion King (1994).mkv
2022-09-06 17:18:03.906 Debug Media Info: Starting MediaInfo.exe process
2022-09-06 17:18:03.908 Debug Media Info: ************** Reset Embedded Titles = False
2022-09-06 17:18:03.908 Debug Media Info: The input does not contain any JSON tokens. Expected the input to start with a valid JSON token, when isFinalBlock is true. Path: $ | LineNumber: 0 | BytePositionInLine: 0.

2022-09-06 17:18:04.378 Info Media Info: PROCESSING OF  Summer Wars  HAS STARTED
2022-09-06 17:18:04.378 Info Media Info: Item FilePath = /mnt/media/Anime Movies/Summer Wars.mkv
2022-09-06 17:18:04.378 Debug Media Info: Starting MediaInfo.exe process
2022-09-06 17:18:04.381 Debug Media Info: ************** Reset Embedded Titles = False
2022-09-06 17:18:04.381 Debug Media Info: The input does not contain any JSON tokens. Expected the input to start with a valid JSON token, when isFinalBlock is true. Path: $ | LineNumber: 0 | BytePositionInLine: 0.
2022-09-06 17:18:04.381 Info Media Info: PROCESSING OF Summer Wars HAS COMPLETED

Emby Install info

2022-09-06 00:00:00.009 Info App: Emby
    Command line: /opt/emby-server/system/EmbyServer.dll -programdata /var/lib/emby -ffdetect /opt/emby-server/bin/ffdetect -ffmpeg /opt/emby-server/bin/ffmpeg -ffprobe /opt/emby-server/bin/ffprobe -restartexitcode 3 -updatepackage emby-server-deb_{version}_amd64.deb
    Operating system: Linux version 5.15.0-47-generic (buildd@lcy02-amd64-060) (gcc (Ubuntu 11.2.0-19ubuntu1) 11.2.0, GNU ld (GNU Binutils for Ubuntu) 2.38) #51-Ubuntu SMP
    Framework: .NET 6.0.2
    OS/Process: x64/x64
    Runtime: opt/emby-server/system/System.Private.CoreLib.dll
    Processor count: 4
    Data path: /var/lib/emby
    Application path: /opt/emby-server/system
2022-09-06 00:00:00.009 Info App: Logs path: /var/lib/emby/logs
2022-09-06 00:00:00.009 Info App: Cache path: /var/lib/emby/cache
2022-09-06 00:00:00.009 Info App: Internal metadata path: /var/lib/emby/metadata
2022-09-06 00:00:00.009 Info App: Transcoding temporary files path: /var/lib/emby/transcoding-temp
2022-09-06 00:00:00.010 Info App: Plugins:
    Addic7ed 1.0.9.0
    Bluray Folder Support 1.0.0.0
    Cinema Intros 1.0.40.0
    Dvd Folder Support 1.0.0.0
    Emby Guide Data 1.0.7.0
    Fanart.tv 1.0.13.0
    Media Info 1.0.0.2
    MovieDb 1.6.2.0
    MusicBrainz 1.0.21.0
    Nfo Metadata 1.0.69.0
    OMDb 1.0.18.0
    Open Subtitles 1.0.31.0
    Podnapisi 1.0.9.0
    Server Configuration Backup 1.4.9.0
    Studio Images 1.0.3.0
    SubDb 1.0.7.0
    TheAudioDb 1.0.15.0
    TheTVDB 1.3.1.0
    Webhooks 1.0.19.0
   

Example of file ownership on file system  (Files are on a remote filesystem shared via CIFS)

drwxr-xr-x 2 emby emby 0 Jul  9 20:01 'Kanata No Astra'
drwxr-xr-x 2 emby emby 0 Jun 15 21:51 'Kimetsu No Yaiba'
drwxr-xr-x 2 emby emby 0 Sep 13  2020 'Legend of the Galactic Heroes'
drwxr-xr-x 2 emby emby 0 Sep 13  2020 'Little Witch Academia'
drwxr-xr-x 2 emby emby 0 Aug 23  2020 'Macross Plus'


Binary information

/usr/bin$ ls -lags mkvpropedit
3836 -rwxr-xr-x 1 root 3925760 Aug 14 08:20 mkvpropedit

/usr/bin$ mkvpropedit -V
mkvpropedit v70.0.0 ('Caught A Lite Sneeze') 64-bit


/usr/bin$ ls -lags mediainfo
48 -rwxr-xr-x 1 root 47352 Apr  3 15:38 mediainfo

/usr/bin$ mediainfo -h
MediaInfo Command line,
MediaInfoLib - v21.09

Appreciate the info, i know straight away that the JSON is not being populated. Which is what the plugin needs to access all info and run

can you use that MediaInfo utility also and direct mediainfo the container and then see if it lets you produce a json output? 
 

unfortunately I’m not a linux guy, so not familiar with the millions of spin off builds.

@neik or @FrostByte  any insight would be appreciated 

Link to comment
Share on other sites

FrostByte

I'm definitely not a Unix guy, that's why I use DSM :)

try something like this from the command line

mediainfo --output=JSON "/mnt/media/Movies/The Lion King (1994)/The Lion King (1994).mkv"

 

  • Thanks 1
Link to comment
Share on other sites

Derkington

This generates some output.   FYI this is straight forward desktop Ubuntu 22.04 LTS install, no special or weird tweaks.  Its on a Intel NUC and Emby is the only service that is running on it. I followed the wiki guide to install the plugin and dependencies.

$ sudo mediainfo --output=JSON "/mnt/media/Movies/The Lion King (1994)/The Lion King (1994).mkv"

[sudo] password for XXXXXXX:
{
"creatingLibrary": {
"name": "MediaInfoLib",
"version": "21.09",
"url": "https://mediaarea.net/MediaInfo"
},
"media": {
"@ref": "/mnt/media/Movies/The Lion King (1994)/The Lion King (1994).mkv",
"track": [
{
"@type": "General",
"UniqueID": "325487425604656655180182799631349113347",
"VideoCount": "1",
"AudioCount": "7",
"TextCount": "7",
"MenuCount": "1",
"FileExtension": "mkv",
"Format": "Matroska",
"Format_Version": "4",
"FileSize": "963944906",
"Duration": "5303.560",
"OverallBitRate": "1454035",
"FrameRate": "23.976",
"FrameCount": "127158",
"IsStreamable": "Yes",
"Encoded_Date": "UTC 2021-03-21 19:43:14",
"File_Modified_Date": "UTC 2022-08-20 06:02:43",
"File_Modified_Date_Local": "2022-08-20 07:02:43",
"Encoded_Application": "mkvmerge v49.0.0 ('Sick Of Losing Soulmates') 64-bit",
"Encoded_Library": "libebml v1.4.0 + libmatroska v1.6.2 / Lavf58.45.100"
},
{
"@type": "Video",
"StreamOrder": "0",
"ID": "1",
"UniqueID": "400837986913532488",
"Format": "AV1",
"Format_Profile": "Main",
"Format_Level": "4.0",
"HDR_Format": "SMPTE ST 2086",
"HDR_Format_Compatibility": "HDR10",
"CodecID": "V_AV1",
"Duration": "5303.549000000",
"BitRate": "736680",
"Width": "1920",
"Height": "1080",
"Sampled_Width": "1920",
"Sampled_Height": "1080",
"PixelAspectRatio": "1.000",
"DisplayAspectRatio": "1.778",
"FrameRate_Mode": "CFR",
"FrameRate": "23.976",
"FrameCount": "127158",
"ColorSpace": "YUV",
"ChromaSubsampling": "4:2:0",
"BitDepth": "10",
"Delay": "0.000",
"StreamSize": "488377847",
"Default": "Yes",
"Forced": "No",
"colour_description_present": "Yes",
"colour_description_present_Source": "Container / Stream",
"colour_range": "Limited",
"colour_range_Source": "Container / Stream",
"colour_primaries": "BT.2020",
"colour_primaries_Source": "Container / Stream",
"transfer_characteristics": "PQ",
"transfer_characteristics_Source": "Container / Stream",
"matrix_coefficients": "BT.2020 non-constant",
"matrix_coefficients_Source": "Container / Stream",
"MasteringDisplay_ColorPrimaries_Source": "Container",
"MasteringDisplay_Luminance": "min: 0.0001 cd/m2, max: 1000 cd/m2",
"MasteringDisplay_Luminance_Source": "Container"
},
{
"@type": "Audio",
"@typeorder": "1",
"StreamOrder": "1",
"ID": "2",
"UniqueID": "7426705265110606898",
"Format": "Opus",
"CodecID": "A_OPUS",
"Duration": "5303.523000000",
"BitRate": "94375",
"Channels": "2",
"ChannelPositions": "Front: L R",
"ChannelLayout": "L R",
"SamplesPerFrame": "960",
"SamplingRate": "48000",
"SamplingCount": "254569104",
"FrameRate": "50.000",
"FrameCount": "265176",
"Compression_Mode": "Lossy",
"Delay": "0.033",
"Delay_Source": "Container",
"StreamSize": "62565350",
"StreamSize_Proportion": "0.06491",
"Encoded_Library": "Lavc58.91.100 libopus",
"Language": "en",
"Default": "Yes",
"Forced": "No"
},
{
"@type": "Audio",
"@typeorder": "2",
"StreamOrder": "2",
"ID": "3",
"UniqueID": "3958730622720805513",
"Format": "Opus",
"CodecID": "A_OPUS",
"Duration": "5303.560000000",
"BitRate": "92505",
"Channels": "2",
"ChannelPositions": "Front: L R",
"ChannelLayout": "L R",
"SamplesPerFrame": "960",
"SamplingRate": "48000",
"SamplingCount": "254570880",
"FrameRate": "50.000",
"FrameCount": "265178",
"Compression_Mode": "Lossy",
"Delay": "0.000",
"Delay_Source": "Container",
"StreamSize": "61326055",
"StreamSize_Proportion": "0.06362",
"Encoded_Library": "Lavc58.91.100 libopus",
"Language": "fr",
"Default": "No",
"Forced": "No"
},
{
"@type": "Audio",
"@typeorder": "3",
"StreamOrder": "3",
"ID": "4",
"UniqueID": "4293095606800779530",
"Format": "Opus",
"CodecID": "A_OPUS",
"Duration": "5303.560000000",
"BitRate": "91978",
"Channels": "2",
"ChannelPositions": "Front: L R",
"ChannelLayout": "L R",
"SamplesPerFrame": "960",
"SamplingRate": "48000",
"SamplingCount": "254570880",
"FrameRate": "50.000",
"FrameCount": "265178",
"Compression_Mode": "Lossy",
"Delay": "0.000",
"Delay_Source": "Container",
"StreamSize": "60976426",
"StreamSize_Proportion": "0.06326",
"Encoded_Library": "Lavc58.91.100 libopus",
"Language": "es",
"Default": "No",
"Forced": "No"
},
{
"@type": "Audio",
"@typeorder": "4",
"StreamOrder": "4",
"ID": "5",
"UniqueID": "11257616394991267473",
"Format": "Opus",
"CodecID": "A_OPUS",
"Duration": "5303.560000000",
"BitRate": "91315",
"Channels": "2",
"ChannelPositions": "Front: L R",
"ChannelLayout": "L R",
"SamplesPerFrame": "960",
"SamplingRate": "48000",
"SamplingCount": "254570880",
"FrameRate": "50.000",
"FrameCount": "265178",
"Compression_Mode": "Lossy",
"Delay": "0.000",
"Delay_Source": "Container",
"StreamSize": "60537225",
"StreamSize_Proportion": "0.06280",
"Encoded_Library": "Lavc58.91.100 libopus",
"Language": "de",
"Default": "No",
"Forced": "No"
},
{
"@type": "Audio",
"@typeorder": "5",
"StreamOrder": "5",
"ID": "6",
"UniqueID": "15957659784740575234",
"Format": "Opus",
"CodecID": "A_OPUS",
"Duration": "5303.560000000",
"BitRate": "93205",
"Channels": "2",
"ChannelPositions": "Front: L R",
"ChannelLayout": "L R",
"SamplesPerFrame": "960",
"SamplingRate": "48000",
"SamplingCount": "254570880",
"FrameRate": "50.000",
"FrameCount": "265178",
"Compression_Mode": "Lossy",
"Delay": "0.000",
"Delay_Source": "Container",
"StreamSize": "61790330",
"StreamSize_Proportion": "0.06410",
"Encoded_Library": "Lavc58.91.100 libopus",
"Language": "ja",
"Default": "No",
"Forced": "No"
},
{
"@type": "Audio",
"@typeorder": "6",
"StreamOrder": "6",
"ID": "7",
"UniqueID": "13109718494726451692",
"Format": "Opus",
"CodecID": "A_OPUS",
"Duration": "5303.560000000",
"BitRate": "90345",
"Channels": "2",
"ChannelPositions": "Front: L R",
"ChannelLayout": "L R",
"SamplesPerFrame": "960",
"SamplingRate": "48000",
"SamplingCount": "254570880",
"FrameRate": "50.000",
"FrameCount": "265178",
"Compression_Mode": "Lossy",
"Delay": "0.000",
"Delay_Source": "Container",
"StreamSize": "59893909",
"StreamSize_Proportion": "0.06213",
"Encoded_Library": "Lavc58.91.100 libopus",
"Language": "ko",
"Default": "No",
"Forced": "No"
},
{
"@type": "Audio",
"@typeorder": "7",
"StreamOrder": "7",
"ID": "8",
"UniqueID": "10074337192752111126",
"Format": "Opus",
"CodecID": "A_OPUS",
"Duration": "5303.560000000",
"BitRate": "94219",
"Channels": "2",
"ChannelPositions": "Front: L R",
"ChannelLayout": "L R",
"SamplesPerFrame": "960",
"SamplingRate": "48000",
"SamplingCount": "254570880",
"FrameRate": "50.000",
"FrameCount": "265178",
"Compression_Mode": "Lossy",
"Delay": "0.000",
"Delay_Source": "Container",
"StreamSize": "62462017",
"StreamSize_Proportion": "0.06480",
"Encoded_Library": "Lavc58.91.100 libopus",
"Language": "zh",
"Default": "No",
"Forced": "No"
},
{
"@type": "Text",
"@typeorder": "1",
"StreamOrder": "8",
"ID": "9",
"UniqueID": "1997835923799930290",
"Format": "UTF-8",
"CodecID": "S_TEXT/UTF8",
"Duration": "5240.350000000",
"BitRate": "56",
"FrameRate": "0.240",
"FrameCount": "1256",
"ElementCount": "1256",
"StreamSize": "36684",
"Title": "English-SRT",
"Language": "en",
"Default": "Yes",
"Forced": "No"
},
{
"@type": "Text",
"@typeorder": "2",
"StreamOrder": "9",
"ID": "10",
"UniqueID": "7193747238584407436",
"Format": "PGS",
"MuxingMode": "zlib",
"CodecID": "S_HDMV/PGS",
"Duration": "5194.815000000",
"BitRate": "32424",
"FrameRate": "0.432",
"FrameCount": "2244",
"ElementCount": "2244",
"StreamSize": "21054708",
"Title": "French-PGS",
"Language": "fr",
"Default": "No",
"Forced": "No"
},
{
"@type": "Text",
"@typeorder": "3",
"StreamOrder": "10",
"ID": "11",
"UniqueID": "5557275511657279285",
"Format": "PGS",
"MuxingMode": "zlib",
"CodecID": "S_HDMV/PGS",
"Duration": "5194.564000000",
"BitRate": "30452",
"FrameRate": "0.431",
"FrameCount": "2238",
"ElementCount": "2238",
"StreamSize": "19773240",
"Title": "Spanish-PGS",
"Language": "es",
"Default": "No",
"Forced": "No"
},
{
"@type": "Text",
"@typeorder": "4",
"StreamOrder": "11",
"ID": "12",
"UniqueID": "9737478591730291646",
"Format": "PGS",
"MuxingMode": "zlib",
"CodecID": "S_HDMV/PGS",
"Duration": "4908.028000000",
"BitRate": "40714",
"FrameRate": "0.471",
"FrameCount": "2312",
"ElementCount": "2312",
"StreamSize": "24978521",
"Title": "German-PGS",
"Language": "de",
"Default": "No",
"Forced": "No"
},
{
"@type": "Text",
"@typeorder": "5",
"StreamOrder": "12",
"ID": "13",
"UniqueID": "11789831263808042133",
"Format": "PGS",
"MuxingMode": "zlib",
"CodecID": "S_HDMV/PGS",
"Duration": "4844.256000000",
"BitRate": "27118",
"FrameRate": "0.412",
"FrameCount": "1996",
"ElementCount": "1996",
"StreamSize": "16421287",
"Title": "Japanese-PGS",
"Language": "ja",
"Default": "No",
"Forced": "No"
},
{
"@type": "Text",
"@typeorder": "6",
"StreamOrder": "13",
"ID": "14",
"UniqueID": "3328751344752793115",
"Format": "PGS",
"MuxingMode": "zlib",
"CodecID": "S_HDMV/PGS",
"Duration": "5194.607000000",
"BitRate": "18201",
"FrameRate": "0.437",
"FrameCount": "2270",
"ElementCount": "2270",
"StreamSize": "11818489",
"Title": "Korean-PGS",
"Language": "ko",
"Default": "No",
"Forced": "No"
},
{
"@type": "Text",
"@typeorder": "7",
"StreamOrder": "14",
"ID": "15",
"UniqueID": "7721037311947563819",
"Format": "PGS",
"MuxingMode": "zlib",
"CodecID": "S_HDMV/PGS",
"Duration": "5194.607000000",
"BitRate": "23968",
"FrameRate": "0.440",
"FrameCount": "2288",
"ElementCount": "2288",
"StreamSize": "15563405",
"Title": "Chinese-PGS",
"Language": "zh",
"Default": "No",
"Forced": "No"
},
{
"@type": "Menu",
"extra": {
"_00_00_00_000": ":Chapter 1",
"_00_04_40_071": ":Chapter 2",
"_00_08_10_406": ":Chapter 3",
"_00_11_28_979": ":Chapter 4",
"_00_14_09_557": ":Chapter 5",
"_00_17_51_028": ":Chapter 6",
"_00_22_54_748": ":Chapter 7",
"_00_25_36_117": ":Chapter 8",
"_00_30_24_197": ":Chapter 9",
"_00_35_52_150": ":Chapter 10",
"_00_40_14_078": ":Chapter 11",
"_00_41_14_430": ":Chapter 12",
"_00_44_16_945": ":Chapter 13",
"_00_48_20_564": ":Chapter 14",
"_00_50_07_212": ":Chapter 15",
"_00_53_14_774": ":Chapter 16",
"_00_57_50_842": ":Chapter 17",
"_01_00_56_569": ":Chapter 18",
"_01_02_32_331": ":Chapter 19",
"_01_08_49_625": ":Chapter 20",
"_01_12_41_023": ":Chapter 21",
"_01_16_42_306": ":Chapter 22",
"_01_20_45_131": ":Chapter 23",
"_01_23_23_873": ":Chapter 24"
}
}
]
}
}

 

Link to comment
Share on other sites

FrostByte

If the cli works, then unless there's a permission problem, I'm not sure what else you would need to do.

I installed using the Synology package center, so everything was simple.  Permissions were set by the package installation.  Then all I did was tell the plugin where they were installed.

image.thumb.png.06222fbb884eed9ed08337c85e0f1035.png

 

image.thumb.png.1e114bfd4ab057d10c9de52bb73f0e20.png

 

 

 

 

 

  • Thanks 1
Link to comment
Share on other sites

Cheesegeezer
3 hours ago, Derkington said:

This generates some output.   FYI this is straight forward desktop Ubuntu 22.04 LTS install, no special or weird tweaks.  Its on a Intel NUC and Emby is the only service that is running on it. I followed the wiki guide to install the plugin and dependencies.

 

$ sudo mediainfo --output=JSON "/mnt/media/Movies/The Lion King (1994)/The Lion King (1994).mkv

 

3 hours ago, Derkington said:

[sudo] password for XXXXXXX:

this sudo password is probably causing the failure in json validation

whats below is how the json should look.

3 hours ago, Derkington said:


{
"creatingLibrary": {
"name": "MediaInfoLib",
"version": "21.09",
"url": "https://mediaarea.net/MediaInfo"
},
"media": {
"@ref": "/mnt/media/Movies/The Lion King (1994)/The Lion King (1994).mkv",
"track": [
{
"@type": "General",
"UniqueID": "325487425604656655180182799631349113347",
"VideoCount": "1",
"AudioCount": "7",
"TextCount": "7",
"MenuCount": "1",
"FileExtension": "mkv",
"Format": "Matroska",
"Format_Version": "4",
"FileSize": "963944906",
"Duration": "5303.560",
"OverallBitRate": "1454035",
"FrameRate": "23.976",
"FrameCount": "127158",
"IsStreamable": "Yes",
"Encoded_Date": "UTC 2021-03-21 19:43:14",
"File_Modified_Date": "UTC 2022-08-20 06:02:43",
"File_Modified_Date_Local": "2022-08-20 07:02:43",
"Encoded_Application": "mkvmerge v49.0.0 ('Sick Of Losing Soulmates') 64-bit",
"Encoded_Library": "libebml v1.4.0 + libmatroska v1.6.2 / Lavf58.45.100"
},
{
"@type": "Video",
"StreamOrder": "0",
"ID": "1",
"UniqueID": "400837986913532488",
"Format": "AV1",
"Format_Profile": "Main",
"Format_Level": "4.0",
"HDR_Format": "SMPTE ST 2086",
"HDR_Format_Compatibility": "HDR10",
"CodecID": "V_AV1",
"Duration": "5303.549000000",
"BitRate": "736680",
"Width": "1920",
"Height": "1080",
"Sampled_Width": "1920",
"Sampled_Height": "1080",
"PixelAspectRatio": "1.000",
"DisplayAspectRatio": "1.778",
"FrameRate_Mode": "CFR",
"FrameRate": "23.976",
"FrameCount": "127158",
"ColorSpace": "YUV",
"ChromaSubsampling": "4:2:0",
"BitDepth": "10",
"Delay": "0.000",
"StreamSize": "488377847",
"Default": "Yes",
"Forced": "No",
"colour_description_present": "Yes",
"colour_description_present_Source": "Container / Stream",
"colour_range": "Limited",
"colour_range_Source": "Container / Stream",
"colour_primaries": "BT.2020",
"colour_primaries_Source": "Container / Stream",
"transfer_characteristics": "PQ",
"transfer_characteristics_Source": "Container / Stream",
"matrix_coefficients": "BT.2020 non-constant",
"matrix_coefficients_Source": "Container / Stream",
"MasteringDisplay_ColorPrimaries_Source": "Container",
"MasteringDisplay_Luminance": "min: 0.0001 cd/m2, max: 1000 cd/m2",
"MasteringDisplay_Luminance_Source": "Container"
},
{
"@type": "Audio",
"@typeorder": "1",
"StreamOrder": "1",
"ID": "2",
"UniqueID": "7426705265110606898",
"Format": "Opus",
"CodecID": "A_OPUS",
"Duration": "5303.523000000",
"BitRate": "94375",
"Channels": "2",
"ChannelPositions": "Front: L R",
"ChannelLayout": "L R",
"SamplesPerFrame": "960",
"SamplingRate": "48000",
"SamplingCount": "254569104",
"FrameRate": "50.000",
"FrameCount": "265176",
"Compression_Mode": "Lossy",
"Delay": "0.033",
"Delay_Source": "Container",
"StreamSize": "62565350",
"StreamSize_Proportion": "0.06491",
"Encoded_Library": "Lavc58.91.100 libopus",
"Language": "en",
"Default": "Yes",
"Forced": "No"
},
{
"@type": "Audio",
"@typeorder": "2",
"StreamOrder": "2",
"ID": "3",
"UniqueID": "3958730622720805513",
"Format": "Opus",
"CodecID": "A_OPUS",
"Duration": "5303.560000000",
"BitRate": "92505",
"Channels": "2",
"ChannelPositions": "Front: L R",
"ChannelLayout": "L R",
"SamplesPerFrame": "960",
"SamplingRate": "48000",
"SamplingCount": "254570880",
"FrameRate": "50.000",
"FrameCount": "265178",
"Compression_Mode": "Lossy",
"Delay": "0.000",
"Delay_Source": "Container",
"StreamSize": "61326055",
"StreamSize_Proportion": "0.06362",
"Encoded_Library": "Lavc58.91.100 libopus",
"Language": "fr",
"Default": "No",
"Forced": "No"
},
{
"@type": "Audio",
"@typeorder": "3",
"StreamOrder": "3",
"ID": "4",
"UniqueID": "4293095606800779530",
"Format": "Opus",
"CodecID": "A_OPUS",
"Duration": "5303.560000000",
"BitRate": "91978",
"Channels": "2",
"ChannelPositions": "Front: L R",
"ChannelLayout": "L R",
"SamplesPerFrame": "960",
"SamplingRate": "48000",
"SamplingCount": "254570880",
"FrameRate": "50.000",
"FrameCount": "265178",
"Compression_Mode": "Lossy",
"Delay": "0.000",
"Delay_Source": "Container",
"StreamSize": "60976426",
"StreamSize_Proportion": "0.06326",
"Encoded_Library": "Lavc58.91.100 libopus",
"Language": "es",
"Default": "No",
"Forced": "No"
},
{
"@type": "Audio",
"@typeorder": "4",
"StreamOrder": "4",
"ID": "5",
"UniqueID": "11257616394991267473",
"Format": "Opus",
"CodecID": "A_OPUS",
"Duration": "5303.560000000",
"BitRate": "91315",
"Channels": "2",
"ChannelPositions": "Front: L R",
"ChannelLayout": "L R",
"SamplesPerFrame": "960",
"SamplingRate": "48000",
"SamplingCount": "254570880",
"FrameRate": "50.000",
"FrameCount": "265178",
"Compression_Mode": "Lossy",
"Delay": "0.000",
"Delay_Source": "Container",
"StreamSize": "60537225",
"StreamSize_Proportion": "0.06280",
"Encoded_Library": "Lavc58.91.100 libopus",
"Language": "de",
"Default": "No",
"Forced": "No"
},
{
"@type": "Audio",
"@typeorder": "5",
"StreamOrder": "5",
"ID": "6",
"UniqueID": "15957659784740575234",
"Format": "Opus",
"CodecID": "A_OPUS",
"Duration": "5303.560000000",
"BitRate": "93205",
"Channels": "2",
"ChannelPositions": "Front: L R",
"ChannelLayout": "L R",
"SamplesPerFrame": "960",
"SamplingRate": "48000",
"SamplingCount": "254570880",
"FrameRate": "50.000",
"FrameCount": "265178",
"Compression_Mode": "Lossy",
"Delay": "0.000",
"Delay_Source": "Container",
"StreamSize": "61790330",
"StreamSize_Proportion": "0.06410",
"Encoded_Library": "Lavc58.91.100 libopus",
"Language": "ja",
"Default": "No",
"Forced": "No"
},
{
"@type": "Audio",
"@typeorder": "6",
"StreamOrder": "6",
"ID": "7",
"UniqueID": "13109718494726451692",
"Format": "Opus",
"CodecID": "A_OPUS",
"Duration": "5303.560000000",
"BitRate": "90345",
"Channels": "2",
"ChannelPositions": "Front: L R",
"ChannelLayout": "L R",
"SamplesPerFrame": "960",
"SamplingRate": "48000",
"SamplingCount": "254570880",
"FrameRate": "50.000",
"FrameCount": "265178",
"Compression_Mode": "Lossy",
"Delay": "0.000",
"Delay_Source": "Container",
"StreamSize": "59893909",
"StreamSize_Proportion": "0.06213",
"Encoded_Library": "Lavc58.91.100 libopus",
"Language": "ko",
"Default": "No",
"Forced": "No"
},
{
"@type": "Audio",
"@typeorder": "7",
"StreamOrder": "7",
"ID": "8",
"UniqueID": "10074337192752111126",
"Format": "Opus",
"CodecID": "A_OPUS",
"Duration": "5303.560000000",
"BitRate": "94219",
"Channels": "2",
"ChannelPositions": "Front: L R",
"ChannelLayout": "L R",
"SamplesPerFrame": "960",
"SamplingRate": "48000",
"SamplingCount": "254570880",
"FrameRate": "50.000",
"FrameCount": "265178",
"Compression_Mode": "Lossy",
"Delay": "0.000",
"Delay_Source": "Container",
"StreamSize": "62462017",
"StreamSize_Proportion": "0.06480",
"Encoded_Library": "Lavc58.91.100 libopus",
"Language": "zh",
"Default": "No",
"Forced": "No"
},
{
"@type": "Text",
"@typeorder": "1",
"StreamOrder": "8",
"ID": "9",
"UniqueID": "1997835923799930290",
"Format": "UTF-8",
"CodecID": "S_TEXT/UTF8",
"Duration": "5240.350000000",
"BitRate": "56",
"FrameRate": "0.240",
"FrameCount": "1256",
"ElementCount": "1256",
"StreamSize": "36684",
"Title": "English-SRT",
"Language": "en",
"Default": "Yes",
"Forced": "No"
},
{
"@type": "Text",
"@typeorder": "2",
"StreamOrder": "9",
"ID": "10",
"UniqueID": "7193747238584407436",
"Format": "PGS",
"MuxingMode": "zlib",
"CodecID": "S_HDMV/PGS",
"Duration": "5194.815000000",
"BitRate": "32424",
"FrameRate": "0.432",
"FrameCount": "2244",
"ElementCount": "2244",
"StreamSize": "21054708",
"Title": "French-PGS",
"Language": "fr",
"Default": "No",
"Forced": "No"
},
{
"@type": "Text",
"@typeorder": "3",
"StreamOrder": "10",
"ID": "11",
"UniqueID": "5557275511657279285",
"Format": "PGS",
"MuxingMode": "zlib",
"CodecID": "S_HDMV/PGS",
"Duration": "5194.564000000",
"BitRate": "30452",
"FrameRate": "0.431",
"FrameCount": "2238",
"ElementCount": "2238",
"StreamSize": "19773240",
"Title": "Spanish-PGS",
"Language": "es",
"Default": "No",
"Forced": "No"
},
{
"@type": "Text",
"@typeorder": "4",
"StreamOrder": "11",
"ID": "12",
"UniqueID": "9737478591730291646",
"Format": "PGS",
"MuxingMode": "zlib",
"CodecID": "S_HDMV/PGS",
"Duration": "4908.028000000",
"BitRate": "40714",
"FrameRate": "0.471",
"FrameCount": "2312",
"ElementCount": "2312",
"StreamSize": "24978521",
"Title": "German-PGS",
"Language": "de",
"Default": "No",
"Forced": "No"
},
{
"@type": "Text",
"@typeorder": "5",
"StreamOrder": "12",
"ID": "13",
"UniqueID": "11789831263808042133",
"Format": "PGS",
"MuxingMode": "zlib",
"CodecID": "S_HDMV/PGS",
"Duration": "4844.256000000",
"BitRate": "27118",
"FrameRate": "0.412",
"FrameCount": "1996",
"ElementCount": "1996",
"StreamSize": "16421287",
"Title": "Japanese-PGS",
"Language": "ja",
"Default": "No",
"Forced": "No"
},
{
"@type": "Text",
"@typeorder": "6",
"StreamOrder": "13",
"ID": "14",
"UniqueID": "3328751344752793115",
"Format": "PGS",
"MuxingMode": "zlib",
"CodecID": "S_HDMV/PGS",
"Duration": "5194.607000000",
"BitRate": "18201",
"FrameRate": "0.437",
"FrameCount": "2270",
"ElementCount": "2270",
"StreamSize": "11818489",
"Title": "Korean-PGS",
"Language": "ko",
"Default": "No",
"Forced": "No"
},
{
"@type": "Text",
"@typeorder": "7",
"StreamOrder": "14",
"ID": "15",
"UniqueID": "7721037311947563819",
"Format": "PGS",
"MuxingMode": "zlib",
"CodecID": "S_HDMV/PGS",
"Duration": "5194.607000000",
"BitRate": "23968",
"FrameRate": "0.440",
"FrameCount": "2288",
"ElementCount": "2288",
"StreamSize": "15563405",
"Title": "Chinese-PGS",
"Language": "zh",
"Default": "No",
"Forced": "No"
},
{
"@type": "Menu",
"extra": {
"_00_00_00_000": ":Chapter 1",
"_00_04_40_071": ":Chapter 2",
"_00_08_10_406": ":Chapter 3",
"_00_11_28_979": ":Chapter 4",
"_00_14_09_557": ":Chapter 5",
"_00_17_51_028": ":Chapter 6",
"_00_22_54_748": ":Chapter 7",
"_00_25_36_117": ":Chapter 8",
"_00_30_24_197": ":Chapter 9",
"_00_35_52_150": ":Chapter 10",
"_00_40_14_078": ":Chapter 11",
"_00_41_14_430": ":Chapter 12",
"_00_44_16_945": ":Chapter 13",
"_00_48_20_564": ":Chapter 14",
"_00_50_07_212": ":Chapter 15",
"_00_53_14_774": ":Chapter 16",
"_00_57_50_842": ":Chapter 17",
"_01_00_56_569": ":Chapter 18",
"_01_02_32_331": ":Chapter 19",
"_01_08_49_625": ":Chapter 20",
"_01_12_41_023": ":Chapter 21",
"_01_16_42_306": ":Chapter 22",
"_01_20_45_131": ":Chapter 23",
"_01_23_23_873": ":Chapter 24"
}
}
]
}
}

 

 

Link to comment
Share on other sites

Derkington
2 hours ago, FrostByte said:

If the cli works, then unless there's a permission problem, I'm not sure what else you would need to do.

I installed using the Synology package center, so everything was simple.  Permissions were set by the package installation.  Then all I did was tell the plugin where they were installed.

image.thumb.png.06222fbb884eed9ed08337c85e0f1035.png

 

image.thumb.png.1e114bfd4ab057d10c9de52bb73f0e20.png

 

 

 

 

 

The file permissions are the same on my install. The  diffrence betwen your install and mine is who owns the binary/files (in my case root, which is normal), in anycase that should not make any diffrence because everyone can execute the binary/fike due to the permissions. Anyone can read and excute the binary/file, only sc-mediainfo on your box and root on mine can modify (write to the binary/file) which is not needed just to run it. 

Link to comment
Share on other sites

Derkington
6 minutes ago, FrostByte said:

Make sure you can run it without being SU

Just did and I can run it without su.  Old habit using su for every command when debugging. Here's a snippit.

/usr/bin$ mediainfo --output=JSON "/mnt/media/Movies/The Lion King (1994)/The Lion King (1994).mkv"
{
"creatingLibrary": {
"name": "MediaInfoLib",
"version": "21.09",
"url": "https://mediaarea.net/MediaInfo"
},
"media": {
"@ref": "/mnt/media/Movies/The Lion King (1994)/The Lion King (1994).mkv",
"track": [
{
"@type": "General",
"UniqueID": "325487425604656655180182799631349113347",
"VideoCount": "1",
"AudioCount": "7",
"TextCount": "7",
"MenuCount": "1",
"FileExtension": "mkv",
"Format": "Matroska",
"Format_Version": "4",
"FileSize": "963944906",
"Duration": "5303.560",
"OverallBitRate": "1454035",
"FrameRate": "23.976",
"FrameCount": "127158",
"IsStreamable": "Yes",
"Encoded_Date": "UTC 2021-03-21 19:43:14",
"File_Modified_Date": "UTC 2022-08-20 06:02:43",
"File_Modified_Date_Local": "2022-08-20 07:02:43",
"Encoded_Application": "mkvmerge v49.0.0 ('Sick Of Losing Soulmates') 64-bit",
"Encoded_Library": "libebml v1.4.0 + libmatroska v1.6.2 / Lavf58.45.100"
},
{
"@type": "Video",
"StreamOrder": "0",
"ID": "1",
"UniqueID": "400837986913532488",
"Format": "AV1",
"Format_Profile": "Main",
"Format_Level": "4.0",
"HDR_Format": "SMPTE ST 2086",
"HDR_Format_Compatibility": "HDR10",
"CodecID": "V_AV1",

 

  • Like 1
Link to comment
Share on other sites

19 minutes ago, Cheesegeezer said:

this sudo password is probably causing the failure in json validation

I would guess so, as the plugin is not expecting any password input and therefore fail.
Make sure the user "emby" can access mediainfo cli without any PW input.

  • Thanks 1
Link to comment
Share on other sites

Derkington
10 minutes ago, neik said:

I would guess so, as the plugin is not expecting any password input and therefore fail.
Make sure the user "emby" can access mediainfo cli without any PW input.

It's not the permissions on the binaries, unless they are being called in some special way by the plugin. I have done two things to demonstrate this.

1) I have changed the permissions on both binaries to 777, that's the most permissive a file can be on a Linux system. With those permissions anyone and anything can read, write and execute the binarys.  That made no diffrence.

2) As requested above I have run mediainfo as the user emby, see below.  The emby user was able to run the binary without issue.

sudo -u emby mediainfo --output=JSON "/mnt/media/Movies/The Lion King (1994)/The Lion King (1994).mkv"
{
"creatingLibrary": {
"name": "MediaInfoLib",
"version": "21.09",
"url": "https://mediaarea.net/MediaInfo"
},
"media": {
"@ref": "/mnt/media/Movies/The Lion King (1994)/The Lion King (1994).mkv",
"track": [
{
"@type": "General",
"UniqueID": "325487425604656655180182799631349113347",
"VideoCount": "1",
"AudioCount": "7",
"TextCount": "7",
"MenuCount": "1",
"FileExtension": "mkv",
"Format": "Matroska",
"Format_Version": "4",
"FileSize": "963944906",
"Duration": "5303.560",
"OverallBitRate": "1454035",
"FrameRate": "23.976",
"FrameCount": "127158",
"IsStreamable": "Yes",
"Encoded_Date": "UTC 2021-03-21 19:43:14",
"File_Modified_Date": "UTC 2022-08-20 06:02:43",
"File_Modified_Date_Local": "2022-08-20 07:02:43",
"Encoded_Application": "mkvmerge v49.0.0 ('Sick Of Losing Soulmates') 64-bit",
"Encoded_Library": "libebml v1.4.0 + libmatroska v1.6.2 / Lavf58.45.100"
},
{
"@type": "Video",

 

  • Like 1
  • Thanks 1
Link to comment
Share on other sites

Derkington
24 minutes ago, neik said:

Is this the version of your mediainfo cli?
Mine is 22.03, updating might help.

No change sadly. Just updated to 22.06.  Set plugin to "Refresh All Items" , ran the scheduled task manully and got the same JSON error

mediainfo -h
MediaInfo Command line,
MediaInfoLib - v22.06

 

Edited by Derkington
  • Like 1
  • Thanks 1
Link to comment
Share on other sites

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