yartat / MP-MediaInfo

Mediaportal MediaInfoLib wrapper
Other
45 stars 21 forks source link

Analyzing files with special characters #48

Open MichaelHochriegl opened 1 year ago

MichaelHochriegl commented 1 year ago

If I pass in a filepath with special characters like "³" for example for the Movie "[REC]³" I get the following output:

dbug: MediaInfo.MovieService[0]
2023-04-13T14:36:25.883272712Z       Analyzing media /mnt/media-data/movies/[REC]³ Genesis (2012)/[REC]³ Genesis (2012).mkv.
2023-04-13T14:36:25.883318982Z dbug: MediaInfo.MovieService[0]
2023-04-13T14:36:25.883328632Z       MediaInfo library was loaded. (handle=139712803286768, version=MediaInfoLib - v21.09)
2023-04-13T14:36:25.883338682Z warn: MediaInfo.MovieService[0]
2023-04-13T14:36:25.883341682Z       MediaInfo library has not been opened media /mnt/media-data/movies/[REC]³ Genesis (2012)/[REC]³ Genesis (2012).mkv
2023-04-13T14:36:25.883345492Z dbug: MediaInfo.MovieService[0]
2023-04-13T14:36:25.883347982Z       Process /mnt/media-data/movies/[REC]³ Genesis (2012)/[REC]³ Genesis (2012).mkv was completed successfully. Video=0, Audio=0, Subtitle=0

If I rename the folder to "[REC]3" everything works fine. However, renaming is not really an option for me, so is there anything that I can do?

If I use MediaInfo from the CLI it can parse the file just fine.

yartat commented 1 year ago

It looks like ANSI version on Linux platform. It's a bug.

MichaelHochriegl commented 1 year ago

Thanks for the fast reply! I read that this lib is on hold until the war in Ukraine is over, so is there anything that I can do to fix it? I even looked at upping the used MediaInfo version, but so far I'm pretty lost.

Looks like the actual MediaInfo version is in the MediaInfo.Core.Native package, which I can't find the source code for.

yartat commented 1 year ago

MediaInfo.Core.Native is fork of the MediaInfoLib - https://github.com/yartat/MediaInfoLib. Unfortunately I lost all build agents and all media samples.

MichaelHochriegl commented 1 year ago

Oh damn, that last sentence doesn't sound good regarding this package here. So I guess it's dead?

Would be such a shame, as it's the go-to lib for MediaInfo in dotnet core it seems like.

yartat commented 1 year ago

I hope this is not the end of the project.