Jump to content


Photo

FreeNAS plugin


  • Please log in to reply
1069 replies to this topic

#1 Luke OFFLINE  

Luke

    System Architect

  • Administrators
  • 138218 posts
  • Local time: 01:13 PM

Posted 12 November 2014 - 08:32 PM

We now have a FreeNAS plugin available.

Installation

 

https://emby.media/download

 

5463bd143d0dd_logo.png

FreeNAS is the go to solution for managing storage


  • SikSlayer, woodsb02, texast39 and 1 other like this

#2 allen00se OFFLINE  

allen00se

    Advanced Member

  • Members
  • 102 posts
  • Local time: 06:13 PM

Posted 13 November 2014 - 05:28 PM

Interesting, any idea if this wlil work on Nas4Free or plans to make a package? I know they were the same at one point.



#3 woodsb02 OFFLINE  

woodsb02

    Advanced Member

  • Developers
  • 160 posts
  • Local time: 01:13 AM
  • LocationPerth, Australia

Posted 13 November 2014 - 06:18 PM

I'm not familiar with Nas4Free sorry.

In all honesty the best way to get a package for a new system is to attempt it yourself. All of the packages for different distributions were made by the community, rather than the core MediaBrowser developers. It might be a fun little project for you!
  • johnsonscorner likes this

#4 Hisma OFFLINE  

Hisma

    Advanced Member

  • Members
  • 71 posts
  • Local time: 05:13 PM

Posted 13 November 2014 - 09:10 PM

the old plugin died.  It no longer starts.  No idea why happened.  I can go ahead and install the official one now.  But it doesn't make sense that the "pre-release" version would randomly stop working.



#5 woodsb02 OFFLINE  

woodsb02

    Advanced Member

  • Developers
  • 160 posts
  • Local time: 01:13 AM
  • LocationPerth, Australia

Posted 13 November 2014 - 11:53 PM

I know @josh4trunks removed the old plugin from his website, in favour of the new one. Other than that I don't know why the plugin you had already installed stopped working...

Any further logs or errors for us to go off?

#6 sauravg OFFLINE  

sauravg

    Newbie

  • Members
  • 9 posts
  • Local time: 05:13 PM

Posted 14 November 2014 - 07:50 AM

Where is the library re-scan setting?  I think I have looked everywhere (and it probably WAS there in front of my eyes) but I didn't see it.  I want to force a re-scan and also adjust the frequency of automatic re-scans.

 

Btw, does filesystem monitoring for new/changed content work on zfs?  



#7 woodsb02 OFFLINE  

woodsb02

    Advanced Member

  • Developers
  • 160 posts
  • Local time: 01:13 AM
  • LocationPerth, Australia

Posted 14 November 2014 - 07:52 AM

mono supports kqueue by default on FreeBSD for file system monitoring, so it should work. I don't know about any issues with zfs specifically.

#8 sauravg OFFLINE  

sauravg

    Newbie

  • Members
  • 9 posts
  • Local time: 05:13 PM

Posted 14 November 2014 - 08:30 AM

Cool! Any comments on where that re-scan setting/button is?

#9 sauravg OFFLINE  

sauravg

    Newbie

  • Members
  • 9 posts
  • Local time: 05:13 PM

Posted 14 November 2014 - 05:40 PM

Nevermind!  It's under scheduled tasks.

 

Looks like

 

1. I have to restart MB if I want an immediate refresh of its media index.  Or schedule a re-scan task in the next next few minutes...

 

2. Over ZFS, it seems MB doesn't detect media *changes*.  So if I re-encode a video, I have to refresh the index manually, or else it seems to serve the previous media type.  I'm not sure, but it seems it doesn't detect media file removal/additions either. 

 

3. There is no way to refresh a section of the media content.  So if I add some pictures to a folder under "Photos", I can't just refresh the media index for Photos.  I have to update everything.

 

4. While MB is re-scanning, I cannot access its web UI (dashboard) in the browser.  It gets that busy.

 

Am I right?  Can someone please verify or refute?

 

Thanks,

Saurav.



#10 woodsb02 OFFLINE  

woodsb02

    Advanced Member

  • Developers
  • 160 posts
  • Local time: 01:13 AM
  • LocationPerth, Australia

Posted 14 November 2014 - 07:07 PM

At first glance, it sounds like Items 1 and 3 are improvement requests for the main mono developers.

Item 2 looks like an issue with the MediaBrowser port on FreeBSD. If I get a chance I will look into this. Feel free to look into the MediaBrowser code to see how it is supposed to be tracking file system changes, and then look into the mono code to see if there is anything obviously wrong (I have seen a few comments in the mono code not related to filesystem watching that says "only works on Linux for now").

I have not experienced item 4. I can still access the web UI whilst it is scanning on my FreeNAS mini.

#11 pennywise OFFLINE  

pennywise

    Newbie

  • Members
  • 3 posts
  • Local time: 04:13 AM

Posted 14 November 2014 - 09:55 PM

Is anyone else having issues with the server stopping? When I get a chance I will grab the server logs and send them through. I'm finding I am having to go into freenas and start the plugin from the web admin page a couple times a day.

Scott

#12 sauravg OFFLINE  

sauravg

    Newbie

  • Members
  • 9 posts
  • Local time: 05:13 PM

Posted 15 November 2014 - 05:48 AM

At first glance, it sounds like Items 1 and 3 are improvement requests for the main mono developers.

