Crashes on H.265 10-bit (AMD VCE)

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
LKSDRR
Posts: 3
Joined: Mon Mar 27, 2023 7:00 pm

Crashes on H.265 10-bit (AMD VCE)

Post by LKSDRR »

Description of problem or question:
When I want to encode on these settings (H.265 10-bit (AMD VCE)), handbrake aborts the process directly. But this is only with the 10-bit AMD VCE encoder.

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 64 Bit

HandBrake Activity Log ***required***

Code: Select all

HandBrake 1.6.1 (2023012300)
OS: Microsoft Windows NT 10.0.22621.0
CPU: AMD Ryzen 5 2600 Six-Core Processor            
Ram: 16334 MB, 
GPU Information:
  Radeon RX Vega - 31.0.14037.1007
Screen: 1920x1080
Temp Dir: C:\Users\disma\AppData\Local\Temp\
Install Dir: G:\Programme\HandBrake\
Data Dir: C:\Users\disma\AppData\Roaming\HandBrake

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

 # Starting Encode ...

[21:04:53] base preset: Fast 1080p30 (Modified)
[21:04:53] Remote Process started with Process ID: 2844 using port: 8037. Max Allowed Instances: 1
[21:04:54] Worker: Starting HandBrake Engine ...
[21:04:54] Worker: Starting Web Server on port 8037 ...
[21:04:54] Worker: Disconnected worker monitoring enabled!
[21:04:54] Compile-time hardening features are enabled
[21:04:54] qsv: not available on this system
[21:04:54] vcn: is available
Cannot load nvEncodeAPI64.dll
[21:04:54] hb_init: starting libhb thread
[21:04:54] Starting work at: Mon Mar 27 21:04:54 2023
[21:04:54] 1 job(s) to process
[21:04:54] json job:
{
  "Audio": {
    "AudioList": [
      {
        "DRC": 0,
        "Encoder": "copy:dts",
        "Gain": 0,
        "Mixdown": -1,
        "NormalizeMixLevel": false,
        "Samplerate": 0,
        "Name": "Deutsch DTS 5.1",
        "Track": 1,
        "DitherMethod": 0
      },
      {
        "DRC": 0,
        "Encoder": "copy:truehd",
        "Gain": 0,
        "Mixdown": -1,
        "NormalizeMixLevel": false,
        "Samplerate": 48000,
        "Name": "Englisch TrueHD 7.1",
        "Track": 0,
        "DitherMethod": 0
      }
    ],
    "CopyMask": [
      "copy:aac"
    ]
  },
  "Destination": {
    "ChapterList": [
      {
        "Name": "Chapter 1"
      },
      {
        "Name": "Chapter 2"
      },
      {
        "Name": "Chapter 3"
      },
      {
        "Name": "Chapter 4"
      },
      {
        "Name": "Chapter 5"
      },
      {
        "Name": "Chapter 6"
      },
      {
        "Name": "Chapter 7"
      },
      {
        "Name": "Chapter 8"
      },
      {
        "Name": "Chapter 9"
      },
      {
        "Name": "Chapter 10"
      },
      {
        "Name": "Chapter 11"
      },
      {
        "Name": "Chapter 12"
      },
      {
        "Name": "Chapter 13"
      },
      {
        "Name": "Chapter 14"
      },
      {
        "Name": "Chapter 15"
      },
      {
        "Name": "Chapter 16"
      },
      {
        "Name": "Chapter 17"
      },
      {
        "Name": "Chapter 18"
      },
      {
        "Name": "Chapter 19"
      },
      {
        "Name": "Chapter 20"
      },
      {
        "Name": "Chapter 21"
      },
      {
        "Name": "Chapter 22"
      },
      {
        "Name": "Chapter 23"
      },
      {
        "Name": "Chapter 24"
      },
      {
        "Name": "Chapter 25"
      },
      {
        "Name": "Chapter 26"
      },
      {
        "Name": "Chapter 27"
      },
      {
        "Name": "Chapter 28"
      },
      {
        "Name": "Chapter 29"
      },
      {
        "Name": "Chapter 30"
      },
      {
        "Name": "Chapter 31"
      },
      {
        "Name": "Chapter 32"
      },
      {
        "Name": "Chapter 33"
      },
      {
        "Name": "Chapter 34"
      },
      {
        "Name": "Chapter 35"
      },
      {
        "Name": "Chapter 36"
      }
    ],
    "ChapterMarkers": true,
    "AlignAVStart": false,
    "File": "E:\\Filme Neu\\Fertige Filme f\u00FCr NAS\\Alita- Battle Angel 4K DTS 5.1.mkv",
    "Mp4Options": {
      "IpodAtom": false,
      "Mp4Optimize": false
    },
    "Mux": "av_mkv"
  },
  "Filters": {
    "FilterList": [
      {
        "ID": 14,
        "Settings": {
          "crop-bottom": "276",
          "crop-left": "0",
          "crop-right": "0",
          "crop-top": "276",
          "height": "1608",
          "width": "3840"
        }
      },
      {
        "ID": 7,
        "Settings": {
          "mode": "1"
        }
      }
    ]
  },
  "PAR": {
    "Num": 1,
    "Den": 1
  },
  "Metadata": {
    "Name": "Alita: Battle Angel"
  },
  "SequenceID": 0,
  "Source": {
    "Angle": 1,
    "Range": {
      "Type": "chapter",
      "Start": 1,
      "End": 36
    },
    "Title": 1,
    "Path": "E:\\Filme Neu\\Alita- Battle Angel-FPL_MainFeature_t08.mkv"
  },
  "Subtitle": {
    "Search": {
      "Burn": false,
      "Default": false,
      "Enable": false,
      "Forced": false
    },
    "SubtitleList": [
      {
        "Burn": false,
        "Default": false,
        "Forced": false,
        "ID": 1,
        "Offset": 0,
        "Track": 0
      },
      {
        "Burn": false,
        "Default": false,
        "Forced": false,
        "ID": 2,
        "Offset": 0,
        "Track": 1
      }
    ]
  },
  "Video": {
    "Encoder": "vce_h265_10bit",
    "Level": "auto",
    "TwoPass": false,
    "Turbo": false,
    "ColorMatrixCode": 0,
    "Options": "",
    "Preset": "quality",
    "Profile": "main10",
    "Quality": 18,
    "QSV": {
      "Decode": false
    },
    "HardwareDecode": 0
  }
}
[21:04:54] CPU:
[21:04:54]  - logical processor count: 12
[21:04:54] Intel Quick Sync Video support: no
[21:04:54] hb_scan: path=E:\Filme Neu\Alita- Battle Angel-FPL_MainFeature_t08.mkv, title_index=1
udfread ERROR: ECMA 167 Volume Recognition failed
src/libbluray/disc/disc.c:333: failed opening UDF image E:\Filme Neu\Alita- Battle Angel-FPL_MainFeature_t08.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
[21:04:54] bd: not a bd - trying as a stream/file instead
libdvdread: Encrypted DVD support unavailable.
libdvdrealibdvdread: DVDOpenFileUDF:UDFFindFile /VIDEO_TS/VIDEO_TS.IFO failed
d: Can't open file VIDEO_TS.IFO.
libdvdnav: vm: vm: failed to read VIDEO_TS.IFO
[21:04:55] dvd: not a dvd - trying as a stream/file instead
Input #0, matroska,webm, from 'E:\Filme Neu\Alita- Battle Angel-FPL_MainFeature_t08.mkv':
  Metadata:
    title           : Alita: Battle Angel
    encoder         : libmakemkv v1.17.3 (1.3.10/1.5.2) win(x64-release)
    creation_time   : 2023-03-23T17:27:45.000000Z
  Duration: 02:01:57.31, start: 0.000000, bitrate: 49379 kb/s
  Chapters:
    Chapter #0:0: start 0.000000, end 208.708500
      Metadata:
        title           : Chapter 01
    Chapter #0:1: start 208.708500, end 471.679542
      Metadata:
        title           : Chapter 02
    Chapter #0:2: start 471.679542, end 607.648708
      Metadata:
        title           : Chapter 03
    Chapter #0:3: start 607.648708, end 786.702583
      Metadata:
        title           : Chapter 04
    Chapter #0:4: start 786.702583, end 906.488917
      Metadata:
        title           : Chapter 05
    Chapter #0:5: start 906.488917, end 1084.541792
      Metadata:
        title           : Chapter 06
    Chapter #0:6: start 1084.541792, end 1378.585542
      Metadata:
        title           : Chapter 07
    Chapter #0:7: start 1378.585542, end 1535.325458
      Metadata:
        title           : Chapter 08
    Chapter #0:8: start 1535.325458, end 1900.899000
      Metadata:
        title           : Chapter 09
    Chapter #0:9: start 1900.899000, end 2009.215542
      Metadata:
        title           : Chapter 10
    Chapter #0:10: start 2009.215542, end 2192.607083
      Metadata:
        title           : Chapter 11
    Chapter #0:11: start 2192.607083, end 2310.808500
      Metadata:
        title           : Chapter 12
    Chapter #0:12: start 2310.808500, end 2525.481292
      Metadata:
        title           : Chapter 13
    Chapter #0:13: start 2525.481292, end 2757.963542
      Metadata:
        title           : Chapter 14
    Chapter #0:14: start 2757.963542, end 2911.199958
      Metadata:
        title           : Chapter 15
    Chapter #0:15: start 2911.199958, end 3177.382542
      Metadata:
        title           : Chapter 16
    Chapter #0:16: start 3177.382542, end 3314.227583
      Metadata:
        title           : Chapter 17
    Chapter #0:17: start 3314.227583, end 3639.594292
      Metadata:
        title           : Chapter 18
    Chapter #0:18: start 3639.594292, end 3776.564458
      Metadata:
        title           : Chapter 19
    Chapter #0:19: start 3776.564458, end 3916.621042
      Metadata:
        title           : Chapter 20
    Chapter #0:20: start 3916.621042, end 4250.496250
      Metadata:
        title           : Chapter 21
    Chapter #0:21: start 4250.496250, end 4417.204458
      Metadata:
        title           : Chapter 22
    Chapter #0:22: start 4417.204458, end 4594.965375
      Metadata:
        title           : Chapter 23
    Chapter #0:23: start 4594.965375, end 4731.935542
      Metadata:
        title           : Chapter 24
    Chapter #0:24: start 4731.935542, end 4968.088125
      Metadata:
        title           : Chapter 25
    Chapter #0:25: start 4968.088125, end 5095.340250
      Metadata:
        title           : Chapter 26
    Chapter #0:26: start 5095.340250, end 5305.216583
      Metadata:
        title           : Chapter 27
    Chapter #0:27: start 5305.216583, end 5598.551292
      Metadata:
        title           : Chapter 28
    Chapter #0:28: start 5598.551292, end 5768.554458
      Metadata:
        title           : Chapter 29
    Chapter #0:29: start 5768.554458, end 6114.358250
      Metadata:
        title           : Chapter 30
    Chapter #0:30: start 6114.358250, end 6323.442125
      Metadata:
        title           : Chapter 31
    Chapter #0:31: start 6323.442125, end 6496.490000
      Metadata:
        title           : Chapter 32
    Chapter #0:32: start 6496.490000, end 6703.613583
      Metadata:
        title           : Chapter 33
    Chapter #0:33: start 6703.613583, end 6883.668458
      Metadata:
        title           : Chapter 34
    Chapter #0:34: start 6883.668458, end 7011.504500
      Metadata:
        title           : Chapter 35
    Chapter #0:35: start 7011.504500, end 7317.310000
      Metadata:
        title           : Chapter 36
  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-eng         : 43498761
      DURATION-eng    : 02:01:57.310000000
      NUMBER_OF_FRAMES-eng: 175440
      NUMBER_OF_BYTES-eng: 39786740189
      SOURCE_ID-eng   : 001011
      _STATISTICS_WRITING_APP-eng: MakeMKV v1.17.3 win(x64-release)
      _STATISTICS_WRITING_DATE_UTC-eng: 2023-03-23 17:27:45
      _STATISTICS_TAGS-eng: 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:
      title           : Surround 7.1
      BPS-eng         : 5044848
      DURATION-eng    : 02:01:57.310000000
      NUMBER_OF_FRAMES-eng: 8780772
      NUMBER_OF_BYTES-eng: 4614340022
      SOURCE_ID-eng   : 001100
      _STATISTICS_WRITING_APP-eng: MakeMKV v1.17.3 win(x64-release)
      _STATISTICS_WRITING_DATE_UTC-eng: 2023-03-23 17:27:45
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES SOURCE_ID
  Stream #0:2(deu): Audio: dts (DTS), 48000 Hz, 5.1(side), fltp, 768 kb/s
    Metadata:
      title           : Surround 5.1
      BPS-eng         : 768000
      DURATION-eng    : 02:01:57.322666666
      NUMBER_OF_FRAMES-eng: 685999
      NUMBER_OF_BYTES-eng: 702462976
      SOURCE_ID-eng   : 001106
      _STATISTICS_WRITING_APP-eng: MakeMKV v1.17.3 win(x64-release)
      _STATISTICS_WRITING_DATE_UTC-eng: 2023-03-23 17:27:45
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES SOURCE_ID
  Stream #0:3(eng): Subtitle: hdmv_pgs_subtitle, 1920x1080
    Metadata:
      BPS-eng         : 30624
      DURATION-eng    : 01:58:28.830895833
      NUMBER_OF_FRAMES-eng: 3180
      NUMBER_OF_BYTES-eng: 27212879
      SOURCE_ID-eng   : 0012A0
      _STATISTICS_WRITING_APP-eng: MakeMKV v1.17.3 win(x64-release)
      _STATISTICS_WRITING_DATE_UTC-eng: 2023-03-23 17:27:45
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES SOURCE_ID
  Stream #0:4(deu): Subtitle: hdmv_pgs_subtitle
    Metadata:
      BPS-eng         : 24733
      DURATION-eng    : 02:01:21.586812500
      NUMBER_OF_FRAMES-eng: 2488
      NUMBER_OF_BYTES-eng: 22512202
      SOURCE_ID-eng   : 0012A7
      _STATISTICS_WRITING_APP-eng: MakeMKV v1.17.3 win(x64-release)
      _STATISTICS_WRITING_DATE_UTC-eng: 2023-03-23 17:27:45
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES SOURCE_ID
[21:04:55] scan: decoding previews for title 1
[21:04:55] scan: audio 0x1: truehd, rate=48000Hz, bitrate=1 English (TrueHD) (7.1 ch)
[21:04:55] scan: audio 0x2: dca, rate=48000Hz, bitrate=768000 Deutsch (DTS) (5.1 ch) (768 kbps)
[21:04:57] scan: 10 previews, 3840x2160, 23.976 fps, autocrop = 276/276/0/0, aspect 16:9, PAR 1:1, color profile: 9-16-9, chroma location: topleft
[21:04:57] 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.000100, max_luminance=1000.000000
[21:04:57] scan: content light level: max_cll=737, max_fall=130
[21:04:57] libhb: scan thread found 1 valid title(s)
[21:04:57] Starting Task: Encoding Pass
[21:04:57] job configuration:
[21:04:57]  * source
[21:04:57]    + E:\Filme Neu\Alita- Battle Angel-FPL_MainFeature_t08.mkv
[21:04:57]    + title 1, chapter(s) 1 to 36
[21:04:57]    + container: matroska,webm
[21:04:57]    + data rate: 49379 kbps
[21:04:57]  * destination
[21:04:57]    + E:\Filme Neu\Fertige Filme f?r NAS\Alita- Battle Angel 4K DTS 5.1.mkv
[21:04:57]    + container: Matroska (libavformat)
[21:04:57]      + chapter markers
[21:04:57]  * video track
[21:04:57]    + decoder: hevc 10-bit (yuv420p10le)
[21:04:57]    + filters
[21:04:57]      + Framerate Shaper (mode=1)
[21:04:57]        + frame rate: 23.976 fps -> constant 23.976 fps
[21:04:57]      + Crop and Scale (width=3840:height=1608:crop-top=276:crop-bottom=276:crop-left=0:crop-right=0)
[21:04:57]        + source: 3840 * 2160, crop (276/276/0/0): 3840 * 1608, scale: 3840 * 1608
[21:04:57]      + Format (format=p010le)
[21:04:57]    + Output geometry
[21:04:57]      + storage dimensions: 3840 x 1608
[21:04:57]      + pixel aspect ratio: 1 : 1
[21:04:57]      + display dimensions: 3840 x 1608
[21:04:57]    + encoder: H.265 10-bit (AMD VCE)
[21:04:57]      + preset:  quality
[21:04:57]      + profile: main10
[21:04:57]      + level:   auto
[21:04:57]      + quality: 18.00 (CQ)
[21:04:57]      + color profile: 9-16-9
[21:04:57]      + chroma location: topleft
[21:04:57]      + 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.000100, max_luminance=1000.000000
[21:04:57]      + content light level: max_cll=737, max_fall=130
[21:04:57]  * subtitle track 1, English [PGS] (track 0, id 0x3, Picture) -> Passthrough
[21:04:57]  * subtitle track 2, Deutsch [PGS] (track 1, id 0x4, Picture) -> Passthrough
[21:04:57]  * audio track 1
[21:04:57]    + name: Deutsch DTS 5.1
[21:04:57]    + decoder: Deutsch (DTS) (5.1 ch) (768 kbps) (track 2, id 0x2)
[21:04:57]      + bitrate: 768 kbps, samplerate: 48000 Hz
[21:04:57]    + DTS Passthru
[21:04:57]  * audio track 2
[21:04:57]    + name: Englisch TrueHD 7.1
[21:04:57]    + decoder: English (TrueHD) (7.1 ch) (track 1, id 0x1)
[21:04:57]      + samplerate: 48000 Hz
[21:04:57]    + TrueHD Passthru
[21:04:57] sync: expecting 175440 video frames
[21:04:57] encavcodecInit: H.265 (AMD VCE)
[21:04:57] encavcodec: encoding at constant quality 18
[21:04:57] encavcodec: QP (I)      0-33
[21:04:57] encavcodec: QP (P)      0-35
[21:04:57] encavcodec: GOP Size    47
[21:04:57] encavcodec: Max Rate    62470
[21:04:57] encavcodec: Buffer Size 40618
[21:04:57] encavcodec: Max AU Size 10154
[21:04:57] encavcodec: encoding with stored aspect 1/1
[hevc_amf @ 0000019dd5cac7c0] encoder->Init() failed with error 1
[21:04:57] encavcodecInit: avcodec_open failed
Failure to initialise thread 'FFMPEG encoder (libavcodec)'
[21:04:57] vfr: 0 frames output, 0 dropped and 0 duped for CFR/PFR
[21:04:57] vfr: lost time: 0 (0 frames)
[21:04:57] vfr: gained time: 0 (0 frames) (0 not accounted for)
[21:04:57] dca-decoder done: 0 frames, 0 decoder errors
[21:04:57] truehd-decoder done: 0 frames, 0 decoder errors
[21:04:57] hevc-decoder done: 0 frames, 0 decoder errors
[21:04:57] sync: got 0 frames, 175440 expected
[21:04:58] Finished work at: Mon Mar 27 21:04:58 2023
[21:04:58] libhb: work result = 3

 # Job Failed to Initialise. Check log and input settings (3)

