Jump to content

Transcoding temp using entire RAM Drive of 20Gb


Go to solution Solved by EODCrafter,

Recommended Posts

EODCrafter
Posted

I have mentioned this before, but is there any update to limiting the file size for this? @Luke

image.png.26bd37e15556e144e5f1c76a2f54b8ed.png

Posted

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

EODCrafter
Posted (edited)
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
Posted

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.

EODCrafter
Posted
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?

EODCrafter
Posted
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

 

  • Solution
EODCrafter
Posted (edited)

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

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