https://github.com/jellyfin/jellyfin
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.
Created attachment 590190 [details] media-tv/jellyfin-server-bin
Created attachment 590192 [details] media-tv/jellyfin-server-bin/files/jellyfin-server.conf
Created attachment 590194 [details] media-tv/jellyfin-server-bin/files/jellyfin-server.init
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.
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 :)
(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!
(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!
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.
> 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!
Could you elaborate on why this will be a binary package? Isn't jellyfin open source?
(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.
(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
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(+)