Handbrake 1.6.1 Encodes Causing HDR Monitor Flicker

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
Snaptrap
Posts: 25
Joined: Sat Dec 05, 2009 4:27 am

Handbrake 1.6.1 Encodes Causing HDR Monitor Flicker

Post by Snaptrap »

Description of problem or question: I have an Asus PG43UQ which is customized to specific HDR settings, but ever since I updated from 1.5.1 to 1.6.0, my monitor flickers when opening the latest HB encode using VLC. I checked the file with MediaInfo and I noticed that it contains additional HDR metadata that's not present in my 1.5.1 encodes. This is primarily in regards to the light levels, so I'm assuming that these are somehow overriding or conflicting with my monitor. In fear of causing damage to it, I've reverted to 1.5.1. The update to 1.6.0 is also when my encodes have been occasionally failing. All I have is the log of the last failed attempt.




Steps to reproduce the problem (If Applicable):




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




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




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

Code: Select all

HandBrake 1.6.1 (2023012300)
OS: Microsoft Windows NT 10.0.22621.0
CPU: Intel(R) Core(TM) i9-10900K CPU @ 3.70GHz
Ram: 32129 MB, 
GPU Information:
  Intel(R) UHD Graphics 630 - 31.0.101.2115
  NVIDIA GeForce RTX 3060 - 31.0.15.2802
Screen: 2560x1440
Temp Dir: C:\Users\snapt\AppData\Local\Temp\
Install Dir: D:\Backup Archive\Software\HandBrake\
Data Dir: C:\Users\snapt\AppData\Roaming\HandBrake

-------------------------------------------
[04:43:24] hb_init: starting libhb thread

 # Starting Scan ...

[04:43:24] CPU: Intel(R) Core(TM) i9-10900K CPU @ 3.70GHz
[04:43:24]  - Intel microarchitecture Comet Lake
[04:43:24]  - logical processor count: 20
[04:43:24] Intel Quick Sync Video support: yes, gpu list: 1
[04:43:24] Intel Quick Sync Video integrated adapter with index 1
[04:43:24] Impl mfxhw64 library path: C:\Windows\System32\DriverStore\FileRepository\iigd_dch.inf_amd64_b53c057d22ce6f37\libmfxhw64.dll
[04:43:24]  - Intel Media SDK hardware: API 1.35 (minimum: 1.3)
[04:43:24]  - Decode support:  h264 hevc (8bit: yes, 10bit: yes)
[04:43:24]  - H.264 encoder: yes
[04:43:24]     - preferred implementation: hardware (2) via D3D11
[04:43:24]     - capabilities (hardware):  breftype icq+la+i+downs vsinfo chromalocinfo opt1 opt2+mbbrc+extbrc+trellis+repeatpps+ib_adapt+nmpslice
[04:43:24]  - H.265 encoder: yes (8bit: yes, 10bit: yes)
[04:43:24]     - preferred implementation: hardware (2) via D3D11
[04:43:24]     - capabilities (hardware):  bpyramid icq vsinfo masteringinfo cllinfo opt1
[04:43:24]  - AV1 encoder: no
[04:43:24] hb_scan: path=D:\Backup Archive\Media Files\Videos\Movies\UHD\The Wizard of Oz (C) -.mkv, title_index=0
udfread ERROR: ECMA 167 Volume Recognition failed
src/libbluray/disc/disc.c:333: failed opening UDF image D:\Backup Archive\Media Files\Videos\Movies\UHD\The Wizard of Oz (C) -.mkv
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
[04:43:24] 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
[04:43:24] dvd: not a dvd - trying as a stream/file instead
Input #0, matroska,webm, from 'D:\Backup Archive\Media Files\Videos\Movies\UHD\The Wizard of Oz (C) -.mkv':
  Metadata:
    encoder         : libebml v1.4.2 + libmatroska v1.6.4
    creation_time   : 2022-08-23T21:30:33.000000Z
  Duration: 01:41:45.41, start: 0.000000, bitrate: 67152 kb/s
  Stream #0:0(eng): Video: hevc (Main 10), yuv420p10le(tv, bt2020nc/bt2020/smpte2084), 3840x2160 [SAR 1:1 DAR 16:9], 23.98 fps, 23.98 tbr, 1k tbn
    Metadata:
      BPS             : 63276916
      DURATION        : 01:41:45.391000000
      NUMBER_OF_FRAMES: 146383
      NUMBER_OF_BYTES : 48291289770
      _STATISTICS_WRITING_APP: mkvmerge v66.0.0 ('Josie') 64-bit
      _STATISTICS_WRITING_DATE_UTC: 2022-08-23 21:30:33
      _STATISTICS_TAGS: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
  Stream #0:1(eng): Audio: dts (DTS-HD MA), 48000 Hz, 5.1(side), s32p (24 bit) (default)
    Metadata:
      BPS             : 3678966
      DURATION        : 01:41:45.409000000
      NUMBER_OF_FRAMES: 572382
      NUMBER_OF_BYTES : 2807699172
      _STATISTICS_WRITING_APP: mkvmerge v66.0.0 ('Josie') 64-bit
      _STATISTICS_WRITING_DATE_UTC: 2022-08-23 21:30:33
      _STATISTICS_TAGS: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
  Stream #0:2(eng): Audio: ac3, 48000 Hz, stereo, fltp, 192 kb/s
    Metadata:
      BPS             : 192000
      DURATION        : 01:41:45.408000000
      NUMBER_OF_FRAMES: 190794
      NUMBER_OF_BYTES : 146529792
      _STATISTICS_WRITING_APP: mkvmerge v66.0.0 ('Josie') 64-bit
      _STATISTICS_WRITING_DATE_UTC: 2022-08-23 21:30:33
      _STATISTICS_TAGS: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
