Jump to content

Transcoding temp using entire RAM Drive of 20Gb


EODCrafter
Go to solution Solved by EODCrafter,

Recommended Posts

EODCrafter
19 minutes ago, Luke said:

Hi, were you watching live TV for a long time?

Yes Sir, Golf tournaments, Football games ect last for hours.....(and they are mostly HD)

Edited by EODCrafter
Link to comment
Share on other sites

EODCrafter
13 hours ago, Luke said:

OK, I don't have an ETA but I have had this topic in mind as something I'd like to get to in the near future.

Is there a batch file i could run every 3 hours or so to delete the file, if so, how?

Link to comment
Share on other sites

EODCrafter
PS C:\Users\Fith> Get-ChildItem -path R:\Temp\transcoding-temp\* | where {$_.CreationTime -lt (date).addminutes(-5)} | remove-item -Force

I think this will work, just need .addminutes to -60 for 1 hour

 

Link to comment
Share on other sites

  • Solution
EODCrafter

Here's the final solution.

Get-ChildItem -path R:\Temp\transcoding-temp\ -Include *.* -File -Recurse | where {$_.CreationTime -lt (date).addminutes(-30)} | remove-item -Force
buffer.ps1

I just use task scheduler to run that every 30 minutes and decreased RAM Drive to 10Gb to free up resources. (Until you incorporate into Emby :) )

Edited by EODCrafter
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...