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!

@Novi@sh.itjust.works
link
fedilink
English
368M

I transcode to ramdisk.

Dataprolet
creator
link
fedilink
English
38M

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
98M

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

@passepartout@feddit.de
link
fedilink
English
38M

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

Dataprolet
creator
link
fedilink
English
18M

Version 10.9 is not even released, right?

Domi
link
fedilink
English
38M

Nope, release target is mid-April currently.

Mr. Forager
link
fedilink
English
38M

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

@Novi@sh.itjust.works
link
fedilink
English
58M

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
8M

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

Otherwise you’d mount a tmpfs disk.

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

@Novi@sh.itjust.works
link
fedilink
English
38M

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

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

Create a post

A place to share alternatives to popular online services that can be self-hosted without giving up privacy or locking you into a service you don’t control.

Rules:

  1. Be civil: we’re here to support and learn from one another. Insults won’t be tolerated. Flame wars are frowned upon.

  2. No spam posting.

  3. Posts have to be centered around self-hosting. There are other communities for discussing hardware or home computing. If it’s not obvious why your post topic revolves around selfhosting, please include details to make it clear.

  4. Don’t duplicate the full text of your blog or github here. Just post the link for folks to click.

  5. Submission headline should match the article title (don’t cherry-pick information from the title to fit your agenda).

  6. No trolling.

Resources:

Any issues on the community? Report it using the report flag.

Questions? DM the mods!

  • 1 user online
  • 126 users / day
  • 421 users / week
  • 1.16K users / month
  • 3.85K users / 6 months
  • 1 subscriber
  • 3.68K Posts
  • 74.2K Comments
  • Modlog