-
Notifications
You must be signed in to change notification settings - Fork 8
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
Unable to load MediaInfo library #7
Comments
Assuming you are targeting .net standard / core. Can you give more detail? |
When using this on Linux, I also doubt if this works. I installed mediainfo using apt-get. And this gets installed in /usr/bin/mediainfo However when I clone this git project in Linux (bash on windows 10) and do a dotnet run: I get the same error. |
I must have broken something. I'll check it out on all platforms ASAP. |
I did a fresh clone in win x64, MacOs 10.13 and Ubuntu 16.04 and all three environments work for me. You do need to use the official MediaInfo release in linux distros. Please uninstall apt-get version of media info and do the following # Download libzen
wget https://mediaarea.net/download/binary/libzen0/0.4.37/libzen0v5_0.4.37-1_amd64.Debian_9.0.deb
# Install libzen package
dpkg -i libzen0v5_0.4.37-1_amd64.Debian_9.0.deb
# Force install missing packages
apt-get upgrade -f
# Download libmediainfo
wget https://mediaarea.net/download/binary/libmediainfo0/17.12/libmediainfo0v5_17.12-1_amd64.Debian_9.0.deb
# Install libmediainfo package
dpkg -i libmediainfo0v5_17.12-1_amd64.Debian_9.0.deb
# Force install missing packages
apt-get upgrade -f
# Create symbolic link for libmediainfo.so. For whatever reason the official package does not create it
ln -s /usr/lib/x86_64-linux-gnu/libmediainfo.so.0.0.0 /usr/lib/x86_64-linux-gnu/libmediainfo.so
git clone https://github.com/StefH/MediaInfo.DotNetWrapper.git
cd MediaInfo.DotNetWrapper/test/MediaInfo.DotNetWrapper.ConsoleTest.NetCore20/
dotnet run |
Running the first step gives me error:
|
You are trying to install ubuntu 16.04 version on ubuntu 14.04. The MediaInfo ubuntu site has the links for each version of ubuntu. Here are instructions for 14.04 # So you dont have to run sudo command for the following
sudo -s
apt-get install -y git wget curl apt-transport-https libunwind8 liblttng-ust0 libcurl3 libssl1.0.0 libuuid1 libkrb5-3 zlib1g libicu52
# Start install dotnet sdk - only do the following if you dont have dotnet sdk installed
curl https://packages.microsoft.com/keys/microsoft.asc | gpg --dearmor > microsoft.gpg
mv microsoft.gpg /etc/apt/trusted.gpg.d/microsoft.gpg
sh -c 'echo "deb [arch=amd64] https://packages.microsoft.com/repos/microsoft-ubuntu-trusty-prod trusty main" > /etc/apt/sources.list.d/dotnetdev.list'
apt-get update
apt-get install -y dotnet-sdk-2.1.4
# End install dotnet sdk
# Download libzen & libmediainfo for ubuntu trusty 14.04
wget https://mediaarea.net/download/binary/libzen0/0.4.37/libzen0_0.4.37-1_amd64.xUbuntu_14.04.deb
wget https://mediaarea.net/download/binary/libmediainfo0/17.12/libmediainfo0_17.12-1_amd64.xUbuntu_14.04.deb
# Install packages
dpkg -i libzen0_0.4.37-1_amd64.xUbuntu_14.04.deb
dpkg -i libmediainfo0_17.12-1_amd64.xUbuntu_14.04.deb
# Fix pacakge dependencies
apt-get install -f
# Create symbolic link
ln -s /usr/lib/x86_64-linux-gnu/libmediainfo.so.0.0.0 /usr/lib/x86_64-linux-gnu/libmediainfo.so
# Exit sudo
exit
# Clone and run mediainfo wrapper
git clone https://github.com/StefH/MediaInfo.DotNetWrapper.git
cd MediaInfo.DotNetWrapper/test/MediaInfo.DotNetWrapper.ConsoleTest.NetCore20/
dotnet run |
Still some error (I did not install dotnet again.) |
It was also successful using aptitude version of libmediainfo. Be happy to do some sort of screen sharing if this doesn't work. Please try the following # Uninstall official / downloaded versions
sudo apt remove --purge libmediainfo0v5 libzen0v5
sudo apt autoremove
sudo apt install libmediainfo-dev
# Clone and run mediainfo wrapper
git clone https://github.com/StefH/MediaInfo.DotNetWrapper.git
cd MediaInfo.DotNetWrapper/test/MediaInfo.DotNetWrapper.ConsoleTest.NetCore20/
dotnet run |
All works fine, except for |
I add MediaInfo folder to PATH, but program rise error.
The text was updated successfully, but these errors were encountered: