Jump to content

Transcoding-temp file


Recommended Posts

westmichigansc
Posted

I have been using Emby Server/Theater on my roku tv for the last 3 years, powered by a desktop PC.  I am getting ready to move my windows install from my HDD to a SSD which is much smaller.  I want to clean up before I transfer over.

So in cleaning I found that there is a huge file in my emby program folder  C:\Users\westm\AppData\Roaming\Emby-Server\programdata\transcoding-temp, to the tune of 145GB.  This is just one single file in the folder.  It is a .ts file.  Is it ok to delete this file?  Why did this happen?  I am curious if there is a setting in the dashboard that would control this.

If I can delete this file I should have no problem cloning everything over to the SSD.

Thanks in advance 

Posted

If the date on the file is not current, then it is safe to delete.  

It may have been part of a long running recording or something that was not deleted/purged properly.

Emby usually cleans this temp directory periodically, and certainly after an emby restart.

 

westmichigansc
Posted

It’s dated today and it seems to be continuously changing in size. It’s the only file in the folder.  

Happy2Play
Posted

Sounds like a runaway livetv session.  But it sounds like you may want to move the transcode-temp folder to a custom location also.

I would ensure Emby is shutdown and delete the file and do whatever cloning you plan to do.

westmichigansc
Posted

I moved it to another location and deleted the folder from the original drive.  So it's good to go for cloning.  It seems like the live TV sessions are not stopping and I have 2 roku's on the server.  Is there any way to control this?  It accumulated over 20GB since I cleared it out last night.

Posted

I believe if the Roku live TV sessions are ended without properly 'stopping the session', then emby will continue to provide a (transcoded) stream for it.  

I don't have a Roku so I'm not 100% familiar with the device, but this is what I have read in the past but I'm sure a Roku user will be along shortly to confirm or deny this .. 😉

Posted

On Roku make sure to back out of the Live TV session to manually stop the viewing.

Most apps have a setting "Enable 'Are You Still Watching?" in the playback settings which is useful to be enabled as well.

westmichigansc
Posted

Ok this makes sense now.  Most of the Roku users in the house just hit home in the middle of the live tv and either switch to different apps or shut it off.  I usually use emby on the computer instead of emby on roku if I watch, but that's just me.  

Knowing this now I will just need to keep up on deleting the files out of the new temp location.  I don't see their behavior changing as they are not computer people.  At least it's not on the main drive anymore..

Posted

We are looking into improving this. Thanks for the feedback.

  • 2 weeks later...
Posted (edited)

Just wanted to share that this happened recently to me. I ended up with a 15hr 800+GB TS file in my transcoding-temp directory even though I have a cleanup script that runs every (early) morning. Unfortunately the file was locked by Emby so the script couldn't touch it. We have TCL Roku TVs and I'm sure people aren't exiting out properly.

I think I will re-enable the 4 hr Roku app timeout but I look forward to the improvements to handling temp TS files that were mentioned in this thread and others. I don' t necessarily mind some extra space being used, but routine files that are even remotely this large on an SSD are a little troubling from a TBW perspective.

Edited by lastwraith
Posted (edited)

There is also a "Bandwidth Saver" on the Roku. Press Home twice on your Roku remote. Look under Settings > Network > Bandwidth Saver and turn it ON. This will exit and forcibly terminate any application streaming (and kill the streams and yes it works with Emby transcoding) if the remote has not been used in 4 hours. This is a Roku setting so will work on all your Roku apps. We also have the setting within Emby on Roku which will end streams after 5 hours. Some sports games run longer than 4 hours so we chose 5 hours. Using both of these should solve your problem. If the Roku fails to terminate the stream after 4 hours then Emby will stop the stream at 5 hours. A backup plan if you will. That should stop that nonsense because Emby will see the Roku stop streaming and clean up one minute after that point.

Note: Roku has officially banned any application sending any keypress from within the application to itself. This was done to prevent applications from breaking the Bandwidth Saver functionality. Emby is fully compliant with this new Roku change.

Edited by speechles
  • Like 1

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...