nickp85 Posted December 23, 2021 Share Posted December 23, 2021 (edited) Has anyone seen issues with this with 4K HDR transcoding on the fly to 1080p? I am using /tmp as my transcode directory and verified it’s working but does Plex manage the transcode bits in a first in first out fashion so it won’t overrun my system RAM? I have 32GB RAM with 16GB dedicated to a Windows VM so 16GB available to Unraid. Edited December 23, 2021 by nickp85 Quote Link to comment
alturismo Posted December 23, 2021 Share Posted December 23, 2021 34 minutes ago, nickp85 said: but does Plex manage the transcode bits in a first in first out fashion so it won’t overrun my system RAM? yes, Plex does it and also removes "old" transcodes when space getting low, still may consider adding a ram disk with like 4 GB for Plex only so in terms you have long runs your overall system wont be "always loaded" when you need to transcode (which only should be used for remote view's only) 1 Quote Link to comment
bergi9 Posted January 26, 2022 Share Posted January 26, 2022 I just want to mention that you cannot have the ram disk set as 8GB while Plex docker memory restrict to 4GB. It will likely to crash Plex itself because docker memory usage includes the usage of the ram disk too. I had Plex crashing (transcoder error) when it reaches the 4GB limit of docker memory restriction. Then I removed the Plex docker memory limit but keep the ram disk limit to 8GB and it worked fine. Quote Link to comment
mgutt Posted January 26, 2022 Share Posted January 26, 2022 19 minutes ago, bergi9 said: Then I removed the Plex docker memory limit but keep the ram disk limit to 8GB and it worked fine. Note: If you use the new Download feature, even those will be written to the RAM. Sadly the complete movie and deletion is done after successful download. Because of that I'm using 34GB, now. --mount type=tmpfs,destination=/tmp,tmpfs-size=34000000000 --memory=34G Quote Link to comment
TopherHax Posted January 27, 2022 Share Posted January 27, 2022 (edited) I'm having an odd issue with transcode to memory on 1 specific movie. So just to establish I am successfully transcoding to memory with --mount type=tmpfs,destination=/transcode,tmpfs-size=4000000000 and /tmp directory in plex. I also confirmed this with df -h. But for some reason when I play the movie "Cars" which is 4K HEVC and transcode to H264 I get the error "Not enough disk space to convert this item". As a test, I edited to use up to 8 gigs of memory "--mount type=tmpfs,destination=/transcode,tmpfs-size=8000000000" and retested and no change. What else could cause this? I tested 8 other 4K HEVC movies which do not have this issue at all. See screenshot of df -h below. Edited January 27, 2022 by TopherHax Quote Link to comment
alturismo Posted January 27, 2022 Share Posted January 27, 2022 1 hour ago, TopherHax said: What else could cause this? i guess (and its really a guess) its the audio line, as sample, i also would need min 3 GB Ram Disk when i playback a DTS-HD movie as i use ARC and the TV cant playback DTS-HD Audio ... may take a look at the audio lines if there is a difference. Quote Link to comment
TopherHax Posted January 31, 2022 Share Posted January 31, 2022 Update, I got a different copy of this movie and it fixed the issue. Quote Link to comment
Krikro Posted February 6, 2022 Share Posted February 6, 2022 Hi, I'm having some issues transcoding to RAM. I'm running the following parameters in my Plex container: --runtime=nvidia --device=/dev/dri --mount type=tmpfs,destination=/tmp,tmpfs-size=20000000000 --no-healthcheck The GPU is responding just fine: I've configured /tmp as my transcode directory within Plex: But /tmp is not showing up when I run the "df -h" command. Did I overlook something? Quote Link to comment
nickp85 Posted February 6, 2022 Share Posted February 6, 2022 (edited) You don’t need those parameters in the Docker container, just map the container /transcode to /tmp on host and point Plex to /transcode. side note, I had issues with this because on a longer transcode Plex would exhaust system RAM so I scripted something to create a subfolder of /tmp with 8GB of my RAM as a ramdisk so Plex can’t use more than a certain about of RAM. I have 32GB with 16GB given to a VM. Giving 8GB to Plex keeps it from overrunning the available memory. So I use /tmp/PlexRamScratch on Unraid mapped to /transcode in container. This is the script I put into User Scripts plugin to run at first start of the array only. #!/bin/bash mkdir /tmp/PlexRamScratch mount -t tmpfs -o size=8g tmpfs /tmp/PlexRamScratch Edited February 6, 2022 by nickp85 Quote Link to comment
mgutt Posted February 7, 2022 Share Posted February 7, 2022 3 hours ago, Krikro said: But /tmp is not showing up when I run the "df -h" command. You need to execute this command in the Plex terminal (docker > Plex icon > console). 1 Quote Link to comment
mgutt Posted February 7, 2022 Share Posted February 7, 2022 2 hours ago, nickp85 said: You don’t need those parameters in the Docker container I prefer a single change in the container settings, instead of having an additional script, but finally both solutions do the same thing. Quote Link to comment
alturismo Posted February 7, 2022 Share Posted February 7, 2022 7 hours ago, Krikro said: --runtime=nvidia --device=/dev/dri you may should look at this too while on it, /dev/dri is uaually only needed for intel, or amd vaapi ... but while you are running on nvidia you can remove this (may even should remove it ...) --device=/dev/dri 1 Quote Link to comment
Bolagnaise Posted February 8, 2022 Share Posted February 8, 2022 So even with my plex ram cache set to 32G using @mgutt advanced config, im still seeing plex crash when a user tries to download multiple movies. My friend tried to download multiple movies in anticipation for an overseas trip and it was causing the plex instance to crash and the downlaods to fail completly. Looks like im going back to my NVME drive for plex transcodes. Quote Link to comment
nickp85 Posted February 10, 2022 Share Posted February 10, 2022 On 2/7/2022 at 9:26 PM, Bolagnaise said: So even with my plex ram cache set to 32G using @mgutt advanced config, im still seeing plex crash when a user tries to download multiple movies. My friend tried to download multiple movies in anticipation for an overseas trip and it was causing the plex instance to crash and the downlaods to fail completly. Looks like im going back to my NVME drive for plex transcodes. I think I saw something about Plex downloads going entirely into the transcode folder. If you’re doing like 4K HDR stuff bigger than 32GB you’ll blow out the RAM and it won’t work Quote Link to comment
Burizado Posted February 10, 2022 Share Posted February 10, 2022 12 hours ago, nickp85 said: I think I saw something about Plex downloads going entirely into the transcode folder. If you’re doing like 4K HDR stuff bigger than 32GB you’ll blow out the RAM and it won’t work Don't downloads go to the device you are downloading them on? Like if I was traveling and wanted to download episodes/movies, they would go onto the tablet/phone I am taking with me, not the Plex server. Am I wrong in my thinking here? Quote Link to comment
mgutt Posted February 10, 2022 Share Posted February 10, 2022 14 minutes ago, Burizado said: Don't downloads go to the device you are downloading them on? I'm not sure, but I think it's transcoding first. But this needs to be answered by @nickp85 Quote Link to comment
Bolagnaise Posted February 11, 2022 Share Posted February 11, 2022 Yeah my friend tried to download around 5 movies all around 10GB each at 1080p 8mbps quality and it caused my plex instance to crash multiple times using the new downloads feature, as already mentioned it seems to store the entire transcoded file in the /transcode mapping folder in its entirety until it’s been downloaded by the client, if the ram becomes full the plex instance will lockup and crash. I’ve switched backed to NVME for my transcode and had him run the same test and the plex server has no issues. Hopefully plex allows us to map a separate downloads folder to store transcoded content that requires downloading in the future. Quote Link to comment
mgutt Posted February 12, 2022 Share Posted February 12, 2022 6 hours ago, Bolagnaise said: Yeah my friend tried to download around 5 movies What about the "Maximum simultaneous video transcode" transcoder setting? Set it to 3 and let the friend select 5 Downloads. I think it will put the additional 2 in the queue until the others have finished. Quote Link to comment
Bolagnaise Posted February 12, 2022 Share Posted February 12, 2022 4 hours ago, mgutt said: What about the "Maximum simultaneous video transcode" transcoder setting? Set it to 3 and let the friend select 5 Downloads. I think it will put the additional 2 in the queue until the others have finished. Interesting, i had it set too 6. Quote Link to comment
feins Posted February 28, 2022 Share Posted February 28, 2022 I setup Plex transcode to /dev/shm but my transcoding seems doesn't work? I wonder why. The media just keep buffering and nothing happen. Quote Link to comment
mgutt Posted February 28, 2022 Share Posted February 28, 2022 Since a few days mine does not work anymore. My TV said "not enough storage". Had to give up RAM transcoding at all Quote Link to comment
Ronin Posted March 20, 2022 Share Posted March 20, 2022 Haven't figured out how to transcode on RAM when upgrading to 6.10 RC. Tried a few methods mentioned above, plex still transcoding using cache. Can't even see /dev/shm folder as i used to be able in 6.9 when used the container: /transcode method. Quote Link to comment
Conjure Posted March 25, 2022 Share Posted March 25, 2022 On 3/20/2022 at 2:17 PM, Ronin said: Haven't figured out how to transcode on RAM when upgrading to 6.10 RC. Tried a few methods mentioned above, plex still transcoding using cache. Can't even see /dev/shm folder as i used to be able in 6.9 when used the container: /transcode method. Same Quote Link to comment
mbc0 Posted June 18, 2022 Share Posted June 18, 2022 (edited) Hi! Is there a way to test that the transcode is happening on the RAM please? It should be working but would like to know if there is a way I can check it is not transcoding on the nvme drive. Also, I am allocating 20GB with my parameter, does that "lock out" 20GB for plex (Will show as used in unraid) or just allow it to use 20GB of what is available? Thank you I am using a threadripper 2950X so no cpu capabilities --mount type=tmpfs,destination=/tmp,tmpfs-size=20000000000 --no-healthcheck Edited June 18, 2022 by mbc0 added extra question Quote Link to comment
Bolagnaise Posted July 25, 2022 Share Posted July 25, 2022 On 3/1/2022 at 4:02 AM, mgutt said: Since a few days mine does not work anymore. My TV said "not enough storage". Had to give up RAM transcoding at all I’ve even thinking about this for a while, their is a SWAP file plugin for Unraid 6.9 and above. This may be a workaround to getting transcoding back onto ram. I will test and report back. Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.