Skip to content
View in the app

A better way to browse. Learn more.

Unraid

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Plex: Guide to Moving Transcoding to RAM

Featured Replies

On 2/12/2020 at 5:06 AM, Andiroo2 said:

I recently set Plex transcoding to /tmp, verified that the sessions were showing up as expected int he /tmp folder.  Seemed to be working fine, EXCEPT for users on Amazon Fire Sticks.  They are able to browse Plex and select a movie, but as soon as they play it, they get an error "Playback has stopped because the connection to the server has been lost".  I had 2 Fire stick users confirm this today, and at the same house their Rokus and other devices work fine.  When I move transcoding back to the default directories on an SSD, everything works again. 

 

Could the Android clients be managing transcodes differently?  I find this so odd.  

 

Xeon 2699v4, 32GB RAM.  I thought this would be enough but maybe not?

Yeh, I had similar random errors like that too.  I assumed it was space running out but can't be sure.  Quite hard to identify as the stream has usually stopped and the files are cleaned up I guess.

  • Replies 472
  • Views 380.4k
  • Created
  • Last Reply

Top Posters In This Topic

Most Popular Posts

  • By this guide Plex uses your RAM while transcoding which prevents wearing out your SSD.   Edit the Plex Container and enable the "Advanced View":   Add this to "Extra Paramet

  • Yesterday, I was lazy and set only "/dev/shm/plextranscode" as my transcoding path. I checked the path and it was created: ls /dev/shm plextranscode/   But it stays empty while transcoding

  • Yes it is needed as /transcode will be created, even it is not mapped through the containers settings.   So I will hopefully update my guide for the last time ^^ EDIT: Done.

Posted Images

Plex just put out an update - the changeling seems to indicate they've solve the issue, at least for the Nvidia Shield.  If I were you I'd try it out again now and if it doesn't work, go jump on the update link and ask to add to the general builds too.

 

In particular, I'm referring to this:

