Jellyfin on a Synology NAS with Hardware Acceleration in 2024 (Docker Compose / Container Manager)

Video Statistics and Information

Video
Captions Word Cloud
Reddit Comments
Captions
let's get the jellyfin on a sonology Nas with Hardware encoding let's start by going to jelly fin. org their official website jelly fin. org I started it off on the nice looking part of it cuz up here it's not a lot but let's go to documentation installation and not sonology we're going to click on container that's right we're going to do this all through container manager and then we're going to scroll down to the section that says Docker compos go through cruise through here in the section that says Docker compose and I'm just going to copy all of this text you can click that guy or you can highlight everything and copy and get ready to paste now let's go back to the sonology Nas and then let's click on container manager which if you don't have just come over here to package Center and type in container manager and it'll show up if it's not showing up for you that means that container manager is not supported for your model of sonology Nas but maybe Google around and see if others have gotten it to work on your particular Synology model so in container manager we're going to go to Project create and then for project name let's type in jelly finin path we're going to have to make a path so let's make a path for all of our jelly fin files to live in so I go to file station Docker you should have a Docker share if you have created if you've installed a container manager it should be here and then we're going to create a new folder and call it let's just call it jelly fin not jelly find Jelly fin jelly fin will work and then we'll go back to container manager and we will set path to Docker jelly fun easy easy easy easy and then under Source instead of upload a Docker compose yaml we are going to create what is called a Docker composed. yaml file it's really just a text file and in here we're going to paste all of that stuff that we copied from this block of text right here under using Docker compos on the jelly fin on the official jelly fin website so let's go back to the Nas and we got to make a couple of changes here for things to work so uh first I'm going to do where it says user and uid GID I'm going to go to the very beginning of that line and put a pound sign or hashtag so it's not going to actually use that parameter if you're comfortable using uid and G you can try it out I've just had a couple of issues using it so that's why I'm actually just running this container as root so I'm commenting it out under volumes we have to make a couple changes here so you see volumes it looks like a folder path you're right it is they call these bind mounts in Docker so on the you'll see it's a it's a folder path colon folder path the folder path to the right that is for Synology and we don't really have to worry about that except if you've been watching my videos guess what today's your lucky day we will get to change some stuff to the right but for cash and config we don't have to do that we just have to change what to the left so let's make it a path it's just looking for a local path so that can be anywhere we're just going to keep it in the jelly fin folder so let's go into the jellyfin folder let's create a cache folder and create a a config folder make a config folder I'm going to copy these file paths you do not have to do this but I just want to show you something here so I'm going to copy that config location so I'm going to go back here there are two ways of doing this I can paste the config location and it's there or I can actually just type in or I can just put a period in front of there and use that as the config location and the reason for that is this period is actually just shorthand for wherever I'm at and this Docker compost file is going to be in the jellin folder so that's why we can just use the period so hopefully that makes sense if not I apologize so we'll do the same for cach just period farash and then it needs a path to Media so this is where you can be a little um it's a not stupid way of saying Loosey Goosey you can kind of put whatever you want here so the first so it's the same Principle as above right what's to the left has to be an actual path and the path to Media is going to be where is your music movies or TV folders so and you can put in as many of these as you want so this is more of an example the two that they have here but you can add four five six however many numbers there are I believe you can add so I only have one I have movies so I'm going to link movies so let me go to file station I'll go to my video share which is where I keep my movies and then you can see I have a folder called movies and it has every single movie that I own and that I have purchased in my entire lifetime so let's just copy that location I'm going to rightclick the movies folder properties and I'm just going to copy that location bounce out of here back in container manager so where it says path to Media I'm going to replace that with the path to my movies now to the right it just says for SL media I'm going to change that to for slov and you can do the same thing with any of your other files so if you had a TV share you can just do that and then TV and then for sltv you'll notice at the end of this it originally had col R so let me just change it back to T real quick you can add colon Ro to any of these paths at the end uh just to the part that's to the right don't add it to the part that's on the left and what that'll do is it stands for read only so jelly film won't be able to make any changes to those folders if that makes sense I won't be able to write anything into those folders and I won't be able to mess with any of your data that you have in there so if you want you can add that colon R O I don't know if there's really any advantage or disadvantage to it in the case of jelly Fin and then down here I'm going to comment out you can you can actually you can just delete that whole section because this or sorry I'll come up to the optional where it says optional we don't need anything that's optional in here so you can just delete all of that you could also just comment it out if you don't know what commenting out is that's where we're adding this we're adding this pound sign to the beginning of all these lines and that just makes it so it's not being used when Docker is running this code I don't know if this is considered code or not but this way you can keep it in here in case in the future you decide that maybe you do need to use the extra host variable or environmental variable for something so I'll leave that up to you we also need to do we need to make two more additions here and this is for if you are doing Hardware transcoding so if you want to be able to Hardware trans code as of January 26 2024 which is when I think I'm going to upload in this video first off under image jelly fin you need to add colon 10811 there is an issue with jelly fin Hardware transcoding in as syy Nas for versions after this so that's why I'm going to use 8 10.81 one right now and I'll explain this more the end of the video and then we also need to add the hardware en coding devices so to do this I'm going to go back to jelly fin back to the jellyfin website and I'm going to click on farm and then guides walkthroughs and tutorials yes you are watching tutorial but we're going to click on one that's even better than mine and I'm just going to look for the first one that says sonology and there should be one called guide running sonology gelin on dsm7 using Docker compos thank you efficient good 5784 you're doing you're doing the good work my friend I appreciate it I'm going to scroll down here got a section for look at that he he's got his Docker compos yel file and he explains what everything here does which is really nice but one thing that we need to copy in his Docker compose yo file is this section right here called devices so I'm going to copy this whole devices section here I'm going to copy that I'm going to go back to my sonology Nas and I'm going to look for the section that says volumes right and after the last part of volumes I'll hit return and paste in everything that I got from his site and I'm just going to reformat this a little bit so I'll click click on devices I need to delete the pound sign so that way it actually works and I need to make sure that devices lines up with volumes and network mode and do the same thing for the other guys below him so get rid of the pound signs and I also don't need these extra line spacing here oh actually sorry where it says note I do need to keep that or I can just delete I can delete this note I don't really need it it's an important note though so now jelly fin is going to have access to our igpu and be able to do hardware transcoding and this should be that you need to get things working except you do have to make a lot of changes in the settings and I'll go over those in jelly fin too so let's click actually sorry I need to do one thing I don't have a TV share so I'm just going to comment that out so I'm only working with movies and I I think I said this before but to the right you can name this whatever you want to the left to the right um you know the left just make sure that that is a volume that is going to where your media is and to the right just name it something that's going to make sense because when you're in jelly fin this is what jelly fin is going to use for the location so when it's asking you where your movies are I'm not going to say say volume one video movies I'm just going to say it's in the movies folder so hopefully that makes sense if not we're going to see in a second and it will make sense next I'm not going to set up a web station and start the project once it is created and I will click done all right so jelly fin is going to pull all the layers and download all the files and extract all the things that it needs to work all right and we got exit Code Zero and a jelly fin success thing it it popped up but I missed it cuz I was doing something else but we're good so the the way to access jelly fin I'm going to close out of here is you going to type in the IP address HTTP not https HTTP col the IP address of your Sony Nas colon 8096 and if you don't know the IP address of your sonology Nas easy way to do it is just come up here to where it says widgets make sure that system health is checked on and there should be a section called L one so it's probably Lan one or two or if you have four it's one it's one of those and it's probably the one that starts with 1 192.168 something. something so in my case I'm going to go to http1 192.168 18660 896 and that is a lot to remember and here we go we're in jelly fin so welcome to jelly Fin and it uh they summon a wizard that will help you install the rest of it so we'll click next username I use the name that is on my birth certificate volume data 21 password I will make a password I'm going to use the bit word and Generator and then 14 characters no going up to 27 1 2 3 4 5 boom now nobody nobody except for you and me knows this password go back to the Jelly fin setup I'll put that as my password next you don't have to use a password in jelly AC if you don't want to so there's that option and then here's where we're going to add our media library so I'll click the plus sign content type in my case I only have movies display name movies and then for folder check it out for slov that's that path that we made so there we go and it has every single movie that I've ever purchased and seen in my entire life click okay and we're good you can make whatever whatever changes in here that you want I will say chapter images is pretty nice but it could take up a lot of resources so I believe the first option will let it do it only at yeah it runs when videos are discovered and also runs as a nightly scheduled task so that might be a good option for you as opposed to doing it while it's doing the library scan scan because that could take a while I'll click okay next and then next and next and I'm done finish so I will put in my username volume data 21 and then my secure password that that only you and I know so if someone else finds out I'll know that you told them and I'll click sign in and we're into jelly finin so there's two things we want to do we want to set up hardware transcoding and then we want to make sure that it works so let's go over here to the hamburger and we'll click on dashboard and then let's go to playback and check it out Hardware acceleration none if you want to test this out right now you could go into your sonology Nas and click on resource Monitor and check out how the CP reacts when you play a movie it's probably going to be it's probably not going to be great and another thing you'll notice is depending on how you're playing a movie if I were to play my movie right now it's missing tone mapping because I'm playing it on a browser the browser doesn't play movies very well the movie is going to look really gray so that's going to be a case for using transcoding so I'm going to I'm going to select under Hardware acceleration Intel quicksync video and then I've got all these options here the way that you know which ones to check you can just Google up Google Wikipedia Intel qsv or quicksync video this page should pop up and if you scroll all the way down here it'll give you a list of what functions on your specific chip so on my case mine is a intel j3355 if you don't know what chip you have in sonology you can just go to control panel and then click on info center and it should say what chip that you have if you're not running an Intel chip this will not work so if you're on an AMD sonology Nas you you don't need Hardware transcoding Hardware transcoding unfortunately is not going to work for you but I can look in here under Intel j3355 and see that my product collection is sorry my code name is products formally Apollo lake so I'll go back to the Wikipedia and look at chips or sorry I'll see what works under Apollo Lake and I can see I can use MPEG 2 AVC vc1 jpeg uh vp8 what I cannot use is hvc 12bit but 10 bit works fine um I cannot use av1 either so I'll just go back and make those adjustments so H hvc is fine that's fine that's fine was vp9 fine vp9 are you okay partially accelerated decoding on Linux only um I'm going to check it even though I don't know it's fine but I know that av1 is not fine hvvc 10 bit is fine vp9 10 bit is fine all right and then there's an option here prefer OS native dxva or vappy Hardware decoders in the jelly fin I don't know if I can find it right now I'm going to turn this off because this will actually I believe Hardware acceleration will still work with this checked on but it takes up a lot more resources for some reason so I'm going to click that off and then Hardware encoding options I'm going to enable Intel low power hvc Hardware encoder I will allow encoding in hvc format I am not going to enable VPP tone mapping I don't think that this is I don't think this is supported in any version of in any sonology NASA out there but you can just check it on if the video doesn't play just come back in here and check it off but know that in my case it does not work but I do want to enable tone mapping that's important and then you should be all set and this should get Hardware en coding working so if I click save Hardware acceleration is on got it I can go back to playback I want to open up I'm going to open this up in a separate window as well all right so I'm going to start playing It's the Great Pumpkin Charlie Brown right now and you can see that Hardware encoding will work or maybe not maybe it won't work maybe I messed everything up but we'll see all right so this is playing that loaded up pretty quickly this is a full 4K Blu-ray rip so this is it's pretty pretty intensive if I go to settings it's playing at 1080p at 10 megabits per second but I could also bump it up to whatever I think this just because I had this at a setting beforehand so it is transcoding but how do I confirm that it's transcoding I'm going to go to dashboard and then in dashboard there's a section called logs under logs it should be the first FFM peg. transcode version that you see and when you click on that it should open up a new window and it clearly states that it's using Quicks sync video I have no idea what any of this is saying but I do know that if I type in stream mapping it'll give me this section so this is saying that it is working because stream the very first stream I think is the video stream it says HC qsv and then h264 qsv for Quicks sync video so that is a good sign if it says native here and then lib I think it's lib 264 to the right then that means that Quicks sync video is not working for you so just a little adds up you're gonna have to do some troubleshooting shooting if it's not working suiting not troubleshooting shooting but yeah there you go so now you can watch the Great Pumpkin on repeat for the end of Eternity I'm going to go through I I just want to address a couple things here because it was actually pretty tricky to figure out Hardware transcoding but um yeah I feel like this is one of the more confusing tutorials that I've done where I had to bounce around a lot especially away from the official from official documentation so jelly fin they do have documentation for syy Nas but it uses the old method of Docker and it I don't think they have anything on how to use Hardware transcoding if I go into my project double click jelly fin yaml configurations um I'll so I'll start with this using 10.81 one going through the jelly fin forms eventually I found out that um Hardware transcoding doesn't work for tone mapping sorry I'm trying to see if I can find it I believe the dread pirate over here is a he's either developer or he works with jelly fin he seems very official but his understanding is that tone mapping is broken on sonology anasis running 8.12 and later so somewhere in one of these Farm posts this I would definitely recommend getting on the forums and paying attention to this he mentions that if I think if the sonology kernel gets updated that they would be able to implement this back into the sonology nas but until then I don't think it's going to work on the newer versions okay yeah and then he mentions here that it only happens when you are tone mapping HDR to SDR regular transcoding should work fine if you want to deal with the super crappy colors it will also work and and yeah so that's basically it so that's why I recommend using this version 10 10.81 one if you just want to use the latest version now or you don't need Hardware encoding you can I'm going to stop my gelofen container so I can edit that a little bit close out you could just delete that and then it's going to download the latest version of jelly finin so you can just stop your container and restart it and it should work and then another thing I want to address is I did grab so I grabbed the official Docker composed file from jelly Fin's website and not let me click through all these guys this guy's guide that I pointed to efficient good 5784 and the reason I did that is I still like to point people to the official documentation I still want people look on the official forms I just feel like if I'm doing these guides unless there's no other way around it in some cases I I feel like the the official places are a good place to go to especially on a place like jelly fin where the devs will answer questions on the fums so this guy's guide you could totally use his Docker compose let me see if I can highlight this oh oh no I'm scrolling everywhere here you could use this person's Docker compos file as well I did try it out and it seemed to work just fine and it uses the official jelly fin image so if I paste that in here it's going to look pretty oh man why is there a space between everything I don't know maybe that's another reason I didn't use this but he's even got a section for the time zone and ports so there's a little bit of niess here you will notice too but yeah the only thing with his guide is that I wasn't able to find anything about what tricked me up was not being able to use Hardware encoding proper because in his guide it uses the latest version of jelly so you can see here it's just using the latest um and then he's got instructions for using a specific one but I don't think it mentions in the guide that it's a little bit broken on a sonology Nas in in the later versions but yeah also you know if this person's for post goes down one day or something like that at least you've been guided to the official post and you can copy and paste what I have on screen and hopefully that'll work for you and then yeah so that option to prefer OS native dxa I remember I told you about that option you should uncheck that because it'll take up a lot of space but it should be noted it should still work and if you have Dolby Vision movies you might want to keep it on because Dolby Vision support requires that this option be checked I haven't really messed around with it but it's just something that you should know about that option but I feel like CPU usage for me doubled maybe a little bit more than doubled when I had that option turned on so that's the reason that I turned it off but if you want to get Dolby vision to transcode properly I guess you might need that on and then also here is what the when you're trying to confirm if Hardware encoding is working or not when you're looking for stream mapping this is good so you see the qsv qsv like I had it before and then this is what you don't want to see native and lib x264 you can also see this if you just turn off Hardware trans coding under the options of jelly fin you can then look for this in the logs too but that is everything that I know about jelly finin Hardware encoding hopefully that was hopefully that could help some of you guys out um there's a lot of information out there on it I would definitely pay attention to jelly fin news their forums their GitHub just to see if they're ever able to fix it where you can pull the latest version of jelly Fin and be able to still do proper tone mapping on your videos the other option too is you can look at the linuxserver.io version of this it was it was a lot just to do the official one so I haven't really played around with the linuxserver.io version very much on a knowledge in as but maybe that'll also work for you so anyways good luck to you
Info
Channel: VolumeData21
Views: 1,770
Rating: undefined out of 5
Keywords: synology, nas, docker, self-hosted, home server, self hosted, docker compose, jellyfin, plex, media server, movies
Id: dFSiHvzu_xo
Channel Id: undefined
Length: 20min 2sec (1202 seconds)
Published: Fri Jan 26 2024
Related Videos
Note
Please note that this website is currently a work in progress! Lots of interesting data and statistics to come.