rudco 4 Posted February 12, 2018 Share Posted February 12, 2018 Greetings, I'm a new user to Emby, been having problems where the "transcoding-temp" folder fills up and I run out of disk space, and I have to recycle the Emby server and manually delete all the ".TS" files in that folder. 1) I shutdown the Emby server on Windows 7 machine. 2) I deleted ALL transcoding-temp files: "C:\Users\RudCo\AppData\Roaming\Emby-Server\programdata\transcoding-temp\*.*" 3) I restarted the Emby server on the Windows 7 machine. 4) I watched two or three or four episodes of a show from my network storage. 5) The next morning there are 1,398 files in that "transcoding-temp" folder, totaling over 7 GB. Is this normal? Last week I realized there was 40 GB of files in there, had to stop and delete and restart everything. I am attaching all the log files from last evening through now that are in the "logs" directory. Thanks, Ed Rudman edwardrudman@cox.net server-63653990399.txt server-63653958707.txt ffmpeg-remux-fa946715-77f3-4682-a662-19c84fff5fef.txt ffmpeg-remux-de6a3853-c77c-4ab4-9302-96eb726f5aa6.txt ffmpeg-remux-d9b0b653-afa2-40e1-b9fe-770fa8e9d692.txt ffmpeg-remux-4e4f2675-c0cf-4253-83da-9f15ab5555af.txt Link to comment Share on other sites More sharing options...
nicox 2 Posted February 12, 2018 Share Posted February 12, 2018 Do you use embycon with Kodi ? If so, see this. https://emby.media/community/index.php?/topic/55843-transcoding-temp-folder-not-purged/&do=findComment&comment=543810 Link to comment Share on other sites More sharing options...
Erik 120 Posted February 12, 2018 Share Posted February 12, 2018 This thread has more examples of this problem as well. https://emby.media/community/index.php?/topic/51705-transcoding-clean-up/?fromsearch=1 Link to comment Share on other sites More sharing options...
rudco 4 Posted February 12, 2018 Author Share Posted February 12, 2018 Should have mentioned, I am using Emby via a newer Roku box attached to my television, all hard-wired in to my network router. Link to comment Share on other sites More sharing options...
Erik 120 Posted February 12, 2018 Share Posted February 12, 2018 @@rudco I am also using multiple roku ultra devices. Do you by chance exit playback by just pressing the home screen sometimes (not back button)? 1 Link to comment Share on other sites More sharing options...
ebr 14960 Posted February 12, 2018 Share Posted February 12, 2018 @@rudco I am also using multiple roku ultra devices. Do you by chance exit playback by just pressing the home screen sometimes (not back button)? Good question because that definitely is a problem with the Roku device. It does not notify the app that that is happening. It just kills it. Link to comment Share on other sites More sharing options...
rudco 4 Posted February 12, 2018 Author Share Posted February 12, 2018 Yes, yes. Mostly I am "binge-watching" old television shows as background while I work at home. So I rarely exit out a normal way, but more often I "pause" the show wherever I am, and then come back to it later. So I assume that this is my problem, and to correct things I might do something like create a ".bat" file which deletes the files, and then maybe schedule that batch file to run each early morning via Windows scheduler or something? Link to comment Share on other sites More sharing options...
Erik 120 Posted February 12, 2018 Share Posted February 12, 2018 (edited) If you use ther server restart plugin (I don't know if @@Luke has removed it yet). Then the server cleans up all those files on a restart (I run it every night automatically). It's a temporary fix, but it works until the Emby team get a better solution to this problem. Edited February 12, 2018 by Erik Link to comment Share on other sites More sharing options...
ebr 14960 Posted February 12, 2018 Share Posted February 12, 2018 Yes, yes. Mostly I am "binge-watching" old television shows as background while I work at home. So I rarely exit out a normal way, but more often I "pause" the show wherever I am, and then come back to it later. So I assume that this is my problem, and to correct things I might do something like create a ".bat" file which deletes the files, and then maybe schedule that batch file to run each early morning via Windows scheduler or something? Just hit the back button instead. You will end up with focus on a resume button that will take you right back where you were. Link to comment Share on other sites More sharing options...
Dizzy49 94 Posted February 13, 2018 Share Posted February 13, 2018 I've had similar issues using Emby Theater. My wife watches a lot of live TV, and when she is done for the night she just hits the "Off" button on the remote which turns everything off and puts the computer into sleep mode. I think similar to your issue, the server is not getting a good "exit" signal and doesn't delete the files. About once every other week I get a notice from my server that my drive is nearly full and I have to delete a couple hundred gig of files (or restart the server and it cleans it up itself). I think some additional checks need to be put into place to prevent this from happening, or at the least to clean up the files without having to wait until the drive is full or restart the server. Ideally, the Emby server should run 24/7 only needing restarted for updates. Link to comment Share on other sites More sharing options...
mastrmind11 717 Posted February 13, 2018 Share Posted February 13, 2018 I thought this was fixed w/ the "Are you still watching" enhancement from a version or 2 ago? Link to comment Share on other sites More sharing options...
Erik 120 Posted February 13, 2018 Share Posted February 13, 2018 (edited) I figure that if emby knows to delete these files on a restart. Can it not have a scheduled task or something that checks for these not in use files and removes them periodically. I get that the roku is peticulary susceptible to this...and the back button is a better way to exit, but try telling young kids that! Edited February 13, 2018 by Erik Link to comment Share on other sites More sharing options...
ebr 14960 Posted February 13, 2018 Share Posted February 13, 2018 I thought this was fixed w/ the "Are you still watching" enhancement from a version or 2 ago? If the app/machine is just shut down, no logic in the app can solve it. The server needs to be able to detect the situation and clean up. It is detecting the situation that can be particularly tricky. If we just put a blind time-out on it, then we have people who like to pause their streams for hours pop in and say "hey, you cut off my stream" . We have to pick some sort of proper compromise. Link to comment Share on other sites More sharing options...
mastrmind11 717 Posted February 13, 2018 Share Posted February 13, 2018 If the app/machine is just shut down, no logic in the app can solve it. The server needs to be able to detect the situation and clean up. It is detecting the situation that can be particularly tricky. If we just put a blind time-out on it, then we have people who like to pause their streams for hours pop in and say "hey, you cut off my stream" . We have to pick some sort of proper compromise. Ok, so are you saying that if my wife just turns off the tv w/ a live stream running, it'll run forever still or this enhancement will properly handle that kind of scenario? Link to comment Share on other sites More sharing options...
Happy2Play 8365 Posted February 13, 2018 Share Posted February 13, 2018 Ok, so are you saying that if my wife just turns off the tv w/ a live stream running, it'll run forever still or this enhancement will properly handle that kind of scenario? "Are you still watching" applies to that scenario and would stop the stream properly. Link to comment Share on other sites More sharing options...
ebr 14960 Posted February 13, 2018 Share Posted February 13, 2018 Ok, so are you saying that if my wife just turns off the tv w/ a live stream running, it'll run forever still or this enhancement will properly handle that kind of scenario? Which enhancement? If only the TV turns off and the app is still running, and you have enabled the run away playback prevention feature, then it should get stopped in time. However, in Dizzy's case above, when he hits the power button his machine is shut down so the app is no longer running. The issue has to be attacked on a couple fronts. 1) the app, if it knows it is being put to sleep, can stop the stream and 2) the server needs to refine its handling of figuring out when a stream has been "abandoned". For the Roku, specifically, when you hit the "home" button the app is not notified in any way it is just terminated so the server logic would need to handle this. 1 Link to comment Share on other sites More sharing options...
ebr 14960 Posted March 20, 2018 Share Posted March 20, 2018 Can any of you that have this problem specifically from using the Roku and stopping playback by hitting the Home button, please test that scenario with the current Roku beta app? Thanks. 1 Link to comment Share on other sites More sharing options...
acmullen 0 Posted April 25, 2018 Share Posted April 25, 2018 Can any of you that have this problem specifically from using the Roku and stopping playback by hitting the Home button, please test that scenario with the current Roku beta app? Thanks. Testing it now, are there any steps to reliably reproduce it? Otherwise I'll just wait and see if my stream stops because my disk filled up again, which happens pretty often. As an alternative/additional solution, can we add an option to limit the size of the temp folder and automatically trim the files if it goes over? Link to comment Share on other sites More sharing options...
acmullen 0 Posted April 26, 2018 Share Posted April 26, 2018 The beta seems to have fixed any issues with exiting via the home button, the server correctly detects the video as paused. I noticed another issue though, which is that when an episode ends naturally and the next one plays automatically, the transcoded files for the first episode never get cleared. I think this bug was responsible for most of the junk file build-up for me at least, so transcoding-temp still ends up filling my disk. Link to comment Share on other sites More sharing options...
Luke 37276 Posted April 26, 2018 Share Posted April 26, 2018 using which Emby app for playback? Link to comment Share on other sites More sharing options...
acmullen 0 Posted April 26, 2018 Share Posted April 26, 2018 using which Emby app for playback? Roku, the one ebr linked above Link to comment Share on other sites More sharing options...
Luke 37276 Posted April 26, 2018 Share Posted April 26, 2018 Ok, we'll see what @@ebr thinks about that. Thanks ! 1 Link to comment Share on other sites More sharing options...
ebr 14960 Posted April 26, 2018 Share Posted April 26, 2018 Can you please play items back to back and then send a log from the app? Instructions below. Thanks. How to Report a Problem Link to comment Share on other sites More sharing options...
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