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 transcode in Ram

Featured Replies

Hi,

 

I'm trying to set up Plex to transcode to RAM.

I have set the Docker container to..

container path: /transcode

Host path /tmp

 

And in Plex under transcoder area I have set   /transcode

 

I did not add a drive on the array as I was under the impression the docker path add is virtual or something like that.

 

I'm not seeing an increase of Ram usage when I play a movie to indicate it's been loaded into Ram.

 

Can anyone advise if I have this set up correctly please?

 

Thanks

 

1 hour ago, Lien1454 said:

I'm not seeing an increase of Ram usage when I play a movie to indicate it's been loaded into Ram.

Your configuration is correct.

 

It doesn't actually load the entire movie into RAM.  Transcoding sessions are created a chunk at a time and streamed to the client.

 

You can verify that transcoding is happening in RAM by going to /tmp/Transcode/Sessions on your server.  You will see transcoding sessions being created on the fly for each stream that is being transcoded.

  • Author
12 minutes ago, Hoopster said:

Your configuration is correct.

 

It doesn't actually load the entire movie into RAM.  Transcoding sessions are created a chunk at a time and streamed to the client.

 

You can verify that transcoding is happening in RAM by going to /tmp/Transcode/Sessions on your server.  You will see transcoding sessions being created on the fly for each stream that is being transcoded.

Sorry if this is a stupid Q. But where do I find the /tmp path ?

 

Thanks

 

2 hours ago, Lien1454 said:

Sorry if this is a stupid Q. But where do I find the /tmp path ?

 

Thanks

 

Open a terminal session in the GUI, SSH or Telnet into your server or go to your console command line If you have a monitor an keyboard attached to your server and type:

 

cd /tmp/Transcode/Sessions

 

If you list files in that folder you will see the session files for any transcodes in progress.

 

You'll see something like this:

 

image.png.f58431f96a6ace65d230d06509097c62.png

Edited by Hoopster

where does /config/transcode go to?

1 hour ago, scubieman said:

where does /config/transcode go to?

That depends on how you map /config in the Plex docker.

 

If your /config mapping is something like the screenshot below (or /mnt/cache/appdata/plex/) and you map /transcode to /config/transcode your transcodes end up in the /mnt/cache/appdata/plex/transcode folder.

 

image.png.b31c6e388b38d18809c53cfacb30c7fa.png

Edited by Hoopster

hows this look?

image.png.5368831c48ca30ab90b6dc8da34b029a.png

14 minutes ago, scubieman said:

hows this look?

image.png.5368831c48ca30ab90b6dc8da34b029a.png

Sure that will work as long as you specify in Plex Transcoder settings that your transcoder temporary directory is TRANS_DIR.  It will map to a transcode subdirectory of wherever you have /config mapped on the host (unRAID server)

I'll see if I'm smart enough to do that. Thank you

Sure that will work as long as you specify in Plex Transcoder settings that your transcoder temporary directory is TRANS_DIR.  It will map to a transcode subdirectory of wherever you have /config mapped on the host (unRAID server)


Sent from my Pixel 2 XL using Tapatalk

10 hours ago, Hoopster said:

Oh, I.m sure you are, but, you would be surprised how many people put the wrong thing in the Plex config.

 

BTW, if you don't want to always have to remember where you mapped /config you could just enter /mnt/cache/appdata/plex/transcode (or wherever you want your transcodes to be stored) as the host path in the docker config.  Of course, the advantage to the way you have done is that if you remap /config, your transcode directory will automatically follow it and remain of subdirectory of /config wherever it is located.

How do I know where this is located? Like what drive or in ram? Config doesnt tell me much .

 

image.png.941a477e85110004e8e534f17ebb9d7e.pngimage.thumb.png.d1b13f89fd0f8c877f96bdb362226103.png

21 minutes ago, scubieman said:

How do I know where this is located?

