SynoCommunity / spksrc

Cross compilation framework to create native packages for the Synology's NAS
https://synocommunity.com
Other
3.04k stars 1.23k forks source link

Emby Server (ex-Mediabrowser Server) [$10] #1346

Closed HummelsTech closed 7 years ago

HummelsTech commented 9 years ago

I like to have http://mediabrowser.tv/ server to run on my NAS. Is it possible for some developers here to take a look at it? I hope this could be realized ;-)

Thanks anyway.

There is a $10 open bounty on this issue. Add to the bounty at Bountysource.

LukePulverenti commented 9 years ago

Hi,I am a developer who can represent Media Browser and offer all the help you need. Let me know if you need anything. Thanks.

spaceboy76 commented 9 years ago

This would be great, I have a ds2413+ so I'm hoping it might be able to do some transcoding too

ghost commented 9 years ago

I would also love to see mediabrowser on DSM

simono5 commented 9 years ago

I'd also love to see Media Browser running on Synology.

Would be great to get you on-board with this fantastic project.

Mukrosz commented 9 years ago

Would love to see this realized also. Thanks!

ghost commented 9 years ago

Would love this as well. Have a DS415+

cytec commented 9 years ago

@LukePulverenti so if i get this right, Media Browser requires mono, sqlite, mediainfo and libgdiplus?

there already is a BETA mono package if i remember correctly, sqlite compiles quite well and i got mediainfo working a while ago for one of my other projects... the only thing i don't know about is libgdiplus

LukePulverenti commented 9 years ago

That is correct and libwebp is an optional dependency that will improve image downloading performance, but the server can function without it. mono 3.2.8 is the minimum required, but now that the mono group is starting to replace their code with Microsoft-written equivalents, I think there is some incentive now to start keeping up to date.

braddles69 commented 9 years ago

would love this also, have a 413j been a MB3 supporter for ages..;)

Nonobis commented 9 years ago

Great idea ! +1

cytec commented 9 years ago

i'll take a look at this if i got some spare time :)

spaceboy76 commented 9 years ago

Let us know if we can help in anyway? I have few technical skills but very enthusiastic!

cytec commented 9 years ago

looks like libgdiplus has a lot of dependencies... including x11 i'm not really sure why (x11 is a graphical library) but it seems like there are used some libs (libX11, libXrender, libXt)...

as far as i can see x11 has a lot of depends and i'm not sure if it makes sense to try to cross compile a GUI Library to an headless system like Synology... also i have no idea how to build x11 on my own ...

@Diaoul @Dr-Bean what do you think?

Diaoul commented 9 years ago

I'd say if we need X11 we're screwed.

LukePulverenti commented 9 years ago

we can look at switching image processing libraries if this is going to be a blocking issue.

cytec commented 9 years ago

@LukePulverenti seems so... i've tried a few times to compile it without x11 but it didn't work... at least the dev libs are needed -.-

LukePulverenti commented 9 years ago

I've looked at this in the past and ImageMagick is one alternative I've considered...

http://www.imagemagick.org/

Do you mind taking a look and seeing if this library would be feasible? They have libraries for linux, osx, android and ios so it seems to run on just about everything. Thanks!

cytec commented 9 years ago

@LukePulverenti i've got ImageMagick working on my DS :)

daenerys> /usr/local/imagemagick/bin/convert -version     
Version: ImageMagick 6.9.0-0 Q16 x86_64 2014-11-24 http://www.imagemagick.org
Copyright: Copyright (C) 1999-2014 ImageMagick Studio LLC
Features: DPC
Delegates (built-in): freetype png tiff zlib
Diaoul commented 9 years ago

@cytec: try to compile ARM and PPC, problems usually arise on those archs.

cytec commented 9 years ago

@Diaoul was my planed nex step, but as i can't test it i first wanted to make sure it compiles on a platform i can verify :) now im gonna try to compile it for 88f6281 and quoriq

cytec commented 9 years ago

@Diaoul successfully compiled for 88f6281 and qoriq as well :)

Diaoul commented 9 years ago

Good news, I guess that's a go @LukePulverenti :cake:

HummelsTech commented 9 years ago

Love to see this request is so lively

Diaoul commented 9 years ago

We're waiting for upstream. @LukePulverenti: do you have an estimated ETA? more like weeks or months?

jabbera commented 9 years ago

qoriq is out. No decent mono support. https://github.com/SynoCommunity/spksrc/issues/671#issuecomment-38981476

There is a build of mono 3.6 which is much better then 3.4 at least in terms of nzbdrone. I can only assume the same for media browser.

https://dl.dropboxusercontent.com/u/300345/spk/mono/index.html

LukePulverenti commented 9 years ago

We will be looking to get this done over the next few weeks.

@Jabbera I wouldn't worry about mono support, it is going to come. Have you seen the recent Microsoft announcements?

http://weblogs.asp.net/scottgu/announcing-open-source-of-net-core-framework-net-core-distribution-for-linux-osx-and-free-visual-studio-community-edition

They are going to be supporting the .net framework on other platforms such as linux, osx, etc. Having MS as a backer is going to lead to more apps being built with it, which is going to put pressure on devices and distros to keep mono up to date. Nothing happens overnight of course, but it's moving pretty quickly.

cytec commented 9 years ago

@LukePulverenti nice to hear that, gimme a shout if you got it and i'll have another look at it :)

