Mastering Plex with RAM Transcoding on Unraid: Expert Tips

Поделиться
HTML-код
  • Опубликовано: 21 окт 2024

Комментарии • 76

  • @IBRACORP
    @IBRACORP  3 года назад +14

    Thanks for watching guys! 👾
    EDIT: I should note that this video assumes you are wanting to use a CPU which has iGPU capabilities for the transcoding. Apologies for any confusion.
    Don't forget to like and subscribe - it really helps! 🙌
    Can't wait to share more soon - including our follow-up one month on from installing Ubiquiti UDM.✔️

    • @MitchOfCanada
      @MitchOfCanada 2 года назад

      Was wondering, mine doesn't have APU. Looking for cheap gtx that can do 265.

  • @joshberube2680
    @joshberube2680 2 года назад +18

    Warning to new guys here- I learned this the hard way. Setting the AppData config path to the cache (mnt/cache/appdata/PlexMediaServer) without a designated cache drive on your server will cause you to lose the settings on every reboot. For me this caused *every* container of mine to lose the appData every reboot, and so I had to set things up multiple times before figuring this out!

  • @DestinyKey13
    @DestinyKey13 3 года назад +26

    Thanks for another vid mate, making us Aussies look good!
    Managed to combine this RAM technique with GPU transcoding enabled and has significantly sped things up. For anyone else wondering, to enable GPU transcoding (assuming you have an Nvidia card installed) you must first add the extra parameter "--runtime=nvidia" (without quotations) and then separated by a space from the RAM parameters/any other paramaters. You'll of course also need to have set up the appropriate drivers which you can find in Community Applications. A working config will look a little something like this "--runtime=nvidia --device=/dev/dri --mount type=tmpfs,destination=/tmp,tmpfs-size=20000000000 --no-healthcheck". This will still use your GPU to transcode but will instead offload that data to RAM instead of smashing your CPU and Cache resources. Happy homelab-ing!
    Edit: I should add that I have this tried and tested on linuxserver's repository but YMMV.

    • @IBRACORP
      @IBRACORP  3 года назад +2

      Thanks Andrew appreciate the support! And love the additional info for those using dedicated cards

    • @420Myths
      @420Myths 2 года назад

      what is --device=/dev/dri use for, i have nvidia runtime but not this,

    • @meccu19
      @meccu19 2 года назад

      Dev/dri should be there even with NVIDiA?

    • @DestinyKey13
      @DestinyKey13 2 года назад +5

      "--device=/dev/dri" is only for CPU transcoding. Since a recent update, the container will fail to spin up if you use this with GPU transcoding, so just remove it to get "--runtime=nvidia --mount type=tmpfs,destination=/tmp,tmpfs-size=20000000000 --no-healthcheck". And of course, adjust "tmpfs-size=xxxxxxxxxxx" to be appropriate for for how many bytes of RAM you're able to allocate in your server or you might exceed your total RAM which may lead to containers/vm's etc. starting to crash.

    • @draftzero
      @draftzero Год назад

      @@DestinyKey13 I get an error that says the directory already exists. Any suggestions on how to fix this?

  • @skalikid
    @skalikid 2 года назад +13

    Love the videos, impressive tutorials! - I have one question, seems they have changed the container a bit.
    Now there is a "Host Path 2" with a container path: "/transcode"
    Should we just leave it empty or delete it after implementing this method?

  • @RichardRojasL
    @RichardRojasL 6 месяцев назад +1

    Hello, the video is very well explained, I have a question. Within the Unraid Plex configuration you must create a patch configuration and enter the following data.
    Container Path: /transcode
    Host Path: /tmp/plex_transcode ? Do I have to create this folder in the plex configuration directory?
    Thanks in advance Regards.

  • @scootter2323
    @scootter2323 3 года назад +1

    Another great video! I was really baffled why I didn't have some settings that you had thinking I had an old version. Turns out those were Plex Premium options! I need to get that.

  • @bales1569
    @bales1569 Год назад

    that pre-roll video is really cool

  • @braydog44
    @braydog44 3 года назад

    Giving your suggestion for RAM a shot over the dev/shm option I went with. Really keen to see your video on ports relating to remote access as this has always been one of my biggest pain points in plex.

  • @GKooner20
    @GKooner20 3 года назад +2

    Best thing about Sunday’s are your videos. Keep up the good work

    • @IBRACORP
      @IBRACORP  3 года назад

      Thank you mate that means a lot! Enjoy your Sunday!

  • @stabbymeowkins
    @stabbymeowkins Год назад +1

    Once I changed this, my libraries all disappeared from the network and I had to reassign the library folders and re-grant access to my users. Is there a reason for this? It is now also going through detecting intros and the likes as well. Does this mean its duplicating intros and other things, as its stating it is vengeraring video chapter thumbnails...when they have already been generated before? I am new to Unraid so I am not sure why it is doing this. Sorry for the question.
    Is there also a way to verify it is transcoding in the RAM? I am not sure where to see that at. Thank you in advance.

  • @smaiderman2
    @smaiderman2 Год назад

    Thanks for the video!! really interesting.
    Is there a way to check that the config is properly done, and it is using ram?

  • @xisop
    @xisop 3 года назад +3

    Isn't /tmp a standard mapping in unraid for ram? I added a custom path (/transcode) to /tmp in the template and all seems to be transcoding through the ram 😊 transcode itself of course happens with a quadro M4000 card 😜

    • @IBRACORP
      @IBRACORP  3 года назад +1

      This is also true! More than one way to skin a cat 😸

    • @brandonakey6616
      @brandonakey6616 3 года назад

      I was wondering if either method has an advantage?

    • @Valyth
      @Valyth 3 года назад +4

      @@brandonakey6616 If you use the method given in this video, then you can control the maximum amount of RAM that plex will use for transcodes. I used the other method for awhile, and over time Plex actually filled my RAM up with a bunch of transcodes. This way you can limit the space, and Plex will actually remove the old transcodes to make room. Personally I double what they did here, and reserve 4GB of space since my homelab has 32GB of RAM anyway.

  • @koolkiwikat
    @koolkiwikat 2 года назад +3

    what can really help is the scripts to copy and paste in the description, trying to type the huge strings is pointless

  • @barriecooper8976
    @barriecooper8976 3 года назад +1

    Very good content.
    The only negative I would point out is that it's pretty unwatchable on a phone. Need to be zooming in on the settings as you talk about them so text is readable.
    I'll have to rewatch on my computer later.

    • @IBRACORP
      @IBRACORP  3 года назад

      Thanks Barrie yeah I'll be trying to change that you very soon

  • @RossCanpolat
    @RossCanpolat 3 года назад +1

    Could you make one of these videos for Emby with the ram transcoder dir.

  • @CapsLock33
    @CapsLock33 Год назад

    thanks for the tips! i hope it helps my Synology.

  • @pants-on-fire
    @pants-on-fire 3 года назад

    I... should've watched this video last night before I did my mass change on my media library. Now at least I know why I couldn't do anything for hours. Lesson well learnt I'd say!

    • @IBRACORP
      @IBRACORP  3 года назад

      That's how we learn!

  • @Michael-bf4ud
    @Michael-bf4ud 2 года назад +1

    @ibracorp, hey folks, I followed the guide (thx) can anyone tell me how to confirm that the transcodes are in RAM in a dir called tmp instead of on the array in a dir called tmp? Previously I could use explorer to see the actual transcodes on my cache.... any insights would be appreciated.

  • @pennakira
    @pennakira 3 года назад +1

    thank you for the video! is there a difference if you add a path to the plex container called /transcode and path /tmp? if you have plex pass.

    • @IBRACORP
      @IBRACORP  3 года назад +1

      Nope as long as you use the same name inside Plex to make sure it's mapped to the same place

    • @pennakira
      @pennakira 3 года назад

      @@IBRACORP thank you!

  • @elcoyote189
    @elcoyote189 3 года назад +1

    hey how can I check if it is really transcoding using RAM. I know for nvidia cards its nvidia-smi

  • @hightops9988
    @hightops9988 8 месяцев назад +1

    I followed your steps right up the the 4:59 mark and after I saved, the container vanished. What happened?

    • @phillipmckeough8406
      @phillipmckeough8406 Месяц назад

      did you figure this out. happened to me too

    • @croissantlune
      @croissantlune Месяц назад

      @@phillipmckeough8406 If it disappeared, worry not! Go to your /Docker page on unraid. At the bottom, clikc on "Add container". There should be in the template list your docker with all its configuration. Select the template and correct what broke it!

  • @icedfusion
    @icedfusion 3 года назад

    Using unraid 6.9.2 I got a docker error due to /dev/dri not being available - bit of research, i just mapped /transcode to /dev/shm, I assume this does the same thing? However, no idea how to check that the transcoding is actually occurring within this ramdisk space. Video still helped though, so thanks for this although you uploaded it some months ago.

  • @broodlum
    @broodlum 3 года назад

    In the "Remote access settings" the values for "Internet upload speed" and "Limit remote stream bitrate" are in megabit (Mb), not megabyte (MB).

    • @IBRACORP
      @IBRACORP  3 года назад

      You are correct! Thanks for the correction

  • @Nemesislh
    @Nemesislh 3 года назад

    That's very interesting, how much ram does it really need? I don't have that much ram available and wonder how much ram can I set for transcoding while being useful.

    • @IBRACORP
      @IBRACORP  3 года назад

      I would say it really depends on how many transcodes you typically get but I always have to recommended getting a decent amount of RAM first - in helps in so many ways. But - if that's not a viable option, I recommend perhaps 8GB and see if that works well for you.

  • @mksteezy
    @mksteezy 3 года назад

    is 8GB enough? and what happens if the allocated space gets filled up?

  • @vi_EviL_iv
    @vi_EviL_iv 5 месяцев назад

    thank you!!

  • @sinhalo
    @sinhalo 3 года назад

    As always good stuff man

    • @IBRACORP
      @IBRACORP  3 года назад

      Thank you John, was bit rocky getting back into it this week

  • @DobuDobuDobuDot
    @DobuDobuDobuDot 3 года назад +1

    Great video, just a comment though. Hardware acceleration doesn't use your CPU, it uses your GPU.

    • @IBRACORP
      @IBRACORP  3 года назад +1

      Thanks for watching mate. I believe you might be incorrect? Intel Quick Sync will be utilised by hardware acceleration

    • @progrockUSA
      @progrockUSA 3 года назад +1

      @@IBRACORP Quick Sync Video
      Clear Video - video decoding using a general purpose Intel GPU

    • @DobuDobuDobuDot
      @DobuDobuDobuDot 3 года назад +1

      @@IBRACORP Yes, it uses Intel CPU's with integrated graphics so it offloads the CPU intensive task to the GPU. That's why you use a RAM disk if you don't have any GPU, let's say most AMD processors or some non GPU Intel versions and if you don't have plex pass. If you have any form of GPU I'd use that instead of a RAM disk. See: support.plex.tv/articles/115002178853-using-hardware-accelerated-streaming/

    • @IBRACORP
      @IBRACORP  3 года назад +2

      I should have clarified it a little more so thanks for correcting me on that one.
      I can see how it may be confusing for those unsure of their CPU capabilities.

    • @julian.morgan
      @julian.morgan 3 года назад

      @@IBRACORP While appreciating it's a non-trivial task to preface every video with an explanation of who the video is aimed at: explaining what kind of hardware set up they should be running for doing what follows to make sense, I really do think it's worth that preamble. Thankfully, I watched the video through and read the comments before I made any changes, but as I have an old GTX1050ti set up to do my transcoding, using RAM would be pretty pointless. I'd recommend pinning a comment to clarify that this is for people with an iGPU as currently it comes across as being something you'd recommend for everyone running Plex on unraid.

  • @richardcdj4382
    @richardcdj4382 2 года назад

    ¿Se puede transcodificar con Intel 12600, dev/dri? UnRAID 6.10. RC4

  • @duynamvlog
    @duynamvlog 3 года назад

    Chào bạn bạn chia sẻ rất hay và thú vị, ngày mới chúc bạn luôn vui khỏe bình an HP và thành công trong mọi lĩnh vực nhé ❤️❤️❤️

  • @dzablow
    @dzablow 3 года назад +2

    setting appdata to cache assumes you haven't renamed your cache pool. if you have, use the name of the cache pool

    • @AndreGrahamNZ
      @AndreGrahamNZ 2 года назад

      lifesaver mate - thought I'd just lost my entire frickin media library and was in the process of restoring from an old backup, thought id scroll comments first - cheers heaps man!

  • @tobasama
    @tobasama Год назад

    Is this applicable for Jellyfin?

  • @hemuni
    @hemuni 3 года назад +1

    Your connection is 40 mega bits, not bytes. divede by 8 and you've got it in bytes.

  • @Rodrigo8
    @Rodrigo8 3 года назад +4

    for who doesn't have Flex pass consequently doesn't have GPU transcoding
    --mount type=tmpfs,destination=/tmp,tmpfs-size=2000 --no-healthcheck
    16GB = 17,179,869,184 bytes, thank me later

  • @kumz14
    @kumz14 3 года назад

    My container never starts if I add the following --device=/dev/dri--mount type=tmpfs,destination=/tmp,tmpfs-size=200000000000 --no-healthcheck

    • @IBRACORP
      @IBRACORP  3 года назад

      You're missing a space where --mount starts

    • @anthropicPanda
      @anthropicPanda 3 года назад

      not to mention copying that completely means 20GB of RAM will be used, you have to change the 200000000000 to something that coincides with your build

  • @Pro4TLZZ
    @Pro4TLZZ 3 года назад +1

    For Ubuntu and ram transcoding this is all you need: /dev/shm:/transcode:rw

    • @IBRACORP
      @IBRACORP  3 года назад +1

      Nice one thanks for sharing!

    • @christianko5907
      @christianko5907 3 года назад +2

      thx works for unraid as well

    • @mksteezy
      @mksteezy 3 года назад

      Do you add this on the Plex transcoder directory?

  • @davedivesdeeper
    @davedivesdeeper Месяц назад

    Use hardware acceleration when available is for GPU, NOT your CPU.
    If you don’t have that selected your CPU will perform the transcoding….
    Edit: still not using your “CPU” it’s using the GPU integrated in the cpu. A faster cpu doesn’t change the GPU specs so it’s still GPU

  • @dopeytree
    @dopeytree 11 месяцев назад

    Thanks

  • @delphia22
    @delphia22 3 года назад +1

    FIRST