Bug? Sleeping.Mode

HandBrake for Windows support
Forum rules
An Activity Log is required for support requests. Please read How-to get an activity log? for details on how and why this should be provided.
Post Reply
verbal_666
Posts: 1
Joined: Thu Oct 14, 2021 7:27 am

Bug? Sleeping.Mode

Post by verbal_666 »

Description of problem or question:
When Preferences/Advanced "Prevent the system from sleeping while encoding" is flagged,
when encoding has ended, Windows keeps to stay in wake status and does not reprise sleep mode.

SYSTEM:
[PROCESS] \Device\HarddiskVolume3\Program Files\HandBrake\HandBrake.exe


I can choose to "Quit Handbrake" in Preferences/When Done", as workaround.
But maybe is it a bug, anyway?


Steps to reproduce the problem (If Applicable):
Encode a file.
Wait PC gets sleep by its scheduler.
PC does not sleep anymore, Windows keeps prevent by process,

SYSTEM:
[PROCESS] \Device\HarddiskVolume3\Program Files\HandBrake\HandBrake.exe


HandBrake version (e.g., 1.0.0):
1.4.2


Operating system and version (e.g., Ubuntu 16.04 LTS, macOS 10.13 High Sierra, Windows 10 Creators Update):

W10/64 Build 2004
Microsoft Windows [Versione 10.0.19041.1288]


HandBrake Activity Log ***required*** (see How-to get an activity log)

Code: Select all

HandBrake 1.4.2 (2021100300)
OS: Microsoft Windows NT 10.0.19041.0
CPU: AMD Ryzen 5 2600X Six-Core Processor           
Ram: 16335 MB, 
GPU Information:
  NVIDIA GeForce GTX 1060 3GB - 30.0.14.7212
Screen: 2560x1440
Temp Dir: C:\Users\[MYUSER]\AppData\Local\Temp\
Install Dir: C:\Program Files\HandBrake\
Data Dir: C:\Users\[MYUSER]\AppData\Roaming\HandBrake

-------------------------------------------

[09:24:16] hb_init: starting libhb thread

 # Starting Scan ...

[09:24:16] CPU:
[09:24:16]  - logical processor count: 12
[09:24:16] Intel Quick Sync Video support: no
[09:24:16] hb_scan: path=[[[MY_FILE]]], title_index=0
udfread ERROR: ECMA 167 Volume Recognition failed
src/libbluray/disc/disc.c:333: failed opening UDF image [[[MY_FILE]]]
src/libbluray/disc/disc.c:437: error opening file BDMV\index.bdmv
src/libbluray/disc/disc.c:437: error opening file BDMV\BACKUP\index.bdmv
src/libbluray/bluray.c:2646: nav_get_title_list([[[MY_FILE]]]\) failed
[09:24:17] bd: not a bd - trying as a stream/file instead
libdvdread: DVDOpenFileUDF:UDFFindFile /VIDEO_TS/VIDEO_TS.IFO failed
libdvdnav: vm: vm: failed to read VIDEO_TS.IFO
[09:24:17] dvd: not a dvd - trying as a stream/file instead
Input #0, matroska,webm, from '[[[MY_FILE]]]':
  Metadata:
    encoder         : libebml v1.4.0 + libmatroska v1.6.2
    creation_time   : 2020-11-01T14:21:11.000000Z
  Duration: 00:30:55.95, start: 0.000000, bitrate: 1276 kb/s
  Stream #0:0(ita): Audio: ac3, 44100 Hz, stereo, fltp, 192 kb/s (default)
    Metadata:
      BPS-eng         : 191999
      DURATION-eng    : 00:30:55.948000000
      NUMBER_OF_FRAMES-eng: 53286
      NUMBER_OF_BYTES-eng: 44542746
      _STATISTICS_WRITING_APP-eng: mkvmerge v51.0.0 ('I Wish') 64-bit
      _STATISTICS_WRITING_DATE_UTC-eng: 2020-11-01 14:21:11
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
  Stream #0:1(ita): Subtitle: subrip (default)
    Metadata:
      title           : FORCED
      BPS-eng         : 0
      DURATION-eng    : 00:14:20.569000000
      NUMBER_OF_FRAMES-eng: 2
      NUMBER_OF_BYTES-eng: 51
      _STATISTICS_WRITING_APP-eng: mkvmerge v51.0.0 ('I Wish') 64-bit
      _STATISTICS_WRITING_DATE_UTC-eng: 2020-11-01 14:21:11
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
  Stream #0:2(eng): Video: h264 (High), yuv420p(progressive), 720x360 [SAR 1:1 DAR 2:1], 23.98 fps, 23.98 tbr, 1k tbn, 47.95 tbc (default)
    Metadata:
      BPS-eng         : 1082637
      DURATION-eng    : 00:30:55.938000000
      NUMBER_OF_FRAMES-eng: 44498
      NUMBER_OF_BYTES-eng: 251163454
      _STATISTICS_WRITING_APP-eng: mkvmerge v51.0.0 ('I Wish') 64-bit
      _STATISTICS_WRITING_DATE_UTC-eng: 2020-11-01 14:21:11
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
[09:24:17] scan: decoding previews for title 1
[09:24:17] scan: audio 0x0: ac3, rate=44100Hz, bitrate=192000 italiano (AC3) (2.0 ch) (192 kbps)
[09:24:17] scan: 10 previews, 720x360, 23.976 fps, autocrop = 0/0/0/0, aspect 2.00:1, PAR 1:1, color profile: 6-1-6
[09:24:17] libhb: scan thread found 1 valid title(s)

 # Processing Scan Information ...


 # Scan Finished ...

