~/Blog

Brandon Rozek

Photo of Brandon Rozek

PhD Student @ RPI studying Automated Reasoning in AI and Linux Enthusiast.

Transcoding Plex Video in RAM

Published on

One not so secret trick I recently learned is that you can have Plex transcode video in RAM to speed it up. This is especially useful if like me, your server runs on spinning rust hard drives and you have many GBs of RAM to spare.

Step 1: Set a transcode location in Plex.

Log into your admin account. Then go to Settings -> Transcoder.

From there select the “Show Advanced” button and scroll down to the “Set Transcoder temporary directory”.

I’ve set it to /transcode and then hit the Save button.

Step 2: Setup tmpfs

We can use tmpfs to setup a filesystem that will be stored in RAM at the transcode directory. If you have Plex installed not in a container, then you can follow the Arch Wiki Instructions for setting it up.

I use docker-compose for my setup, so it involved adding some limes to my yaml.

  plex:
    image: lscr.io/linuxserver/plex:1.32.5
    # ...
    tmpfs:
      - /transcode
    # ...

I don’t promise massive performance increase by setting up Plex this way, but I do think it makes sense:

  • Improved write speeds for the transcoded files
  • The transcoded files aren’t persistent

If you’re of a different opinion, let me know.

Reply via Email Buy me a Coffee
Was this useful? Feel free to share: Hacker News Reddit Twitter

Published a response to this? :