"this" is a very broad statement. If you mean where /config/transcode is located, then look at the path mappings in the docker screen. It's not showing in the screenshot you posted, you will have to show more settings to see. A docker only has access to the host through path mappings, if it's not mapped to the host, it's in the docker image. Normally the /config folder is mapped to /mnt/user/appdata/<appname>, so /config would be located on the array wherever /mnt/user/appdata/<appname> happened to exist.

In your container settings "/config/transcode" is specified as a variable, this is incorrect, it has to be a path.

Just now, bonienl said:

In your container settings "/config/transcode" is specified as a variable, this is incorrect, it has to be a path.

Since I use emby instead of plex, I assumed plex parsed the variable to populate the transcode location.

8 minutes ago, jonathanm said:

"this" is a very broad statement. If you mean where /config/transcode is located, then look at the path mappings in the docker screen. It's not showing in the screenshot you posted, you will have to show more settings to see. A docker only has access to the host through path mappings, if it's not mapped to the host, it's in the docker image. Normally the /config folder is mapped to /mnt/user/appdata/<appname>, so /config would be located on the array wherever /mnt/user/appdata/<appname> happened to exist.

I see where you are going with this. My transcode is on my cache drive.

 

image.thumb.png.252f6fae72d16d404064f235eddb2c95.png

Just now, scubieman said:

I see where you are going with this. My transcode is on my cache drive.

 

image.thumb.png.252f6fae72d16d404064f235eddb2c95.png

So if you want it to transcode elsewhere, you need to assign a path mapping to your desired destination in the docker config.

3 minutes ago, bonienl said:

In your container settings "/config/transcode" is specified as a variable, this is incorrect, it has to be a path.

So this needs to be changed to /mnt/cache/appdata/binhex-plexpass?

6 hours ago, scubieman said:

How do I know where this is located? Like what drive or in ram? Config doesnt tell me much .

It all depends on the host path you specify in the mapping configuration.  If you specify a host path such as /mnt/user/.../transcode (or /mnt/cache/.../transcode), you are designating a physical path on the array as the location for transcodes.

 

If you specify /tmp or some other path outside of the array, it will be created in RAM as unRAID loads in RAM on boot.

 

And, by the way, you did not specify the proper container path in the Plex transcoder setup.  You entered /config/transcode and that is an incorrect host path not a container path.  The container path is TRANS_DIR according to your screen shot.

 

You should map TRANS_DIR to /tmp (or some other temporary directory) if you want transoding in RAM or to /mnt/cache/appdata/plex/transcode (or something similar depending on your setup) if you want transcoding to take place on the cache drive.

Edited by Hoopster

This makes way more sense now. Thank you! This mapping can confuse a guy sometimes!!!

 

5 hours ago, bonienl said:

In your container settings "/config/transcode" is specified as a variable, this is incorrect, it has to be a path.

 

5 hours ago, scubieman said:

So this needs to be changed to /mnt/cache/appdata/binhex-plexpass?

 

Just to clear up this point, bonienl is referring to the way you defined TRANS_DIR as a variable and not as a path.

 

You make that selection as the bottom of the docker edit screen when you chose Add another Path, Port, Variable, Label or Device.  You defined the mapping as a variable when it should have been a path.

 

For reference, below are some of my Plex host path mappings (note that /transcode is defined as a Container Path whereas in your screen shot TRANS_DIR is defined as a Variable:

 

image.png.432343c649ac14faa006617ff8b3d1c8.png

Awesome thank you. I need to switch it.

Sent from my Pixel 2 XL using Tapatalk

  • Author

My understanding is that parts of the movie is placed into RAM as the movie plays...

 

Is there anyway to dump the whole movie into ram and stream from that so hard drives can spin down?

 

Thanks

 

Edited by Lien1454

Just now, jonathanm said:

This makes no sense to me. Can you explain how that puts the currently playing movie into RAM?

I was thinking cache.. Wrong answer. I will delete my post.

Archived

This topic is now archived and is closed to further replies.

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.