ghost commented 9 years ago

I'd also love to see Media Browser server running on my Synology NAS. I hope you guys can sort it out.

rvmourik commented 9 years ago

@LukePulverenti I'm curious if you were able to make progress on the above. I'm eager to try it :-)

Thanks in advance.

LukePulverenti commented 9 years ago

I am in process of writing a managed c# wrapper around the ImageMagick functions we need. If anybody would like to help then it can get done faster. I have it in a separate project with unit tests. There's still about a half dozen functions to be added, and a few failing tests to figure out.

Idus commented 9 years ago

Short version: Media browser to Synology :+1:

Long version: Since I´ve tried to have all my server functions on my Synology NAS-server, I would also love to see Media browser available on via the package package and update functions. If it´s a long process through Synology - use https://synocommunity.com/, which is easy added as a resource to the Synology NAS and then just download the package from there. Would be awesome! Thank you in advance! I am however just a script-kiddie and no programmer - so I rely on others being awesome.

Help us @LukePulverenti - you´re our only hope...

rvmourik commented 9 years ago

@Lukepulverenti

I would help but i am a web developer and not one with C# knowledge. Hope someone else can help you.

Keep up the good work!

salman2learn commented 9 years ago

@LukePulverenti I can help with C# wrapper code. Also, can you tell why this existing .Net wrapper won't work: http://magick.codeplex.com/

LukePulverenti commented 9 years ago

Excellent, thanks! That one will not work because it's a mixed mode assembly that will only function on windows. It might be possible to rip out the native assembly but it's really a large project. We only need about 10 basic functions. I will create a new repository that has the current code and then respond again.

LukePulverenti commented 9 years ago

Here it is https://github.com/MediaBrowser/ImageMagickSharp

Run the unit tests and you'll find two failing tests. Once those are finished there's about 5 other methods we'll need, but they're not that difficult.

rvmourik commented 9 years ago

Not to be impatient, but is there any progress? I see a lot of other media browser activity :-)

n00b42 commented 9 years ago

HI, i'm also interested in this project. 1) I'm quite familiar with C#, but as I never worked with github before (worked with git, but no branch/merge/...) and it might take some time to get into it, I would like to know how the progress is. 2) And how much work besides this library wrapper is needed to get MediaBrowser to run on ARMbased Synology's? As I might put some work in it is quite feasible to have MediaBrowser there in the next weeks, but I may not be interested if it's clear that it might need many more months. 3) Would it work on Syn DS414j (MINDSPEED Comcerto C2000)? Mono seems fine/available. 4) If not by working on it, the project looks intersting enough to support it via "bountysource" (or something like that) ....

LukePulverenti commented 9 years ago

@n00b42

Awesome, great to hear. After the ImageMagick library wrapper is done, we need to update MBS to use ImageMagick instead of GDI+. That part is easy. Then we have to start working on the Synology package. Perhaps that can get going in parallel?

We already have someone working on the ImageMagick wrapper and it's going quite well. It's getting close to complete. If Synology package building is not your forte then there are always other projects you could help on.

n00b42 commented 9 years ago

@LukePulverenti Thanks for the informations, it is nice to hear that it's going quite well. I have to admit that i'm not familiar with Synology package building (as packaging in Linux environments at all) ... I'll follow the issue and sure will help testing / come up with suggestions. (Due to another project I might be short on time for the next month(s) )

LukePulverenti commented 9 years ago

Just a heads up, our ImageMagick library is complete and we will now begin replacing GDI with ImageMagick for Media Browser Server image processing operations. This will be done for the next server release cycle (not the current beta that is about to go stable).

Once this is complete all systems should be go. If there is someone who would like to volunteer to simultaneously start working on a Synology package, that would be most appreciated.

spaceboy76 commented 9 years ago

This is brilliant, hopefully someone can pick up the baton for the final leg!

LukePulverenti commented 9 years ago

Well this turned out to be very easy, and the integration is already done in the dev branch:

https://github.com/MediaBrowser/MediaBrowser/tree/dev

All traces of GDI+ have been removed so there should be no more blocking issues at this point.

rvmourik commented 9 years ago

Good to hear :-) Sadly i don't know how to build the package. But i'm sure someone here does.

cytec commented 9 years ago

yeah nice. well i think now everything should work, i'll give it another try if i got some time left :)

@LukePulverenti as i don't have any ideas how to compile something with mono... is there a compiled version of your dev branch or do i need to compile it myself?

LukePulverenti commented 9 years ago

We have windows and linux build scripts available: https://github.com/MediaBrowser/MediaBrowser/tree/dev/Tools

jabbera commented 9 years ago

@cytec check out the way nzb drone package works. You shouldn't actually need to compile anything.

HummelsTech commented 9 years ago

Look Like the imagemagick is to old 😕

jabbera commented 9 years ago

What do you mean? The existing package is too old? Upgrading it should hopefully be trivial, or adding another version if necessary.

HummelsTech commented 9 years ago

See here my logs and what i'veel tried http://mediabrowser.tv/community/index.php?/topic/13890-synology-almost-working/page-2#entry180002

LukePulverenti commented 9 years ago

You should upgrade, and/or adjust the requirement in the ImageMagickSharp.dll.config file.

You can change that file to point to the version installed on your system. If the functions we're using are available in your older version, there's a good chance it will work.