Sanderluc 11 Posted December 15, 2024 Posted December 15, 2024 (edited) Hello, Sometimes I'm updating my server and then Emby will shut itself off (Sometimes forced due to crashes). It seems that the "transcoding-temp" folder will remain intact. Streams that are no longer being watched are still files from.... Could it be an idea to give a option so Emby will auto-clean this folder on boot? Like a checkbox for example under transcoding-settings. This will ensure the folder remains clean. I saw my transcoding-temp folder was 56 GB over the years. A regex can be used to filter by ID and ****_***.TS files. this will prevent cleaning other things when the user has changed the folder location itself. I can always script something, but I think having this within Emby is more handy for everyone. Edited December 15, 2024 by Sanderluc
Sanderluc 11 Posted December 15, 2024 Author Posted December 15, 2024 (edited) Also Live TV can end up using an abnormal amount of storage. Streams are never cleared before being exited, so if a user watches a stream continuously without quitting, it will slowly turn in a massive HLS folder as temp. I have now created a bash script that deletes files created more than an hour ago. I’m not sure if this will cause any playback issues, but we’ll see. Since I’m using now my RAM for streams, the impact is noticeable. Edited December 15, 2024 by Sanderluc
Luke 39004 Posted December 15, 2024 Posted December 15, 2024 1 hour ago, Sanderluc said: Hello, Sometimes I'm updating my server and then Emby will shut itself off (Sometimes forced due to crashes). It seems that the "transcoding-temp" folder will remain intact. Streams that are no longer being watched are still files from.... Could it be an idea to give a option so Emby will auto-clean this folder on boot? Like a checkbox for example under transcoding-settings. This will ensure the folder remains clean. I saw my transcoding-temp folder was 56 GB over the years. A regex can be used to filter by ID and ****_***.TS files. this will prevent cleaning other things when the user has changed the folder location itself. I can always script something, but I think having this within Emby is more handy for everyone. Hi, this already happens on server startup. It could mean that the server is being denied access to delete the files. 1
Sanderluc 11 Posted December 15, 2024 Author Posted December 15, 2024 1 hour ago, Luke said: Hi, this already happens on server startup. It could mean that the server is being denied access to delete the files. That's interesting. I will take a look at the permissions. Thanks.
Sanderluc 11 Posted December 15, 2024 Author Posted December 15, 2024 (edited) 12 hours ago, Luke said: Hi, this already happens on server startup. It could mean that the server is being denied access to delete the files. It was indeed permissions related. Thanks! Problem solved. I have created a bash script that deletes old .TS files from streams that are longer then 1 hour active /not modified. This seems to solve the Live-TV issue that is causing large folders... Is it not possible to set a limit on the .m3u8 size? For example, setting a limit on the number of TS files a .m3u8 can have? If it exceeds this limit, Emby would discard the first segments. Edited December 15, 2024 by Sanderluc 1
Solution Neminem 737 Posted December 16, 2024 Solution Posted December 16, 2024 22 hours ago, Sanderluc said: Is it not possible to set a limit on the .m3u8 size? For example, setting a limit on the number of TS files a .m3u8 can have? If it exceeds this limit, Emby would discard the first segments. Try with this option under advanced in live tv. 1
Sanderluc 11 Posted December 20, 2024 Author Posted December 20, 2024 On 16/12/2024 at 17:33, Neminem said: Try with this option under advanced in live tv. Was on unlimited indeed. Thanks.
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now