[04:43:24] scan: decoding previews for title 1
[04:43:24] scan: audio 0x1: dca, rate=48000Hz, bitrate=1 English (DTS-HD MA) (5.1 ch)
[04:43:24] scan: audio 0x2: ac3, rate=48000Hz, bitrate=192000 English (AC3) (2.0 ch) (192 kbps)
[04:44:01] scan: 60 previews, 3840x2160, 23.976 fps, autocrop = 0/0/440/440, aspect 16:9, PAR 1:1, color profile: 9-16-9, chroma location: topleft
[04:44:01] scan: mastering display metadata: r(0.6800,0.3200) g(0.2650,0.6900) b(0.1500 0.0600) wp(0.3127, 0.3290) min_luminance=0.005000, max_luminance=4000.000000
[04:44:01] scan: content light level: max_cll=2000, max_fall=76
[04:44:01] scan: supported video decoders: avcodec qsv nvdec
[04:44:01] libhb: scan thread found 1 valid title(s)

 # Scan Finished ...

mduell
Veteran User
Posts: 8187
Joined: Sat Apr 21, 2007 8:54 pm

Re: Handbrake 1.6.1 Encodes Causing HDR Monitor Flicker

Post by mduell »

The 1.6.x releases have better support for passing through HDR metadata than 1.5.x did.

Sounds like a buggy player or monitor HDR setup.
Snaptrap
Posts: 25
Joined: Sat Dec 05, 2009 4:27 am

Re: Handbrake 1.6.1 Encodes Causing HDR Monitor Flicker

Post by Snaptrap »

The monitor processes HDR fine with all the older encodes which don't include the extra metadata. I've even encoded one of my movies using the latest version of Handbrake and compared it to an encode of the same movie from a year ago. The older encode plays without the light flicker which also doesn't include the extra metadata. They also look exactly the same in terms of colour and contrast so the extra data doesn't add anything. I've tried looking for a program that can strip the extra data, but I haven't been able to.
User avatar
Ritsuka
HandBrake Team
Posts: 1650
Joined: Fri Jan 12, 2007 11:29 am

Re: Handbrake 1.6.1 Encodes Causing HDR Monitor Flicker

Post by Ritsuka »

Can you provide the encode log too? You posted only the scan part.
Snaptrap
Posts: 25
Joined: Sat Dec 05, 2009 4:27 am

Re: Handbrake 1.6.1 Encodes Causing HDR Monitor Flicker

Post by Snaptrap »

Switching VLC hardware-accelerated decoding to DVXA fixed the flicker. It was on automatic. NVIDIA doesn't seem to like the extra metadata that passes through because this adjustment isn't needed with my iGPU. Still, to avoid future metadata issues, I'll be sticking to HB 1.5.1. The movies I've encoded to date play fine in HDR.
mduell
Veteran User
Posts: 8187
Joined: Sat Apr 21, 2007 8:54 pm

Re: Handbrake 1.6.1 Encodes Causing HDR Monitor Flicker

Post by mduell »

So it's a decoder/player issue and you're going to stick with old HB... mkay.
Post Reply