2012-12-29, 03:43 PM
I've had a recurring issue of NPVR not cleaning up temporary files when streaming to client - I've tested it out and determined that it's definitely happening only when streaming to the client and not when watching on the server itself.
Most of the temp files left show up in Windows Explorer as being 6 minutes and 40 seconds in length, and this issue seems to occur only with a subset of channels coming from my HDHR devices. It's not really an issue, per se, except for a couple of times when my C: drive has entirely filled, causing the server to hang. I've written a script to stop the recording service, delete the live-*.ts files in the temp dir and restart the service, every day at 2:05 AM, but this is somewhat of a hackish solution and of course disrupts any live TV watching or recording during that time.
Logs attached.
Code:
C:\tv_temp>dir
Volume in drive C is Windows 7
Volume Serial Number is D064-2BFD
Directory of C:\tv_temp
12/29/2012 09:36 AM <DIR> .
12/29/2012 09:36 AM <DIR> ..
12/29/2012 09:25 AM 703,484,720 live-KARE-HD-5029-7.ts
12/29/2012 09:31 AM 730,232,232 live-KARE-HD-5029-8.ts
12/29/2012 09:36 AM 447,161,384 live-KARE-HD-5029-9.ts
3 File(s) 1,880,878,336 bytes
2 Dir(s) 208,577,212,416 bytes free
C:\tv_temp>
Most of the temp files left show up in Windows Explorer as being 6 minutes and 40 seconds in length, and this issue seems to occur only with a subset of channels coming from my HDHR devices. It's not really an issue, per se, except for a couple of times when my C: drive has entirely filled, causing the server to hang. I've written a script to stop the recording service, delete the live-*.ts files in the temp dir and restart the service, every day at 2:05 AM, but this is somewhat of a hackish solution and of course disrupts any live TV watching or recording during that time.
Logs attached.