Jump to content

how often is transcoding-temp cleaned ?


andyblac644

Recommended Posts

andyblac644

as the title how often is the folder cleaned, just I have 11gb in it atm.

 

5a53976c2550d_5a538d114a6f8_ScreenShot20
 

Edited by Happy2Play
remove url
Link to comment
Share on other sites

When the files are no longer needed.

 

Is someone actively watching something like Live TV?

 

A few hours of that could easily be that size.

 

If not, you can re-start the server and it will clean it out.

Link to comment
Share on other sites

andyblac644

When the files are no longer needed.

 

Is someone actively watching something like Live TV?

 

A few hours of that could easily be that size.

 

If not, you can re-start the server and it will clean it out.

 

 

files go back several days?

 

5a539d3bb51f3_ScreenShot20180108at163154

Link to comment
Share on other sites

andyblac644

It's cleaned when playback stops

 

not here, most of those where from AppleTV that not been used all day today.

Link to comment
Share on other sites

Are you using a reverse proxy or other advanced network routing in your setup?

 

Several of the issues you have been reporting sound like they are related to network communications being interrupted.

 

These files still being there are a symptom of the server not being properly notified that playback finished - and your dashboard reporting issue looks that way too.

Link to comment
Share on other sites

andyblac644

Are you using a reverse proxy or other advanced network routing in your setup?

 

Several of the issues you have been reporting sound like they are related to network communications being interrupted.

 

These files still being there are a symptom of the server not being properly notified that playback finished - and your dashboard reporting issue looks that way too.

 

 

I do have VLAN for my CCTV, Smart devices, but  main lan is in one subnet.

Edited by andyblac644
Link to comment
Share on other sites

can we look at an example of a playback session where the files got left behind, along with the corresponding emby server log? thanks.

Link to comment
Share on other sites

This is very interesting:

2018-01-08 22:35:51.601 Info HttpServer: HTTP Response 204 to REDACTED. Time: 2ms. http://REDACTED:8096/emby/Sessions/Playing/Progress 
2018-01-08 22:36:37.764 Info HttpServer: HTTP GET http://REDACTED:8096/emby/system/info/public?format=json. UserAgent: Roku/DVP-8.1 (298.01E04042A)
2018-01-08 22:36:37.765 Info HttpServer: HTTP Response 200 to REDACTED. Time: 1ms. http://REDACTED:8096/emby/system/info/public?format=json 
2018-01-08 22:36:38.158 Info HttpServer: HTTP GET http://REDACTED:8096/emby/system/info?format=json. UserAgent: Roku/DVP-8.1 (298.01E04042A)
2018-01-08 22:36:38.178 Info HttpServer: HTTP Response 200 to REDACTED. Time: 20ms. http://REDACTED:8096/emby/system/info?format=json 
2018-01-08 22:36:38.757 Info HttpServer: HTTP GET http://REDACTED:8096/emby/Users/f1af3a9554ff415b88568f4ae6824c53. UserAgent: Roku/DVP-8.1 (298.01E04042A)
2018-01-08 22:36:38.759 Info HttpServer: HTTP Response 200 to REDACTED. Time: 1ms. http://REDACTED:8096/emby/Users/f1af3a9554ff415b88568f4ae6824c53 
2018-01-08 22:36:39.256 Info HttpServer: HTTP POST http://REDACTED:8096/emby/Sessions/Capabilities/Full. UserAgent: Roku/DVP-8.1 (298.01E04042A)
2018-01-08 22:36:39.315 Info HttpServer: HTTP Response 204 to REDACTED. Time: 58ms. http://REDACTED:8096/emby/Sessions/Capabilities/Full 

It looks like the app re-started during playback (or perhaps at the very end of the first movie).

 

Do you know if maybe she hit the Roku "Home" button during the credits and then re-opened the app?

Link to comment
Share on other sites

Scott D

This is very interesting:

2018-01-08 22:35:51.601 Info HttpServer: HTTP Response 204 to REDACTED. Time: 2ms. http://REDACTED:8096/emby/Sessions/Playing/Progress 
2018-01-08 22:36:37.764 Info HttpServer: HTTP GET http://REDACTED:8096/emby/system/info/public?format=json. UserAgent: Roku/DVP-8.1 (298.01E04042A)
2018-01-08 22:36:37.765 Info HttpServer: HTTP Response 200 to REDACTED. Time: 1ms. http://REDACTED:8096/emby/system/info/public?format=json 
2018-01-08 22:36:38.158 Info HttpServer: HTTP GET http://REDACTED:8096/emby/system/info?format=json. UserAgent: Roku/DVP-8.1 (298.01E04042A)
2018-01-08 22:36:38.178 Info HttpServer: HTTP Response 200 to REDACTED. Time: 20ms. http://REDACTED:8096/emby/system/info?format=json 
2018-01-08 22:36:38.757 Info HttpServer: HTTP GET http://REDACTED:8096/emby/Users/f1af3a9554ff415b88568f4ae6824c53. UserAgent: Roku/DVP-8.1 (298.01E04042A)
2018-01-08 22:36:38.759 Info HttpServer: HTTP Response 200 to REDACTED. Time: 1ms. http://REDACTED:8096/emby/Users/f1af3a9554ff415b88568f4ae6824c53 
2018-01-08 22:36:39.256 Info HttpServer: HTTP POST http://REDACTED:8096/emby/Sessions/Capabilities/Full. UserAgent: Roku/DVP-8.1 (298.01E04042A)
2018-01-08 22:36:39.315 Info HttpServer: HTTP Response 204 to REDACTED. Time: 58ms. http://REDACTED:8096/emby/Sessions/Capabilities/Full 

