NextPVR Forums
  • ______
  • Home
  • New Posts
  • Wiki
  • Members
  • Help
  • Search
  • Register
  • Login
  • Home
  • Wiki
  • Members
  • Help
  • Search
NextPVR Forums Public NextPVR Support Legacy (v4.x and earlier) v
« Previous 1 … 383 384 385 386 387 … 433 Next »
PC to standby during PostProcessing

PC to standby during PostProcessing
Nistrod
Offline

Member

Posts: 243
Threads: 45
Joined: Jul 2010
#1
2011-01-28, 07:37 AM
NPVR has code to keep the PC awake while recording, right?
Does this code also keep it awake when running PostProcessing.bat?
I do a conversion to .mpg, which can take a while, and I noticed the PC was asleep in the middle.

Any chance of keeping the PC awake until post processing completes?
[SIZE="1"]NPVR 2.6.2;Windows 7 Enterprise SP1;i5 750; 8GB mem;Geforce 210;Winfast DTV100 S, Winfast DTV Dongle Gold; 2 x Winfast DTV2000DS
[/SIZE]
martint123
Offline

Posting Freak

UK, East Yorkshire
Posts: 4,658
Threads: 208
Joined: Nov 2005
#2
2011-01-28, 12:42 PM
You could have two power schemes (I have "gbpvr" and "always on") and switch to one or the other with powercfg at the start and end of the batch file ??
pBS
Offline

Posting Freak

Posts: 4,829
Threads: 182
Joined: Aug 2005
#3
2011-01-28, 11:58 PM
run this beginning of script:
powercfg -change -standby-timeout-ac 0 [changes sleep timeout to never..]
and this at end of script:
powercfg -change -standby-timeout-ac 15 [changes it to 15 mins...edit that to be your preferred timeout till sleep mode]
Hardware: HDHR Prime, HDPVR 1212, Raspberry pi2, VFD display w/LCDSmartie
mvallevand
Online

Posting Freak

Ontario Canada
Posts: 52,792
Threads: 954
Joined: May 2006
#4
2011-01-29, 12:08 AM
Logically I think this is something that NPVR must control otherwise when there are simultaneous recordings a short recording could turn power management back on.

Martin
pBS
Offline

Posting Freak

Posts: 4,829
Threads: 182
Joined: Aug 2005
#5
2011-01-29, 01:33 AM (This post was last modified: 2011-01-29, 04:25 AM by pBS.)
true...not good to do things that take long time in postproc..
better to just write filename to a que and process independently..i do that for comskip so only 1 runs at a time..[comskip on h264 is painfully slow and cpu intense]
so w/only 1 process to do all files, powercfg will work fine..

hmmm, instead try this for postprocessing.bat:
Code:
powercfg -change -standby-timeout-ac 0

[your code]

tasklist /FI "IMAGENAME eq ffmpeg.exe" 2>NUL | find /I /N "ffmpeg.exe">NUL
if not "%ERRORLEVEL%"=="0"  powercfg -change -standby-timeout-ac 15
rem checks if ffmpeg.exe running and only runs sleep if it isn't...
if you use something other than ffmpeg.exe then replace ffmpeg.exe with your exe...[could also just use cmd.exe]
that should work in your existing postproc script..it makes sure it doesn't turn on sleep mode if another ffmpeg is still running..
Big Grin

p.s. haven't tested in 7 but the tasklist is still there so it should...let me know..
Hardware: HDHR Prime, HDPVR 1212, Raspberry pi2, VFD display w/LCDSmartie
martint123
Offline

Posting Freak

UK, East Yorkshire
Posts: 4,658
Threads: 208
Joined: Nov 2005
#6
2011-01-29, 04:22 PM
I suppose in theory it could be argued that the software running in postprocessing should keep the system awake ??
Reddwarf
Offline

Posting Freak

Posts: 6,629
Threads: 230
Joined: Mar 2007
#7
2011-01-29, 04:45 PM
martint123 Wrote:I suppose in theory it could be argued that the software running in postprocessing should keep the system awake ??

It doesn't seem to work that way, some input (keyboard, mouse etc) seem to be required.

"I'd rather have a bottle in front of me than a frontal lobotomy"
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)



Possibly Related Threads…
Thread Author Replies Views Last Post
  postprocessing batch to escape special characters donbrew 3 1,687 2019-11-06, 11:29 PM
Last Post: JavaWiz
  PostProcessing.bat not executing MiyoshiSaki 13 4,541 2019-09-03, 10:36 PM
Last Post: sub
  PostProcessing and PostCancel.bat being triggered but not working antenna 4 1,771 2018-08-05, 07:40 PM
Last Post: antenna
  NextPVR enters standby wake cycle repeatedly shortly after Windows reboot PapaJay 2 1,776 2017-11-30, 08:17 PM
Last Post: gEd
  Recordings Keep Getting Cut Off (standby) hansolo77 6 1,757 2017-08-25, 03:19 PM
Last Post: hansolo77
  PostProcessing.bat doesn't run wscrivens 23 7,639 2016-04-08, 06:30 PM
Last Post: Handy.Man
  Show CMD window while executing PostProcessing.bat uspino 6 2,778 2015-12-08, 11:41 PM
Last Post: mvallevand
  Havng trouble using VideoRedo in Batch (Postprocessing.bat) ????? puck64 0 1,452 2015-11-14, 10:39 AM
Last Post: puck64
  PostProcessing failing Quaraxkad 22 7,033 2015-10-19, 10:43 AM
Last Post: puck64
  PostProcessing.bat not run on Recording Cancel arrmo 9 2,562 2015-08-10, 01:31 PM
Last Post: arrmo

  • View a Printable Version
  • Subscribe to this thread
Forum Jump:

© Designed by D&D, modified by NextPVR - Powered by MyBB

Linear Mode
Threaded Mode