Item 2 looks like an issue with the MediaBrowser port on FreeBSD. If I get a chance I will look into this. Feel free to look into the MediaBrowser code to see how it is supposed to be tracking file system changes, and then look into the mono code to see if there is anything obviously wrong (I have seen a few comments in the mono code not related to filesystem watching that says "only works on Linux for now").

I have not experienced item 4. I can still access the web UI whilst it is scanning on my FreeNAS mini.

 

 

Where is the MB code hosted?  Not that I will be able to do anything because I'm unfamiliar with the DLNA protocol as well as the programming language (mono => C#, right), but it couldn't hurt to just browse it.



#13 woodsb02 OFFLINE  

woodsb02

    Advanced Member

  • Developers
  • 160 posts
  • Local time: 01:13 AM
  • LocationPerth, Australia

Posted 15 November 2014 - 05:50 AM

https://github.com/M...er/MediaBrowser

Edited by woodsb02, 15 November 2014 - 05:52 AM.


#14 Hisma OFFLINE  

Hisma

    Advanced Member

  • Members
  • 71 posts
  • Local time: 05:13 PM

Posted 16 November 2014 - 04:50 AM

okay, i ran into a pretty big problem here.  

 

I added my movies/tv/etc using locally mounted storage in the mediabrowser jail.  it seemed to be the smartest way to handle my media, until i tried to launch movies via an external player (mpc-hc).

 

because my media path is relative to my server, ie, /usr/local/movies/<title>, but I am running a windows-based client, I can't get the external player to read the path correctly.

 

Windows expects the path to be "\", and freenas, and hence mediabrowser server, use "/" paths.  

 

I have not found a way around this... since the {PATH} variable uses unix-based paths.  

 

Any tips?  

 

I believe this same problem is what is also preventing xbmb3c from working.  If I try to open a movie or tv show, xbmc won't load it.  Pretty sure it has to do with the media paths being jacked up.



#15 woodsb02 OFFLINE  

woodsb02

    Advanced Member

  • Developers
  • 160 posts
  • Local time: 01:13 AM
  • LocationPerth, Australia

Posted 16 November 2014 - 05:17 AM

okay, i ran into a pretty big problem here.

I added my movies/tv/etc using locally mounted storage in the mediabrowser jail. it seemed to be the smartest way to handle my media, until i tried to launch movies via an external player (mpc-hc).

because my media path is relative to my server, ie, /usr/local/movies/, but I am running a windows-based client, I can't get the external player to read the path correctly.

Windows expects the path to be "\", and freenas, and hence mediabrowser server, use "/" paths.

I have not found a way around this... since the {PATH} variable uses unix-based paths.

Any tips?

I believe this same problem is what is also preventing xbmb3c from working. If I try to open a movie or tv show, xbmc won't load it. Pretty sure it has to do with the media paths being jacked up.

I don't quite follow. You have MediaBrowser running in a jail and sharing your media (presumably via DLNA?).

Why would a media player running on external computer need to know the path of the files? It should just be looking for a DLNA server and getting the media from that (the media player is oblivious to the actual location of the files).

Can you explain your full setup and each computer a bit better to aid troubleshooting?

Edited by woodsb02, 16 November 2014 - 05:33 AM.


#16 Vidman OFFLINE  

Vidman

    Advanced Member

  • Alpha Testers
  • 2662 posts
  • Local time: 01:13 AM

Posted 16 November 2014 - 05:38 AM

Some clients try to access the media directly rather than stream eg the xbmc add-on and MBC

#17 woodsb02 OFFLINE  

woodsb02

    Advanced Member

  • Developers
  • 160 posts
  • Local time: 01:13 AM
  • LocationPerth, Australia

Posted 16 November 2014 - 05:42 AM

Some clients try to access the media directly rather than stream eg the xbmc add-on and MBC

Sorry, what do you mean by "directly"? Do you mean windows file sharing?

#18 Vidman OFFLINE  

Vidman

    Advanced Member

  • Alpha Testers
  • 2662 posts
  • Local time: 01:13 AM

Posted 16 November 2014 - 05:45 AM

Yes

#19 Hisma OFFLINE  

Hisma

    Advanced Member

  • Members
  • 71 posts
  • Local time: 05:13 PM

Posted 16 November 2014 - 09:29 AM

I don't quite follow. You have MediaBrowser running in a jail and sharing your media (presumably via DLNA?).

Why would a media player running on external computer need to know the path of the files? It should just be looking for a DLNA server and getting the media from that (the media player is oblivious to the actual location of the files).

Can you explain your full setup and each computer a bit better to aid troubleshooting?

 

I am using a windows client.  My server is the freenas plugin with locally mounted storage pointing to my library.

 

These screenshots should explain everything.

 

Here is what the external player configuration looks like.  I would imagine it is very common for windows users of mb3 client to utilize mpc-hc as an external player, as it is the most powerful video player available for windows.

 

p3BZeBl.png

 

See how the app requires a direct path to the media as an argument.  

 

This is what happens when you try to play a video file:

 

0KQA4yC.png

 

the {PATH} argument results in the local unix-based path, which windows does not recognize.  I can play with the path argument to point to the media more directly, but because the folder structure is "/" in unix, it will never work.

 

Not sure how this can easily be fixed.  

 

This also impacts the xbmc plugin xbmb3c, as it also appears to use direct paths to the media.  Huge bummer.



#20 Hisma OFFLINE  

Hisma

    Advanced Member

  • Members
  • 71 posts
  • Local time: 05:13 PM

Posted 16 November 2014 - 09:32 AM

I can also confirm that changes to the media library do not auto update.  You must either manually update, or restart the server.  This was noted a few posts above.






0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users