[09:24:17] decomb: deinterlaced 1 | blended 0 | unfiltered 0 | total 1
[09:24:20] decomb: deinterlaced 1 | blended 0 | unfiltered 0 | total 1

HandBrake 1.4.2 (2021100300)
OS: Microsoft Windows NT 10.0.19041.0
CPU: AMD Ryzen 5 2600X Six-Core Processor           
Ram: 16335 MB, 
GPU Information:
  NVIDIA GeForce GTX 1060 3GB - 30.0.14.7212
Screen: 2560x1440
Temp Dir: C:\Users\[MYUSER]\AppData\Local\Temp\
Install Dir: C:\Program Files\HandBrake\
Data Dir: C:\Users\[MYUSER]\AppData\Roaming\HandBrake

-------------------------------------------


# Starting Encode ...
[09:24:22] base preset: Convertion for Web
Remote Process started with Process ID: 13176 using port: 8037. Max Allowed Instances: 2
Worker: Starting HandBrake Engine ...
Worker: Starting Web Server on port 8037 ...
Worker: Disconnected worker monitoring enabled!
[09:24:23] Compile-time hardening features are enabled
[09:24:23] hb_init: starting libhb thread
[09:24:23] Starting work at: Thu Oct 14 09:24:23 2021
[09:24:23] 1 job(s) to process
[09:24:23] CPU:
[09:24:23]  - logical processor count: 12
[09:24:23] Intel Quick Sync Video support: no
[09:24:23] hb_scan: path=[[[MY_FILE]]], title_index=1
udfread ERROR: ECMA 167 Volume Recognition failed
src/libbluray/disc/disc.c:333: failed opening UDF image [[[MY_FILE]]]
src/libbluray/disc/disc.c:437: error opening file BDMV\index.bdmv
src/libbluray/disc/disc.c:437: error opening file BDMV\BACKUP\index.bdmv
src/libbluray/bluray.c:2646: nav_get_title_list([[[MY_FILE]]]\) failed
[09:24:23] bd: not a bd - trying as a stream/file instead
libdvdread: Encrypted DVD support unavailable.
libdvdread: libdvdread: DVDOpenFileUDF:UDFFindFile /VIDEO_TS/VIDEO_TS.IFO failed
Can't open file VIDEO_TS.IFO.
libdvdnav: vm: vm: failed to read VIDEO_TS.IFO
[09:24:23] dvd: not a dvd - trying as a stream/file instead
Input #0, matroska,webm, from '[[[MY_FILE]]]':
  Metadata:
    encoder         : libebml v1.4.0 + libmatroska v1.6.2
    creation_time   : 2020-11-01T14:21:11.000000Z
  Duration: 00:30:55.95, start: 0.000000, bitrate: 1276 kb/s
  Stream #0:0(ita): Audio: ac3, 44100 Hz, stereo, fltp, 192 kb/s (default)
    Metadata:
      BPS-eng         : 191999
      DURATION-eng    : 00:30:55.948000000
      NUMBER_OF_FRAMES-eng: 53286
      NUMBER_OF_BYTES-eng: 44542746
      _STATISTICS_WRITING_APP-eng: mkvmerge v51.0.0 ('I Wish') 64-bit
      _STATISTICS_WRITING_DATE_UTC-eng: 2020-11-01 14:21:11
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
  Stream #0:1(ita): Subtitle: subrip (default)
    Metadata:
      title           : FORCED
      BPS-eng         : 0
      DURATION-eng    : 00:14:20.569000000
      NUMBER_OF_FRAMES-eng: 2
      NUMBER_OF_BYTES-eng: 51
      _STATISTICS_WRITING_APP-eng: mkvmerge v51.0.0 ('I Wish') 64-bit
      _STATISTICS_WRITING_DATE_UTC-eng: 2020-11-01 14:21:11
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
  Stream #0:2(eng): Video: h264 (High), yuv420p(progressive), 720x360 [SAR 1:1 DAR 2:1], 23.98 fps, 23.98 tbr, 1k tbn, 47.95 tbc (default)
    Metadata:
      BPS-eng         : 1082637
      DURATION-eng    : 00:30:55.938000000
      NUMBER_OF_FRAMES-eng: 44498
      NUMBER_OF_BYTES-eng: 251163454
      _STATISTICS_WRITING_APP-eng: mkvmerge v51.0.0 ('I Wish') 64-bit
      _STATISTICS_WRITING_DATE_UTC-eng: 2020-11-01 14:21:11
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
[09:24:23] scan: decoding previews for title 1
[09:24:23] scan: audio 0x0: ac3, rate=44100Hz, bitrate=192000 italiano (AC3) (2.0 ch) (192 kbps)
[09:24:23] scan: 10 previews, 720x360, 23.976 fps, autocrop = 0/0/0/0, aspect 2.00:1, PAR 1:1, color profile: 6-1-6
[09:24:23] libhb: scan thread found 1 valid title(s)
[09:24:23] Skipping subtitle scan.  No suitable subtitle tracks.
[09:24:23] Starting Task: Encoding Pass
[09:24:23] Skipping crop/scale filter
[09:24:23] work: track 1, dithering not supported by codec
[09:24:23] work: only 1 chapter, disabling chapter markers
[09:24:23] job configuration:
[09:24:23]  * source
[09:24:23]    + [[[MY_FILE]]]
[09:24:23]    + title 1, chapter(s) 1 to 1
[09:24:23]    + container: matroska,webm
[09:24:23]    + data rate: 1276 kbps
[09:24:23]  * destination
[09:24:23]    + D:\Ted.Lasso.1x01.Pilota.iTA.AC3.DLMux.x264-ADE.CreW.mp4
[09:24:23]    + container: MPEG-4 (libavformat)
[09:24:23]      + optimized for HTTP streaming (fast start)
[09:24:23]      + align initial A/V stream timestamps
[09:24:23]  * video track
[09:24:23]    + decoder: h264 8-bit (yuv420p)
[09:24:23]    + filters
[09:24:23]      + Comb Detect (mode=0:spatial-metric=2:motion-thresh=2:spatial-thresh=3:filter-mode=1:block-thresh=80:block-width=16:block-height=16)
[09:24:23]      + Decomb (mode=39)
[09:24:23]      + Framerate Shaper (mode=2:rate=27000000/1080000)
[09:24:23]        + frame rate: 23.976 fps -> peak rate limited to 25.000 fps
[09:24:23]    + Output geometry
[09:24:23]      + storage dimensions: 720 x 360
[09:24:23]      + pixel aspect ratio: 1 : 1
[09:24:23]      + display dimensions: 720 x 360
[09:24:23]    + encoder: H.264 (libx264)
[09:24:23]      + preset:  veryfast
[09:24:23]      + profile: main
[09:24:23]      + level:   3.1
[09:24:23]      + quality: 22.00 (RF)
[09:24:23]      + color profile: 6-1-6
[09:24:23]  * audio track 1
[09:24:23]    + decoder: italiano (AC3) (2.0 ch) (192 kbps) (track 1, id 0x0)
[09:24:23]      + bitrate: 192 kbps, samplerate: 44100 Hz
[09:24:23]    + mixdown: Stereo
[09:24:23]    + encoder: AAC (libavcodec)
[09:24:23]      + bitrate: 160 kbps, samplerate: 44100 Hz
[09:24:23] sync: expecting 44498 video frames
[09:24:23] encx264: min-keyint: 24, keyint: 240
[09:24:23] encx264: encoding at constant RF 22.000000
[09:24:23] encx264: unparsed options: level=3.1:ref=1:8x8dct=0:weightp=1:subme=2:mixed-refs=0:trellis=0:vbv-bufsize=14000:vbv-maxrate=14000:rc-lookahead=10
x264 [info]: using SAR=1/1
x264 [info]: using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX FMA3 BMI2 AVX2
x264 [info]: profile Main, level 3.1, 4:2:0, 8-bit
[09:24:23] sync: first pts video is 0
[09:24:23] sync: "Chapter 1" (1) at frame 1 time 0
[09:24:23] sync: first pts audio 0x0 is 0
[09:25:24] reader: done. 1 scr changes
[09:25:24] work: average encoding speed for job is 724.796509 fps
[09:25:24] comb detect: heavy 277 | light 2714 | uncombed 41507 | total 44498
[09:25:24] decomb: deinterlaced 277 | blended 2714 | unfiltered 41507 | total 44498
[09:25:24] vfr: 44498 frames output, 0 dropped and 0 duped for CFR/PFR
[09:25:24] vfr: lost time: 0 (0 frames)
[09:25:24] vfr: gained time: 0 (0 frames) (0 not accounted for)
[09:25:24] ac3-decoder done: 53286 frames, 0 decoder errors
[09:25:24] h264-decoder done: 44498 frames, 0 decoder errors
[09:25:24] sync: got 44498 frames, 44498 expected
[09:25:24] sync: framerate min 23.976 fps, max 23.976 fps, avg 23.976 fps
x264 [info]: frame I:666   Avg QP:18.19  size: 21585
x264 [info]: frame P:12673 Avg QP:22.13  size:  4204
x264 [info]: frame B:31159 Avg QP:24.28  size:   893
x264 [info]: consecutive B-frames:  2.8% 10.2%  4.4% 82.7%
x264 [info]: mb I  I16..4: 32.1%  0.0% 67.9%
x264 [info]: mb P  I16..4:  7.6%  0.0%  5.5%  P16..4: 27.3% 12.6%  6.6%  0.0%  0.0%    skip:40.4%
x264 [info]: mb B  I16..4:  0.7%  0.0%  0.4%  B16..8: 10.6%  4.0%  0.6%  direct: 3.5%  skip:80.2%  L0:33.7% L1:43.6% BI:22.7%
x264 [info]: coded y,uvDC,uvAC intra: 50.0% 55.2% 21.3% inter: 5.4% 5.5% 0.5%
x264 [info]: i16 v,h,dc,p: 45% 24% 15% 16%
x264 [info]: i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 27% 20% 14%  6%  7%  7%  7%  6%  5%
x264 [info]: i8c dc,h,v,p: 49% 20% 25%  5%
x264 [info]: Weighted P-Frames: Y:1.4% UV:0.7%
x264 [info]: kb/s:411.57
[09:25:25] mux: track 0, 44498 frames, 95457054 bytes, 411.46 kbps, fifo 8192
[09:25:25] mux: track 1, 79930 frames, 37260003 bytes, 160.61 kbps, fifo 16384
[09:25:25] Finished work at: Thu Oct 14 09:25:25 2021
[09:25:25] libhb: work result = 0

# Job Completed!
Post Reply