openmediavault-emby plugin (formerly mediabrowser)

  • Don't anyone mess with any testing repos or anything to do with Jessie & Sid. You will break your install. And it is not necessary.



    I got a fix coming......


    zip file to big for forum... argh!!!!!!!!!!!!!

  • *** ATTENTION ***
    Make sure you uninstall ImageMagick before you install the package below.


    Do this to see if you have it installed:


    dpkg -l | grep imagemagick


    Anything that comes up uninstall it before installing my ImageMagick package.



    *** THIS FIX IS ONLY FOR AMD64 USERS *** packages for other architectures have not been compiled yet.


    First install these packages:


    apt-get install libtiff4 libxext6


    Then you need to download this package unzip it and install it:


    https://github.com/tekkbebe/OM…agick-6.9.1_1-1_amd64.zip


    unzip imagemagick-6.9.1_1-1_amd64.zip (if does not work install unzip "apt-get install unzip")
    dpkg -i imagemagick-6.9.1_1-1_amd64.deb


    Now download and install libwebp:


    https://github.com/tekkbebe/OM…libwebp_0.4.3-1_amd64.zip


    unzip libwebp_0.4.3-1_amd64.zip
    dpkg -i libwebp_0.4.3-1_amd64.deb


    Then you need to check these config files in /opt/mediabrowser.


    ImageMagickSharp.dll.config

    Code
    <configuration>
      <dllmap dll="CORE_RL_Wand_.dll" target="libMagickWand-6.Q8.so" os="linux"/>
    </configuration>


    MediaBrowser.MediaInfo.dll.config (if this file does not exist create it)

    Code
    <configuration>
    <dllmap dll="MediaInfo" target="libmediainfo.so" os="linux"/>
    </configuration>


    Make sure these config files are chown mediabrowser:users. If they are not do this:
    cd /opt/mediabrowser
    chown mediabrowser:users ImageMagickSharp.dll.config
    chown mediabrowser:users MediaBrowser.MediaInfo.dll.config



    then do this:
    ldconfig /usr/local/lib


    Last thing you need to fix home directory. Your programdata location should be at /var/lib/mediabrowser If it is in different location adjusts this command:


    usermod -d /var/lib/mediabrowser -m mediabrowser


    Try starting!!!!

  • Permissions:



    I had an imagemagick common, so removed and installed your pkg, checked config files and changed as appropriate and ran ldconfig.


    When starting I get:


    Code
    /opt/mediabrowser # service mediabrowser start
    Removing stale pid file
    Starting mediabrowser
    ------------------------------------------------------------
    /opt/mediabrowser # service mediabrowser status
    Removing stale pid file
    mediabrowser is not running ... failed!
  • Log:



    What did I miss?

  • I think I found the problem... Hold on I'm checking something.


    Delete this file, it is not used anymore as webp is part of imagemagick, and try again:


    -rw-rw-rw- 1 mediabrowser users 91 Apr 8 11:50 Imazen.WebP.dll.config

  • If you have my ImageMagick installed it will run if your config files are correct. Here is my log... you can see ImageMagick loaded fine. No webp problem and it is quantum 8. See line 37.


  • System.Data.SQLite.dll.config


    Code
    <configuration>
      <dllmap dll="sqlite3" target="libsqlite3.so" os="linux"/>
    </configuration>


    MediaBrowser.Server.Mono.exe.config



    ImageMagickSharp.dll.config


    Code
    <configuration>
      <dllmap dll="CORE_RL_Wand_.dll" target="libMagickWand-6.Q8.so" os="linux"/>
      <dllmap dll="CORE_RL_magick_.dll" target="libMagickCore-6.Q8.so" os="linux"/>
    </configuration>


    MediaBrowser.MediaInfo.dll.config


    Code
    <configuration>
      <dllmap dll="MediaInfo" target="./MediaInfo/osx/libmediainfo.dylib" os="osx"/>
    </configuration>


    ls -la /usr/local/lib


  • You ran this command, yes?


    ldconfig /usr/local/lib



    I have to go. Lots going on this am. If you cannot get it working I will test on another vm later today. Maybe you are missing a dependency. If more people try give feed backback.

  • I also gave this a go using tekkb's package. I'm seeing an unhandled exception in the logs:


    Code
    libMagickWand-6.Q8.so
    System.DllNotFoundException
      at (wrapper managed-to-native) ImageMagickSharp.PixelWandInterop:ClearPixelWand (intptr)
      at ImageMagickSharp.PixelWand.Dispose (Boolean disposing) [0x00000] in <filename unknown>:0
      at ImageMagickSharp.PixelWand.Dispose () [0x00000] in <filename unknown>:0
      at ImageMagickSharp.PixelWand.Finalize () [0x00000] in <filename unknown>:0


    It seems I'm indeed missing a dependency or two:



    I resolved the libtiff and libXext by doing:


    Code
    $ apt-get install libtiff4 libxext6


    where to get a suitable libwebp though?

  • Got it working on 2nd system. Run command that Herbie used:
    ldd /usr/local/lib/libMagickWand-6.Q8.so


    The not founds show you what you are missing. Install them. He shows you how to install the ones missing except libwebp.


    Here is link to libwebp I compiled a while ago:
    http://forums.openmediavault.o…t/1879-libwebp-0-4-2-zip/


    download it and unzip it in:
    /usr/local/lib


    then rename it:
    mv libwebp.so.5.0.2 libwebp.so.5


    then do this:
    ldconfig /usr/local/lib



    Try starting!!!!



    Voila!!!!

Jetzt mitmachen!

Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!