9/4/2023 0 Comments Emby server requirementsMy main problem with the large files is that they never get deleted unless I restart the emby server (even when properly closed), which doesn't happen in windows. I requested a feature to turn off "time-shift" on their forums to which they replied, we have part of the functionality now, and then closed it lol. I would love to have these large files eliminated so I can use ram as the transcode disk, but like you said, they seem to be intentionally created. What are you trying to solve exactly, because my guess is creation of these large files with live TV is unavoidable. If active live TV files can be differentiated by name the script could be tweaked to ignore them, or if not we can infer by size (greater than X.) In the best case my script won't have any effect, in the worst case it'll delete it which could break things. I'm guessing they do that for DVR functionality (serves as a reference file which in the standard case is the media itself.) No sorry, I don't use live TV so I've never tested it. If a better solution exists let me know, this was quick and dirty.Script can probably be tweaked to work for Plex.Tail -f /dev/shm/transcoding-temp-fix.logĮvery 30.0s: /system-share/transcoding-temp-fix.sh 2>&1 14:45:19 usr/local/emhttp/webGui/scripts/notify -e "emby-ClearTranscodingTmp" -s "Command to detect script status failed" -d "" -i "alert" Re-starting."ĭocker exec EmbyServer sh -c 'watch -n30 "/system-share/transcoding-temp-fix.sh 2>&1" > /transcode/transcoding-temp-fix.log &'Įcho "ERROR: Command to detect script run status failed" # we might end up running multiple instances of the scriptĮcho "Clearing script is not running. # make sure the detection command ran properly otherwise Watch_running=$(docker exec -i EmbyServer ps | grep 'watch ' | wc -l) # verify watch command that calls clearing script is running Running=$(docker container ls | grep EmbyServer | wc -l) NOTE: Update EmbyServer name and system-share (if necessary) to match your system #!/bin/bash Now the user script to launch it, set to run every 10 minutes (*/10 * * * *) Percent_full=$(df "$ (TRANSCODE_DIR): directory doesn't exist" # Delete old files when used space is above this % TRANSCODE_DIR="/transcode/transcoding-temp" Is the container's path to the following script (make the script executable) Is the container's path to the directory holding temp transcoding files (emby creates this subdirectory) Is the container's path to /dev/shm/ (or wherever you're transcoding to) To solve that I wrote a script (run by the container) to delete temporary files and a user-script to launch it when the container's restarted or if it's not running for any other reason. Both Emby and Plex support numerous devices so you are most likely sorted regardless of the device you would like to use. I have emby transcode to RAM (/dev/shm/) which works well except for garbage collection – temporary transcode files accumulate.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |