Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

All MediaInfo properties are 0 or null #23

Closed
frankzoldan opened this issue Jan 16, 2021 · 5 comments
Closed

All MediaInfo properties are 0 or null #23

frankzoldan opened this issue Jan 16, 2021 · 5 comments

Comments

@frankzoldan
Copy link

All my trials to get any information out of a .mkv file failed.
In a C# .NET Framework 4.6.1 Console Application, I have a simple code line like this:
var miWrapper = new MediaInfoWrapper(filePath);
In the Visual Studio Debugger, all property values of miWrapper are shown as null or 0.
I'm quite sure that I'm making a silly mistake.
A problem is, I couldn’t find a project in the Internet, that just does something simple like the above.
If you know of any simple example or if you could provide one, I would very appreciate.
When I just have the code to get one or two valid properties, I'll be able to do all the rest as I want.

@shubhank008
Copy link

shubhank008 commented May 1, 2021

@yartat
Facing same problem, I thought I was doing something wrong and due to lack of documentation of this project, I started studying the framework's classes and test units and the code and its call do seem as simple as that one liner, yet everything and all the properties are 0 or null.
Tried passing a ILogger as well but no errors or anything in logs.

@yartat
Copy link
Owner

yartat commented May 20, 2021

Have you looked #14 issue and the it's workaround?

@shubhank008
Copy link

Have you looked #14 issue and the it's workaround?

I actually figured out and fixed it already, it was because I am using the wrapper in Unity and so detailed logs (the logger) doesn't work to provide detailed message on what's going on.
basically my .dll files were not getting found out and it was throwing MediaInfoNotFound false but I didn't realize it, once I did, I tinkered more as to why dll are not found and I just wrote my own post-process code for Unity to copy the .dll files where MediaInfo was trying to find it and wrote a alternative location/path code to provide to MediaInfo.

AKA, its solved for me.

@hwmaat
Copy link

hwmaat commented Jun 4, 2021

Facing the same issue. But for using MediaInfo in a docker container. The mediainfo files do not make it into the docker when building. Both Debug and Release configuration.

Can you share where MediaInfo expects the files?

@yartat
Copy link
Owner

yartat commented Sep 5, 2021

I added dependencies in case deploy with docker. I close issue.

@yartat yartat closed this as completed Sep 5, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants