Occasional Error with Advanced Settings

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

Occasional Error with Advanced Settings

Post by Snaptrap »

Description of problem or question: I sometimes receive an encode error about some sort of conflict.




Steps to reproduce the problem (If Applicable):




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




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.0 (2022122800)
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

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

 # Starting Encode ...

[08:47:17] base preset: UHD MP4 AAC 7.1 (Modified)
[08:47:17] Remote Process started with Process ID: 18736 using port: 8037. Max Allowed Instances: 1
[08:47:17] Worker: Starting HandBrake Engine ...
[08:47:17] Worker: Starting Web Server on port 8037 ...
[08:47:17] Worker: Disconnected worker monitoring enabled!
[08:47:17] Compile-time hardening features are enabled
[08:47:18] qsv: is available on this system
[08:47:18] vcn: not available on this system
[08:47:18] nvenc: version 12.0 is available
[08:47:18] nvdec: is not compiled into this build
[08:47:18] hb_init: starting libhb thread
[08:47:18] Starting work at: Fri Jan 20 08:47:18 2023
[08:47:18] 1 job(s) to process
[08:47:18] json job:
{
  "Audio": {
    "AudioList": [
      {
        "Bitrate": 1536,
        "DRC": 0,
        "Encoder": "av_aac",
        "Gain": 0,
        "Mixdown": 9,
        "NormalizeMixLevel": false,
        "Samplerate": 0,
        "Track": 0,
        "DitherMethod": 0
      }
    ],
    "CopyMask": [
      "copy:aac",
      "copy:ac3",
      "copy:dtshd",
      "copy:dts",
      "copy:mp3",
      "copy:truehd",
      "copy:flac",
      "copy:eac3",
      "copy:mp2"
    ]
  },
  "Destination": {
    "ChapterList": [],
    "ChapterMarkers": false,
    "AlignAVStart": false,
    "File": "D:\\Backup Archive\\Media Files\\Converts\\Annie --1.mp4",
    "Mp4Options": {
      "IpodAtom": false,
      "Mp4Optimize": false
    },
    "Mux": "av_mp4"
  },
  "Filters": {
    "FilterList": [
      {
        "ID": 14,
        "Settings": {
          "crop-bottom": "278",
          "crop-left": "0",
          "crop-right": "0",
          "crop-top": "278",
          "height": "1604",
          "width": "3840"
        }
      },
      {
        "ID": 7,
        "Settings": {
          "mode": "1",
          "rate": "27000000/1126125"
        }
      }
    ]
  },
  "PAR": {
    "Num": 1,
    "Den": 1
  },
  "Metadata": {},
  "SequenceID": 0,
  "Source": {
    "Angle": 1,
    "Range": {
      "Type": "chapter",
      "Start": 1,
      "End": 1
    },
    "Title": 1,
    "Path": "D:\\Backup Archive\\Media Files\\Videos\\Movies\\UHD\\Annie -.mkv"
  },
  "Subtitle": {
    "Search": {
      "Burn": false,
      "Default": false,
      "Enable": false,
      "Forced": false
    },
    "SubtitleList": []
  },
  "Video": {
    "Encoder": "qsv_h265_10bit",
    "Level": "auto",
    "TwoPass": false,
    "Turbo": false,
    "ColorMatrixCode": 0,
    "Options": "target-usage=1:num-ref-frame=16:gop-ref-dist=16:b-pyramid=1:trellis=3:lookahead-depth=40",
    "Preset": "quality",
    "Profile": "auto",
    "Quality": 15,
    "QSV": {
      "Decode": false
    },
    "HardwareDecode": 0
  }
}
[08:47:18] CPU: Intel(R) Core(TM) i9-10900K CPU @ 3.70GHz
[08:47:18]  - Intel microarchitecture Comet Lake
[08:47:18]  - logical processor count: 20
[08:47:18] Intel Quick Sync Video support: yes, gpu list: 1
[08:47:18] Intel Quick Sync Video integrated adapter with index 1
[08:47:18] Impl mfxhw64 library path: C:\Windows\System32\DriverStore\FileRepository\iigd_dch.inf_amd64_b53c057d22ce6f37\libmfxhw64.dll
[08:47:18]  - Intel Media SDK hardware: API 1.35 (minimum: 1.3)
[08:47:18]  - Decode support:  h264 hevc (8bit: yes, 10bit: yes)
[08:47:18]  - H.264 encoder: yes
[08:47:18]     - preferred implementation: hardware (2) via D3D11
[08:47:18]     - capabilities (hardware):  breftype icq+la+i+downs vsinfo chromalocinfo opt1 opt2+mbbrc+extbrc+trellis+repeatpps+ib_adapt+nmpslice
[08:47:18]  - H.265 encoder: yes (8bit: yes, 10bit: yes)
[08:47:18]     - preferred implementation: hardware (2) via D3D11
[08:47:18]     - capabilities (hardware):  bpyramid icq vsinfo masteringinfo cllinfo opt1
[08:47:18]  - AV1 encoder: no
[08:47:18] hb_scan: path=D:\Backup Archive\Media Files\Videos\Movies\UHD\Annie -.mkv, title_index=1
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\Annie -.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
[08:47:18] bd: not a bd - trying as a stream/file instead
libdvdread: Encrypted DVD support unavailable.
libdvdread: Can't open file VIDEO_TS.IFO.
libdvdread: DVDOpenFileUDF:UDFFindFile /VIDEO_TS/VIDEO_TS.IFO failed
libdvdnav: vm: vm: failed to read VIDEO_TS.IFO
[08:47:18] dvd: not a dvd - trying as a stream/file instead
Input #0, matroska,webm, from 'D:\Backup Archive\Media Files\Videos\Movies\UHD\Annie -.mkv':
  Metadata:
    encoder         : libebml v1.4.4 + libmatroska v1.7.1
    creation_time   : 2023-01-16T06:39:58.000000Z
  Duration: 02:07:23.64, start: 0.000000, bitrate: 72142 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             : 68115826
      DURATION        : 02:07:23.636000000
      NUMBER_OF_FRAMES: 183264
      NUMBER_OF_BYTES : 65081573246
      SOURCE_ID       : 001011
      _STATISTICS_WRITING_APP: mkvmerge v73.0.0 ('25 or 6 to 4') 64-bit
      _STATISTICS_WRITING_DATE_UTC: 2023-01-16 06:39:58
      _STATISTICS_TAGS: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES SOURCE_ID
    Side data:
      DOVI configuration record: version: 1.0, profile: 7, level: 6, rpu flag: 1, el flag: 1, bl flag: 1, compatibility id: 6
  Stream #0:1(eng): Audio: truehd, 48000 Hz, 7.1, s32 (24 bit) (default)
    Metadata:
      BPS             : 3957445
      DURATION        : 02:07:23.637000000
      NUMBER_OF_FRAMES: 9172364
      NUMBER_OF_BYTES : 3781159426
      SOURCE_ID       : 001100
      _STATISTICS_WRITING_APP: mkvmerge v73.0.0 ('25 or 6 to 4') 64-bit
      _STATISTICS_WRITING_DATE_UTC: 2023-01-16 06:39:58
      _STATISTICS_TAGS: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES SOURCE_ID
