Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 693090 - media-video/jellyfin - the Free Software Media System that puts you in control of managing and streaming your media
Summary: media-video/jellyfin - the Free Software Media System that puts you in contro...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Default Assignee for New Packages
URL: https://jellyfin.github.io/
Whiteboard:
Keywords: PullRequest
Depends on:
Blocks:
 
Reported: 2019-08-29 20:03 UTC by Michael Jones
Modified: 2022-07-10 18:26 UTC (History)
4 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
media-tv/jellyfin-server-bin (jellyfin-server-bin-10.3.7.ebuild,1.67 KB, text/plain)
2019-09-18 02:10 UTC, Scott Jones
Details
media-tv/jellyfin-server-bin/files/jellyfin-server.conf (jellyfin-server.conf,460 bytes, text/plain)
2019-09-18 02:11 UTC, Scott Jones
Details
media-tv/jellyfin-server-bin/files/jellyfin-server.init (jellyfin-server.init,690 bytes, text/plain)
2019-09-18 02:11 UTC, Scott Jones
Details
media-tv/jellyfin-server-bin/jellyfin-server-bin-10.3.7-r1.ebuild (jellyfin-server-bin-10.3.7-r1.ebuild,1.67 KB, text/plain)
2019-09-18 15:17 UTC, Scott Jones
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Michael Jones 2019-08-29 20:03:43 UTC
https://github.com/jellyfin/jellyfin
Comment 1 Scott Jones 2019-09-18 02:09:40 UTC
I tried to make this from source with dotnetcore, but that's just such a mess with portage.  You have to disable all sandboxing, so dotnet can spawn its compiler daemon... even then I got some weird error like it was trying to check in with microsoft.  So I abandoned that and went with their general linux binary release.

Seems to work well, and it doesn't have all the included libraries that emby comes with.  This ebuild only has 2 dependencies: icu and ffmpeg.  ffmpeg requires vpx and x264 flags, as jellyfin transcodes to x264 video in a vp8 container (from what I could see).  I haven't had a chance to test with vaapi acceleration yet, but software transcoding works fine.

The category and title doesn't match this bug request though.... will need to be changed to:
media-tv/jellyfin-server-bin

media-tv because that's where kodi, emby, and plex are.  -server to match emby's releases and differentiate it from the client installs.  -bin because it's a binary release.

Feel free to embrace and extend the ebuild, or request something that needs changing... and I can update it.  I did make and include openrc and conf files.  Someone else would need to generate systemd parts... if anyone is needing that.
Comment 2 Scott Jones 2019-09-18 02:10:21 UTC
Created attachment 590190 [details]
media-tv/jellyfin-server-bin
Comment 3 Scott Jones 2019-09-18 02:11:15 UTC
Created attachment 590192 [details]
media-tv/jellyfin-server-bin/files/jellyfin-server.conf
Comment 4 Scott Jones 2019-09-18 02:11:57 UTC
Created attachment 590194 [details]
media-tv/jellyfin-server-bin/files/jellyfin-server.init
Comment 5 Scott Jones 2019-09-18 15:17:40 UTC
Created attachment 590212 [details]
media-tv/jellyfin-server-bin/jellyfin-server-bin-10.3.7-r1.ebuild

Sorry... found that a bunch more ffmpeg flags were needed for transcoding.  I'm planning on adding flags to jellyfin, for things like transcoding, since some people only do direct streaming with it.... but wanted to get this update out right away.
Comment 6 Fredrik Eriksson 2021-12-28 14:03:00 UTC
 I've made a ebuild for (current) latest version of jellyfin-bin available in my overlay: https://gitea.fulh.ax/feffe/feffe-portage-overlay

It is heavily inspired by Scott's ebuild, but notably bumped to EAPI 8 (split out user/group creation) and changed some default paths. It remains to be seen if I'm interested in keeping it maintained, but feel free to use it any way you see fit :)
Comment 7 Craig Andrews gentoo-dev 2022-07-06 19:00:53 UTC
(In reply to Fredrik Eriksson from comment #6)
>  I've made a ebuild for (current) latest version of jellyfin-bin available
> in my overlay: https://gitea.fulh.ax/feffe/feffe-portage-overlay
> 
> It is heavily inspired by Scott's ebuild, but notably bumped to EAPI 8
> (split out user/group creation) and changed some default paths. It remains
> to be seen if I'm interested in keeping it maintained, but feel free to use
> it any way you see fit :)

I'd like to get jellyfin-bin added to Gentoo and I'm happy to maintain this package with you. Would you be interested in submitting a merge request to https://github.com/gentoo/gentoo/ as covered at https://wiki.gentoo.org/wiki/GitHub_Pull_Requests ?

