Anime4000 / IFME

Powerful x265 GUI Encoder
https://x265.github.io/
GNU General Public License v2.0
241 stars 54 forks source link

Hibernate/sleep does not work on Windows 10 64bit if the conversion job is paused #117

Closed slrslr closed 4 years ago

slrslr commented 7 years ago

Hello,

when i am encoding multiple files in IFME and want to pause encoding, there is pause button, but on my Windows 10 Home 64bit i can not sleep/hibernate my computer when it is paused. The computer start sleeping when i stop the job instead of pausing. But stopping the job makes little mess because i need to worry where i ended and if IFME will replace, reencode file that was last interupted right?

Thx

Anime4000 commented 7 years ago

way I wrote code to pause encoding, I ask Win32 API to HALT ffmpeg.exe and x265.exe. it should work by putting computer on sleep or hibernate

slrslr commented 7 years ago

In my case when i pause IFME i see the x265 process in the Process Explorer: https://s30.postimg.org/6vpvzajrl/x265-08.jpg and computer is not put into sleep. shows just black screen , when i move mouse, i see login prompt.

Anime4000 commented 7 years ago

It should sleep if computer in idle, not sure now Win32 API handle suspended process that cause auto sleep not work