It looks like the app re-started during playback (or perhaps at the very end of the first movie).

 

Do you know if maybe she hit the Roku "Home" button during the credits and then re-opened the app?

 

I cannot say how she got from one movie to another.  But I have similar results almost daily.  I have been restarting my server on a daily basis for quite some time.  This always clears the cache.

 

I will try a few tests on my end so I can report back.

Link to comment
Share on other sites

I cannot say how she got from one movie to another.  But I have similar results almost daily.  I have been restarting my server on a daily basis for quite some time.  This always clears the cache.

 

I will try a few tests on my end so I can report back.

 

I can reproduce this scenario by hitting the home button during playback.  I'll see how the app can properly handle that and get a beta out for you to test.  Thx.

Link to comment
Share on other sites

Oh, my... it appears based on my research that there is absolutely no notification to the app when the user exits via the "Home" button.

 

My initial testing appears to confirm that research.

Link to comment
Share on other sites

andyblac644

Oh, my... it appears based on my research that there is absolutely no notification to the app when the user exits via the "Home" button.

 

My initial testing appears to confirm that research.

 

 

could you add a schedule in the server to prune the folder for files that are older than 1 day ?

Link to comment
Share on other sites

  • 8 months later...
twiggy2cents

Has this been addressed?  I have the same issue.  If it hasnt been addressed yet would a cron job to clear it be acceptable until it gets fixed?

Link to comment
Share on other sites

Has this been addressed?  I have the same issue.  If it hasnt been addressed yet would a cron job to clear it be acceptable until it gets fixed?

 

Hi @@twiggy2cents, can we please go over an example? Please attach the information requested in how to report a problem. thanks !

Link to comment
Share on other sites

Hi guys,

 

I am having the same issue, my transcoding-temp folder has almost 4.000 files and 27GB. This has happened a few times now and as soon as I restart the server the folder will be cleaned.

 

I do not really know when this happens or what causes this but it seems to me that when I am playing a remuxed file on my FTVS and just shutdown my TV before closing the stream the client doesn't seem to communicate to the server that the remux has stopped and therefore it the server keeps those files.

 

If I close the stream first and then shutdown my TV the files seem to get cleaned on the server.

 

Does this make sense? If so, I could try to reproduce and provide logs.

Edited by neik
Link to comment
Share on other sites

Happy2Play

Hi guys,

 

I am having the same issue, my transcoding-temp folder has almost 4.000 files and 27GB. This has happened a few times now and as soon as I restart the server the folder will be cleaned.

 

I do not really know when this happens or what causes this but it seems to me that when I am playing a remuxed file on my FTVS and just shutdown my TV before closing the stream the client doesn't seem to communicate to the server that the remux has stopped and therefore it the server keeps those files.

 

If I close the stream first and then shutdown my TV the files seem to get cleaned on the server.

 

Does this make sense? If so, I could try to reproduce and provide logs.

 

That is the normal operation.  If the stream isn't stopped properly the server doesn't receive the commands to clean them up.

Link to comment
Share on other sites

That's what I supposed.

For me this isn't an issue at all as a I have a bit of free space but for those with little space available it can become a problem.

 

My thoughts on this:

 

Why aren't the streams marked with a timestamp and 24 hours deleted if there are still files in the transcoding folder? The probability is very high that those files aren't been used 24 hours after the stream was opened.

Link to comment
Share on other sites

twiggy2cents

Normal is one thing right is another. I think it needs some sort of purge timer which goes back to my question, would it be alright to set a cron job to clear those files? Or would it be better to schedule a server restart?

Link to comment
Share on other sites

Happy2Play

Normal is one thing right is another. I think it needs some sort of purge timer which goes back to my question, would it be alright to set a cron job to clear those files? Or would it be better to schedule a server restart?

 

Either will work.  Restarting the server already cleans things up.  It would be whichever one works best for you.

Link to comment
Share on other sites

Normal is one thing right is another. I think it needs some sort of purge timer which goes back to my question, would it be alright to set a cron job to clear those files? Or would it be better to schedule a server restart?

 

Reading this let me think that I was overthinking this, I guess.

A scheduled restart is a nice and clean way to get rid of the these temp files.

Link to comment
Share on other sites

Turn on the "Runaway Playback Prevention" option in the playback settings in the Fire TV app.

Link to comment
Share on other sites

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