If you do, in metadata.xml, please include me as a co-maintainer, like this:
<maintainer type="person" proxied="proxy">
	<email>gentoo@wb9.se</email>
	<name>Fredrik Eriksson</name>
	<description>Primary maintainer</description>
</maintainer>
<maintainer type="project" proxied="proxy">
	<email>proxy-maint@gentoo.org</email>
	<name>Proxy Maintainers</name>
</maintainer>
<maintainer type="person">
	<email>candrews@gentoo.org</email>
	<name>Craig Andrews</name>
</maintainer>

At a glance, the improvements I could see as being necessary are:
* a systemd service
* a dependency on media-video/ffmpeg[vpx,x264]
* Should install to /var/lib/jellyfin (not /opt)

I look forward to working with you to get this package into Gentoo!
Comment 8 Fredrik Eriksson 2022-07-07 14:01:36 UTC
(In reply to Craig Andrews from comment #7)
> I'd like to get jellyfin-bin added to Gentoo and I'm happy to maintain this
> package with you. Would you be interested in submitting a merge request to
> https://github.com/gentoo/gentoo/ as covered at
> https://wiki.gentoo.org/wiki/GitHub_Pull_Requests ?

Sure, I'll hopefully have time to read up and attempt a PR the coming weeks.

> At a glance, the improvements I could see as being necessary are:
> * a systemd service
I don't have any system to test this on, but I can probably throw together some basic unit-file for it.

> * a dependency on media-video/ffmpeg[vpx,x264]
Sure thing!

> * Should install to /var/lib/jellyfin (not /opt)
I assume you mean /usr/lib? If you insist, but the choice of /opt was because it seemed consistent with other binary packages in portage (not that I've done extensive research or read any policy documents, but at least puppet-agent, openjdk-bin and spotify installs there)

> 
> I look forward to working with you to get this package into Gentoo!
Me too, thanks for the interest!
Comment 9 Craig Andrews gentoo-dev 2022-07-08 20:20:58 UTC
Since jellyfin package isn't a TV interface itself, it's the server and web interface, I think it makes more sense to call it www-apps/jellyfin.
Comment 10 Craig Andrews gentoo-dev 2022-07-08 20:21:36 UTC
> I assume you mean /usr/lib? If you insist, but the choice of /opt was because it seemed consistent with other binary packages in portage (not that I've done extensive research or read any policy documents, but at least puppet-agent, openjdk-bin and spotify installs there)

You're absolutely right, this package should install to /opt. Thank you for point that out!
Comment 11 Michael Jones 2022-07-08 23:40:35 UTC
Could you elaborate on why this will be a binary package?

Isn't jellyfin open source?
Comment 12 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2022-07-09 00:03:08 UTC
(In reply to Michael Jones from comment #11)
> Could you elaborate on why this will be a binary package?
> 
> Isn't jellyfin open source?

It should probably go in as jellyfish-bin, as it's possible to build it from source, but a pain, given we don't have all the .net stuff packaged properly right now.
Comment 13 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2022-07-09 00:03:18 UTC
(In reply to Sam James from comment #12)
> (In reply to Michael Jones from comment #11)
> > Could you elaborate on why this will be a binary package?
> > 
> > Isn't jellyfin open source?
> 
> It should probably go in as jellyfish-bin, as it's possible to build it from
> source, but a pain, given we don't have all the .net stuff packaged properly
> right now.

jellyfin
Comment 14 Larry the Git Cow gentoo-dev 2022-07-10 18:26:02 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=105f4270e09468b3a97675619385523d2df217c7

commit 105f4270e09468b3a97675619385523d2df217c7
Author:     Craig Andrews <candrews@gentoo.org>
AuthorDate: 2022-07-08 21:11:40 +0000
Commit:     Craig Andrews <candrews@gentoo.org>
CommitDate: 2022-07-10 18:25:54 +0000

    www-apps/jellyfin: puts you in control of streaming media.
    
    Closes: https://bugs.gentoo.org/693090
    Package-Manager: Portage-3.0.30, Repoman-3.0.3
    Signed-off-by: Craig Andrews <candrews@gentoo.org>

 www-apps/jellyfin/Manifest               |  2 ++
 www-apps/jellyfin/files/jellyfin.init    | 14 +++++++++
 www-apps/jellyfin/files/jellyfin.service | 38 +++++++++++++++++++++++++
 www-apps/jellyfin/jellyfin-10.8.1.ebuild | 49 ++++++++++++++++++++++++++++++++
 www-apps/jellyfin/metadata.xml           | 20 +++++++++++++
 5 files changed, 123 insertions(+)