[08:47:18] scan: decoding previews for title 1
[08:47:18] scan: audio 0x1: truehd, rate=48000Hz, bitrate=1 English (TrueHD) (7.1 ch)
[08:47:21] scan: 10 previews, 3840x2160, 23.976 fps, autocrop = 278/278/0/0, aspect 16:9, PAR 1:1, color profile: 9-16-9, chroma location: topleft
[08:47:21] 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
[08:47:21] scan: content light level: max_cll=860, max_fall=105
[08:47:21] scan: supported video decoders: avcodec qsv
[08:47:21] libhb: scan thread found 1 valid title(s)
[08:47:21] qsv: integrated qsv adapter with index 1 has been selected
[08:47:21] Starting Task: Encoding Pass
[08:47:21] work: track 1, dithering not supported by codec
[08:47:21] job configuration:
[08:47:21]  * source
[08:47:21]    + D:\Backup Archive\Media Files\Videos\Movies\UHD\Annie -.mkv
[08:47:21]    + title 1, chapter(s) 1 to 1
[08:47:21]    + container: matroska,webm
[08:47:21]    + data rate: 72142 kbps
[08:47:21]  * destination
[08:47:21]    + D:\Backup Archive\Media Files\Converts\Annie --1.mp4
[08:47:21]    + container: MPEG-4 (libavformat)
[08:47:21]  * video track
[08:47:21]    + decoder: hevc 10-bit (yuv420p10le)
[08:47:21]    + filters
[08:47:21]      + Framerate Shaper (mode=1:rate=27000000/1126125)
[08:47:21]        + frame rate: 23.976 fps -> constant 23.976 fps
[08:47:21]      + Crop and Scale (width=3840:height=1604:crop-top=278:crop-bottom=278:crop-left=0:crop-right=0)
[08:47:21]        + source: 3840 * 2160, crop (278/278/0/0): 3840 * 1604, scale: 3840 * 1604
[08:47:21]      + Format (format=p010le)
[08:47:21]    + Output geometry
[08:47:21]      + storage dimensions: 3840 x 1604
[08:47:21]      + pixel aspect ratio: 1 : 1
[08:47:21]      + display dimensions: 3840 x 1604
[08:47:21]    + encoder: H.265 10-bit (Intel Media SDK)
[08:47:21]      + preset:  quality
[08:47:21]      + options: target-usage=1:num-ref-frame=16:gop-ref-dist=16:b-pyramid=1:trellis=3:lookahead-depth=40
[08:47:21]      + profile: auto
[08:47:21]      + level:   auto
[08:47:21]      + quality: 15.00 (ICQ)
[08:47:21]      + color profile: 9-16-9
[08:47:21]      + chroma location: topleft
[08:47:21]      + 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
[08:47:21]      + content light level: max_cll=860, max_fall=105
[08:47:21]  * audio track 1
[08:47:21]    + decoder: English (TrueHD) (7.1 ch) (track 1, id 0x1)
[08:47:21]      + samplerate: 48000 Hz
[08:47:21]    + mixdown: 7.1 Channels
[08:47:21]    + encoder: AAC (libavcodec)
[08:47:21]      + bitrate: 1536 kbps, samplerate: 48000 Hz
[08:47:21] sync: expecting 183264 video frames
[08:47:21] encqsvInit: hb_qsv_param_parse: unsupported option trellis
[08:47:21] encqsvInit: hb_qsv_param_parse: unsupported option lookahead-depth
[08:47:22] encqsvInit: using encode-only path
[08:47:22] encqsvInit: H.265/HEVC Main 10 profile @ level (null)
[08:47:22] encqsvInit: TargetUsage 1 AsyncDepth 4
[08:47:22] encqsvInit: GopRefDist 16 GopPicSize 32 NumRefFrame 15 IdrInterval 0
[08:47:22] encqsvInit: BFramesMax 15 BRefType pyramid
[08:47:22] encqsvInit: RateControlMethod ICQ ICQQuality 15
[08:47:22] sync: first pts audio 0x1 is 0
[08:47:22] sync: first pts video is 0
[08:47:22] sync: Chapter 1 at frame 1 time 0
[08:47:23] qsv_enc_init: using 'hardware (2) via D3D11' implementation, API: 1.35
Error code -21,	hb_qsv_wait_on_sync	607
encqsv: hb_qsv_wait_on_sync failed (-21)
encqsvWork: qsv_enc_work failed -21
[09:00:32] work: average encoding speed for job is 17.170321 fps
[09:00:32] vfr: 13517 frames output, 0 dropped and 0 duped for CFR/PFR
[09:00:32] vfr: lost time: 0 (0 frames)
[09:00:32] vfr: gained time: 0 (0 frames) (0 not accounted for)
[09:00:32] truehd-decoder done: 680529 frames, 0 decoder errors
[09:00:32] hevc-decoder done: 13570 frames, 0 decoder errors
[09:00:32] sync: got 13533 frames, 183264 expected
[09:00:32] sync: framerate min 23.976 fps, max 23.976 fps, avg 23.976 fps
[09:00:32] mux: track 0, 13481 frames, 2444082447 bytes, 34487.97 kbps, fifo 256
[09:00:32] mux: track 1, 26574 frames, 78032863 bytes, 1101.11 kbps, fifo 512
[09:00:34] Finished work at: Fri Jan 20 09:00:34 2023
[09:00:34] libhb: work result = 4

 # Job Failed (4)


If anyone has suggestions for advanced options, I'd gladly likely to hear them. I want to get the most compression with minimal quality degradation. Thank you!
rollin_eng
Veteran User
Posts: 4683
Joined: Wed May 04, 2011 11:06 pm

Re: Occasional Error with Advanced Settings

Post by rollin_eng »

If you want the best compression with minimal quality loss use software encoder not qsv.
Snaptrap
Posts: 25
Joined: Sat Dec 05, 2009 4:27 am

Re: Occasional Error with Advanced Settings

Post by Snaptrap »

Turns out that I only get the error with these settings when I have encodes in queue.

What advanced settings do you recommend for software encoder? I remember an older version of Handbrake having an advanced tab and the advanced commands that I'm using with QSV were suggested to me.
rollin_eng
Veteran User
Posts: 4683
Joined: Wed May 04, 2011 11:06 pm

Re: Occasional Error with Advanced Settings

Post by rollin_eng »

Just use the built in presets, they pretty much do what you want.
Post Reply