Sonarr: Unsupported MediaInfoLib encoding

Created on 22 May 2019  路  9Comments  路  Source: Sonarr/Sonarr

I'm facing Encoding-MediaInfoLib issue with v3 beta and v2 on raspberry pi 3 b+ (Raspbian 9)

System.NotSupportedException: Unsupported MediaInfoLib encoding
at NzbDrone.Core.MediaFiles.MediaInfo.MediaInfo.InitializeEncoding () [0x000b0] in <6a3dcbc5b3c2463890627fff9fca65cd>:0
at NzbDrone.Core.MediaFiles.MediaInfo.MediaInfo..ctor () [0x00011] in <6a3dcbc5b3c2463890627fff9fca65cd>:0
at NzbDrone.Core.MediaFiles.MediaInfo.VideoFileInfoReader.GetMediaInfo (System.String filename) [0x00021] in <6a3dcbc5b3c2463890627fff9fca65cd>:0

System Information

  • Sonarr Version: [v2.0.0.5322] (Also with v3 beta)
  • Operating System: Raspbian
  • Mono Version: 5.20.1.19

I'm facing same issue on app start. It throws from NzbDrone.Core.MediaFiles.MediaInfo.MediaInfo.InitializeEncoding.

P.S: I'm quite sure, app founds mediainfo library and mediainfo is able to work from CLI or via GUI. For sure i had something wrong, first set-up v3 beta on raspbian faced this issue, removed safely and installed again nzbdrone-sonarr v2 and still facing same issue.

Most helpful comment

"Option not known"... meaning MediaInfo lib doesn't understand 'Info_Version' while that option has been present for over 12 years. So it likely can't properly parse the string we pass to it.

Maybe there's an odd locale/charset set on your machine?
Best bet is libmediainfo being badly installed.

All 9 comments

Which version of mediainfo?

Hello @Taloth

MediaInfoLib version is v19.04 just installed last night from mediaarea debian repositories as mentioned in v3 Beta setup documentation early beginning.

19.04 on my ubuntu intel system works fine.

I've added a bit more logging so it might output more useful diagnostic info. Wait for 3.0.1.500 and let me know what error it logs.

Hello,

Just tried with 3.0.1.500 from source

MediaInfo Library could not be loaded Unsupported MediaInfoLib encoding, version check responses (may be gibberish, show it to the Sonarr devs): Option not known, O, Option not known

P.S: I have also tried to downgrade my mediainfolib so file and put directly next to Sonarr.exe too (just to be sure)

Run application with MONO_LOG_LEVEL=debug mono Sonarr.exe --debug | grep media
and got results related with library like;

Mono: mono_w32file_find_next: Found [/opt/a/Sonarr/libmediainfo.so.0]
Mono: mono_w32file_find_next: Found [/opt/a/Sonarr/libmediainfo.so.0]
Mono: mono_w32file_find_next: Found [/opt/a/Sonarr/libmediainfo.so.0]
Mono: DllImport attempting to load: 'libmediainfo.so.0'.
Mono: DllImport loaded library '/opt/a/Sonarr/libmediainfo.so.0'.
Mono: DllImport searching in: 'libmediainfo.so.0' ('/opt/a/Sonarr/libmediainfo.so.0').
Mono: DllImport searching in: 'libmediainfo.so.0' ('/opt/a/Sonarr/libmediainfo.so.0').
Mono: DllImport searching in: 'libmediainfo.so.0' ('/opt/a/Sonarr/libmediainfo.so.0').
Mono: DllImport searching in: 'libmediainfo.so.0' ('/opt/a/Sonarr/libmediainfo.so.0').

"Option not known"... meaning MediaInfo lib doesn't understand 'Info_Version' while that option has been present for over 12 years. So it likely can't properly parse the string we pass to it.

Maybe there's an odd locale/charset set on your machine?
Best bet is libmediainfo being badly installed.

THANK YOU! [SOLVED]

I was using my Raspbian as a desktop environment (with Gui) so when i have install os, ordinarily picked up my native language.

Finally, I have just change my locale settings with English/ISO-8859-1 and ALL is fine
Stupid issue that coming from really deep, i have either tried to build mono, libmedia from source...

Edit: My settings was Turkish language with UTF-8 charset encoding.

It's still somewhat an issue either with Sonarr or mediainfo coz apis shouldn't be locale dependent, what locale was it set to?

It was Turkish language with UTF-8 charset encoding. Probably "Info_Version" string become "谋nfo_version" instead of "info_version" or something like this so mediainfolib could not recognize.

tnx, I'll try that in a docker container when I have a bit of time.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

sparkie3 picture sparkie3  路  3Comments

markus101 picture markus101  路  4Comments

sam3d picture sam3d  路  3Comments

antigravity83 picture antigravity83  路  3Comments

cjamesdesigner picture cjamesdesigner  路  3Comments