So, I think I've finally figured out why comskip isn't working all the time. It's because of the windows unattended sleep function. When it wakes up to record NPVR keeps it awake for the duration of the recording but not for when the show is over and comskip is still running. As result, when I check it sometimes the comskip file is not complete and I think comskip is at fault when in fact it is Windows that's causing the problem.
I'm testing a solution that should work, but I would like to ask others how they've dealt with this issue.
I tell it to enter high performance power scheme so that it doesn't go to sleep, wait for comskip to finish, if there's a comskip task still running leave it in high performance but if there's no comskip then bring it back to balanced where it'll go to sleep in 25 minutes.
Here's my parallelprocessing.bat:
cd /d C:\Users\Public\NPVR\Scripts
echo high performance %Date% %TIME% %1 >>logtest.txt
REM high performance
powercfg -setactive 8c5e7fda-e8bf-4a96-9a85-a6e23a8c635c
echo start comskip %Date% %TIME% %1 >>logtest.txt
comskip %1
echo end comskip %Date% %TIME% %1 >>logtest.txt
tasklist /nh /fi "imagename eq comskip.exe" | find /i "comskip.exe"
if errorlevel 0 if not errorlevel 1 goto IsRunning
:exit
echo changing to balanced %Date% %TIME% %1 >>logtest.txt
REM Balanced
powercfg -setactive 381b4222-f694-41f0-9685-ff5bb260df2e
exit
:IsRunning
echo comskip running %Date% %TIME% %1 >>logtest.txt
echo keeping high performance %Date% %TIME% %1 >>logtest.txt
REM high performance
powercfg -setactive 8c5e7fda-e8bf-4a96-9a85-a6e23a8c635c
exit
I'm testing a solution that should work, but I would like to ask others how they've dealt with this issue.
I tell it to enter high performance power scheme so that it doesn't go to sleep, wait for comskip to finish, if there's a comskip task still running leave it in high performance but if there's no comskip then bring it back to balanced where it'll go to sleep in 25 minutes.
Here's my parallelprocessing.bat:
cd /d C:\Users\Public\NPVR\Scripts
echo high performance %Date% %TIME% %1 >>logtest.txt
REM high performance
powercfg -setactive 8c5e7fda-e8bf-4a96-9a85-a6e23a8c635c
echo start comskip %Date% %TIME% %1 >>logtest.txt
comskip %1
echo end comskip %Date% %TIME% %1 >>logtest.txt
tasklist /nh /fi "imagename eq comskip.exe" | find /i "comskip.exe"
if errorlevel 0 if not errorlevel 1 goto IsRunning
:exit
echo changing to balanced %Date% %TIME% %1 >>logtest.txt
REM Balanced
powercfg -setactive 381b4222-f694-41f0-9685-ff5bb260df2e
exit
:IsRunning
echo comskip running %Date% %TIME% %1 >>logtest.txt
echo keeping high performance %Date% %TIME% %1 >>logtest.txt
REM high performance
powercfg -setactive 8c5e7fda-e8bf-4a96-9a85-a6e23a8c635c
exit
E6400, 2 GB RAM ,500 GB + 250 GB HD, PVR150+ Adaptec 3610, RW 2 + HIP, Antec 2480 w/ mini ninja ...still using v 0.99