rffmpeg icon indicating copy to clipboard operation
rffmpeg copied to clipboard

Docker cache is mentioned in the setup documentation, but not explained

Open temotodochi opened this issue 1 year ago • 3 comments

/cache directory is mentioned in the setup documentation but its use is not explained in docker context except that it must be mounted on transcoder. Where? What mount point? Where is that set?

temotodochi avatar Feb 25 '23 16:02 temotodochi

If you're using Jellyfin inside a docker container then I suggest you use my image which isn't directly associated to this repo (there's also a repo for the worker, if you have issues open them there.

To answer your question: Joshua explained that a worker needs access to Jellyfin /config and /cache on the same mount paths as Jellyfin itself, but my testing showed that only /config/transcodes and /config/data/subtitles are needed.

aleksasiriski avatar Feb 25 '23 17:02 aleksasiriski

After adding a new plugin to my setup today, I found out a use for the cache directory being shared for rffmpeg processes and the jellyfin server. Jellyscrub uses rffmpeg to generate the images, and stores it temporarily in the cache directory, then once all images are generated, it stores it into the destination folder. Since the plugin runs on the jellyfin server, it wont pickup the images generated on rffmpeg.

seang96 avatar Oct 28 '23 07:10 seang96

@aleksasiriski is correct; basically, I just simplifed the docs by saying we need both instead of going through every possible subfolder. /cache is needed for pre-extracting images and subtitles, which is why it's mentioned.

To put it another way... rffmpeg does not mangle paths. If Jellyfin gives it a media path like /mymedia/myshow/file.mkv, that file must be present at that precise location on the rffmpeg target as well. Same with a config path of say /config/transcodes/myfile.m3u or whatever.

joshuaboniface avatar Dec 19 '23 14:12 joshuaboniface