Jump to content

Option to clean transcoding-temp folder on boot


Go to solution Solved by Neminem,

Recommended Posts

Posted (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 by Sanderluc
Posted (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 by Sanderluc
Posted
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.

  • Thanks 1
Posted
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.

Posted (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 by Sanderluc
  • Thanks 1
  • Solution
Posted
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.

image.png.fc3be311d5b87ab3003cf02d4bf6c765.png

  • Like 1
Posted
On 16/12/2024 at 17:33, Neminem said:

Try with this option under advanced in live tv.

image.png.fc3be311d5b87ab3003cf02d4bf6c765.png

Was on unlimited indeed. Thanks.

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...