I noticed my home servers SSD running out of space and it ended up being my Jellyfin Docker container which wasn’t clearing the directory for transcodes in /var/lib/jellyfin/transcodes correctly.

I simply created a new directory on my media hard drive and bind mounted the above mentioned directory to it. Now Jellyfin got over 1 TB of free space to theoretically clutter. To prevent this I simply created a cronjob to delete old files in case Jellyfin isn’t.

@daily /usr/bin/find /path/to/transcodes -mtime +1 -delete

Easy!

    • Lunch
      link
      English
      310 months ago

      How is this done? If you don’t mind sharing 🤗

      • @[email protected]
        link
        fedilink
        English
        510 months ago

        tmpfs is the filesystem you are looking for. You can mount it like any other filesystem in /etc/fstab.

        tmpfs /path/to/transcode/dir tmpfs defaults 0 0

      • Shadow
        link
        fedilink
        English
        4
        edit-2
        10 months ago

        Can just point it to /dev/shm as a transcoding folder, for a quick and dirty way.

        Otherwise you’d mount a tmpfs disk.

    • DataproletOP
      link
      fedilink
      English
      310 months ago

      I have like a dozen people using my Jellyfin and sometimes 3-4 people watch something at the same time which results in a lot of transcoding data. At the moment my transcoding directory (which is cleaned every 24 hours) is almost 8 GB big. I don’t have the RAM to do this.

      • Domi
        link
        fedilink
        English
        910 months ago

        Starting with 10.9 you can enable segment deletion so files are cleaned up while still transcoding.

        • @[email protected]
          link
          fedilink
          English
          310 months ago

          Im so looking forward to this. When i tried to use tmpfs / ramdisk, the transcoding would simply stop because there was no space left.

          • Domi
            link
            fedilink
            English
            310 months ago

            Nope, release target is mid-April currently.

    • @agent_flounder
      link
      English
      110 months ago

      I will have to try that once my ram upgrade gets here.

      • @[email protected]
        link
        fedilink
        English
        310 months ago

        You can restrict the size of the ramdisk so you do not end up killing processes. A large amount of ram is not mandatory.

        • @agent_flounder
          link
          English
          110 months ago

          Good to know. Well I have 16G now that should give me plenty to spare.