Thanks in advance
Last edited by Anonymous on Mon Mar 27, 2023 7:55 pm, edited 1 time in total.
Reason: [code]Log contents here[/code]
Deleted User 11865

Re: Crashes on H.265 10-bit (AMD VCE)

Post by Deleted User 11865 »

I think a Vega card is too old for HEVC 10-bit, you need something RDNA-based (RX 5000 or newer). I suspect HandBrake simply does not have the ability to detect this and mistakenly presents the 10-bit encoder as available when it actually isn't.
LKSDRR
Posts: 3
Joined: Mon Mar 27, 2023 7:00 pm

Re: Crashes on H.265 10-bit (AMD VCE)

Post by LKSDRR »

Oh okay, thanks. One more thing I noticed, when I have the foreign language selection in, it codes the first operation but not the second. Can this then also have to do with the GPU?
Deleted User 11865

Re: Crashes on H.265 10-bit (AMD VCE)

Post by Deleted User 11865 »

The first pass when Foreign Audio Search is enabled is a subtitle scan pass, no video encoding takes place, hence why it doesn't fail right away.
LKSDRR
Posts: 3
Joined: Mon Mar 27, 2023 7:00 pm

Re: Crashes on H.265 10-bit (AMD VCE)

Post by LKSDRR »

Ah okay I understand. Thanks for help.
Post Reply