(DVR) Only require 100 MB of disk space per recording for the transcode session directory. (nvidia-shield-issues#236)

I seem to be getting an error when i change the variable in the container for the container path /transcode to be /tmp - 

Error response from daemon: path /tmp is mounted on / but it is not a shared or slave mount.

 

Anyone any ideas on this one?

4 minutes ago, boomam said:

when i change the variable in the container for the container path /transcode to be /tmp - 

Error response from daemon: path /tmp is mounted on / but it is not a shared or slave mount.

What was your previous transcode location? What is your current access mode in the path configuration?

12 minutes ago, Hoopster said:

What was your previous transcode location? What is your current access mode in the path configuration?

Previous location was an unassigned disk.

Current access mode - i do not know what you mean by this. Please elaborate.

Just now, boomam said:

Previous location was an unassigned disk.

Current access mode - i do not know what you mean by this. Please elaborate.

Unassigned disks need to be mounted in RW/Slave mode; /tmp does not.  You probably never changed this setting in the docker edit screen configuration of the volume mapping and still have access mode set to RW/Slave instead of Read/Write.

 

image.png.a71c1d4edfdf20f64ba1a91beab45e11.png

 

12 minutes ago, Hoopster said:

Unassigned disks need to be mounted in RW/Slave mode; /tmp does not.  You probably never changed this setting in the docker edit screen configuration of the volume mapping and still have access mode set to RW/Slave instead of Read/Write.

 

image.png.a71c1d4edfdf20f64ba1a91beab45e11.png

 

Thanks - that was it.

I dont recall ever setting that setting in the past, but hey-ho, its working now, so nice one! 🙂

On 2/11/2020 at 11:06 AM, Andiroo2 said:

I recently set Plex transcoding to /tmp, verified that the sessions were showing up as expected int he /tmp folder.  Seemed to be working fine, EXCEPT for users on Amazon Fire Sticks.  They are able to browse Plex and select a movie, but as soon as they play it, they get an error "Playback has stopped because the connection to the server has been lost".  I had 2 Fire stick users confirm this today, and at the same house their Rokus and other devices work fine.  When I move transcoding back to the default directories on an SSD, everything works again. 

 

Could the Android clients be managing transcodes differently?  I find this so odd.  

 

Xeon 2699v4, 32GB RAM.  I thought this would be enough but maybe not?

So, there may have been an issue with the latest Plex app released for the Fire Stick.  My friends are trying with different settings there to see if they can work around it.  So far, no issues on any other platform (and the RAM vs. SSD transcode doesn't appear to make a difference for this issue after all).  Link for the post I am following: https://www.reddit.com/r/PleX/comments/f5r0ou/4k_with_new_plex_for_firestick_4k_disabled_with/

  • 3 weeks later...

Im not able to get the transcode by RAM working in unraid.

 

When I check the RAM usage streaming a movie the graph is showing that the usage is nearly 0 % of 128GB 

 

My transcoder path in PLEX is: /transcode

 

In Unraid the settings are:

 

Container path: /transcode

Host Path: /tmp

Access mode: Read/write

 

Please help

 

 

You have a 128GB RAMdisk?

I have 128gb of ram installed in my server, how can i make a ramdisk?

I can't not get my to plex docker to work (transcode in ram), which docker do you use?

I use the one from plexinc, can this be the problem?

On 3/6/2020 at 2:32 PM, sjjellesen said:

Im not able to get the transcode by RAM working in unraid.

 

When I check the RAM usage streaming a movie the graph is showing that the usage is nearly 0 % of 128GB 

 

My transcoder path in PLEX is: /transcode

 

In Unraid the settings are:

 

Container path: /transcode

Host Path: /tmp

Access mode: Read/write

 

Please help

 

 

Your configuration looks correct.

 

Have you checked the /tmp/Trancode/Sessions folder when transcoding is taking place?  Is anything there?

 

My linuxserver.io Plex docker container is configured to transcode to RAM and transcode sessions are created as needed in that folder.

  • 3 weeks later...

Hi All,

 

just to check, in my docker i didnt add any docker path for my plex, but when i console in to my plex docker, i saw a tmp folder (i presume is the RAM),

 

can we just point my plex in transcode setting directly to this /tmp?

image.png.0fbe12168352afc6130fff46cd7cdb3d.png

 

image.png.4f5482e661dbfb11c8637f91a5334ab7.png

40 minutes ago, Ong Hui Hoong said:

i saw a tmp folder (i presume is the RAM),

 

can we just point my plex in transcode setting directly to this /tmp?

I don't know if we can presume that is in RAM or not. If it were /tmp for the host then it would be, but since it is inside the container it might be be stored in the docker image instead of RAM.

 

There is plenty of instruction here for doing it right.

i did what everyone did, do the host path to the /tmp and map to container path (/transcode or something), but it will cause my RAM to use up to 99% then my server crash @_@

 

image.png.8e413bf1785d1362e9dc55367995a457.png

 

i think i have more then enough RAM to do ram transcoding right? i got about 12G of ram standing by.

Edited by Ong Hui Hoong

25 minutes ago, Ong Hui Hoong said:

i did what everyone did, do the host path to the /tmp and map to container path (/transcode or something), but it will cause my RAM to use up to 99% then my server crash @_@

i think i have more then enough RAM to do ram transcoding right? i got about 12G of ram standing by.

Read post from 1812 on page 9 (quote below) for the script to run at startup. Then point the container path to /tmp/PlexRamScratch

The script restricts the size of /tmp/PlexRamScratch to 4GB so you Plex does not use all the RAM.

4G is a good starting point but you can adjust depending on needs.

 

 

7 hours ago, testdasi said:

Read post from 1812 on page 9 (quote below) for the script to run at startup. Then point the container path to /tmp/PlexRamScratch

The script restricts the size of /tmp/PlexRamScratch to 4GB so you Plex does not use all the RAM.

4G is a good starting point but you can adjust depending on needs.

 

 

wow nice, let me test this out, thanks ya :D

Edited by Ong Hui Hoong

7 hours ago, testdasi said:

Read post from 1812 on page 9 (quote below) for the script to run at startup. Then point the container path to /tmp/PlexRamScratch

The script restricts the size of /tmp/PlexRamScratch to 4GB so you Plex does not use all the RAM.

4G is a good starting point but you can adjust depending on needs.

 

 

qustion, can i add this under the /boot/config/go files?

im not very good in linus CLI :(

1 hour ago, Ong Hui Hoong said:

qustion, can i add this under the /boot/config/go files?

im not very good in linus CLI :(

Install User Scripts plugin from the app store

Settings -> User Scripts -> create a new script -> copy paste script to the edit box -> save -> on the schedule box choose at first array start

On 3/28/2020 at 1:59 AM, testdasi said:

Install User Scripts plugin from the app store

Settings -> User Scripts -> create a new script -> copy paste script to the edit box -> save -> on the schedule box choose at first array start

Hi, thanks for the guide! the limited size ram folder created without issue, now just need to wait more people streaming to confirm :)

 

thanks again :D

So I'm trying to get my Plex server (UnRaid Docker) to transcode to ram.. I have installed the CA User Scripts and set up the 4G ramdrive as listed a few posts up and set to start with the array. I just want to make sure all my settings are correct.

 

In the Docker container settings I have the TRANS_DIR variable set to /tmp/PlexRamScratch

In my Plex server settings under Transcoder Settings I have also set the Transcoder temporary directory to /tmp/PlexRamScratch

 

Is that all that should be required?

59 minutes ago, amplified2000 said:

In my Plex server settings under Transcoder Settings I have also set the Transcoder temporary directory to /tmp/PlexRamScratch

/tmp/PlexRamScratch is your host path.  What is your container path set to for TRANS_DIR?

 

In the Plex server Transcoder Settings you specify the container path (/transcode or whatever you defined) NOT the host path.

 

image.png.63f4e4c5e2bd9c8ce22b090428416245.png

22 minutes ago, amplified2000 said:

Docker setting.PNG

plex server setting.PNG

Click on the Edit button for Key 1 and post a screenshot of the Edit Configuration screen.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.