Page 1 of 1

Radeon Hardware Encoding (AMD VCE) does not work

Posted: Fri Nov 20, 2020 6:59 pm
by MaxMoleman
Description of problem or question:
I had an RXVega56 which died lately. There I could use the AMD VCE option for HEVC without a problem.
Now I bought an new Radeon RX5700XT and it won't run anymore with VCE



Steps to reproduce the problem (If Applicable):
use any video file and try to encode with AMD VCE option either x264 or x265



HandBrake version (e.g., 1.0.0):

Ver 1.3.3


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

Win 7x64 / Server 2008 R2


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

Code: Select all

HandBrake 1.3.3 (2020061300)
OS: Microsoft Windows NT 6.1.7601 Service Pack 1
CPU: AMD Ryzen Threadripper 1950X 16-Core Processor 
Ram: 65432 MB, 
GPU Information:
  AMD Radeon RX 5700 XT - 27.20.14501.18003
Screen: 1920x1080
Temp Dir: C:\Users\Administrator\AppData\Local\Temp\
Install Dir: C:\Program Files\Handbrake
Data Dir: C:\Users\Administrator\AppData\Roaming\HandBrake

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


# Starting Encode ...

[08:00:21] base preset: Fast 1080p30 (Modified)
[20:00:21] hb_init: starting libhb thread
[20:00:21] Starting work at: Fri Nov 20 20:00:21 2020
[20:00:21] 1 job(s) to process
[20:00:21] json job:
{
  "Audio": {
    "AudioList": [],
    "CopyMask": [
      "copy:aac",
      "copy:ac3",
      "copy:dtshd",
      "copy:dts",
      "copy:eac3",
      "copy:flac",
      "copy:mp3",
      "copy:truehd"
    ],
    "FallbackEncoder": "ac3"
  },
  "Destination": {
    "ChapterList": [],
    "ChapterMarkers": false,
    "AlignAVStart": true,
    "File": "G:\\Imprint-1.mp4",
    "Mp4Options": {
      "IpodAtom": false,
      "Mp4Optimize": false
    },
    "Mux": "av_mp4"
  },
  "Filters": {
    "FilterList": [
      {
        "ID": 4,
        "Settings": {
          "mode": "7"
        }
      },
      {
        "ID": 3,
        "Settings": {
          "block-height": "16",
          "block-thresh": "40",
          "block-width": "16",
          "filter-mode": "2",
          "mode": "3",
          "motion-thresh": "1",
          "spatial-metric": "2",
          "spatial-thresh": "1"
        }
      },
      {
        "ID": 12,
        "Settings": {
          "crop-bottom": "0",
          "crop-left": "0",
          "crop-right": "0",
          "crop-top": "0",
          "height": "1080",
          "width": "1916"
        }
      },
      {
        "ID": 6,
        "Settings": {
          "mode": "2",
          "rate": "27000000/900000"
        }
      }
    ]
  },
  "PAR": {
    "Num": 480,
    "Den": 479
  },
  "Metadata": {},
  "SequenceID": 0,
  "Source": {
    "Angle": 1,
    "Range": {
      "Type": "chapter",
      "Start": 1,
      "End": 1
    },
    "Title": 1,
    "Path": "Y:\\Imprint.m2ts"
  },
  "Subtitle": {
    "Search": {
      "Burn": false,
      "Default": false,
      "Enable": false,
      "Forced": false
    },
    "SubtitleList": []
  },
  "Video": {
    "Encoder": "vce_h265",
    "Level": "auto",
    "TwoPass": false,
    "Turbo": false,
    "ColorMatrixCode": 0,
    "Options": "",
    "Preset": "balanced",
    "Profile": "main",
    "Quality": 22.0,
    "QSV": {
      "Decode": false,
      "AsyncDepth": 0
    }
  }
}
[20:00:21] CPU:
[20:00:21]  - logical processor count: 32
[20:00:21] Intel Quick Sync Video support: no
[20:00:21] hb_scan: path=Y:\Imprint.m2ts, title_index=1
udfread ERROR: ECMA 167 Volume Recognition failed
src/libbluray/disc/disc.c:323: failed opening UDF image Y:\Imprint.m2ts
src/libbluray/disc/disc.c:424: error opening file BDMV\index.bdmv
src/libbluray/disc/disc.c:424: error opening file BDMV\BACKUP\index.bdmv
src/libbluray/bluray.c:2585: nav_get_title_list(Y:\Imprint.m2ts\) failed
[20:00:21] bd: not a bd - trying as a stream/file instead
libdvdnav: Using dvdnav version 6.0.1
libdvdread: Encrypted DVD support unavailable.
libdvdread:DVDOpenFileUDF:UDFFindFile /VIDEO_TS/VIDEO_TS.IFO failed
libdvdread:DVDOpenFileUDF:UDFFindFile /VIDEO_TS/VIDEO_TS.BUP failed
libdvdread: Can't open file VIDEO_TS.IFO.
libdvdnav: vm: failed to read VIDEO_TS.IFO
[20:00:21] dvd: not a dvd - trying as a stream/file instead
[20:00:21] file is MPEG Transport Stream with 192 byte packets offset 4 bytes
[20:00:21] Found the following PIDS
[20:00:21]     Video PIDS :
[20:00:21]       0x1011 type H.264 (0x1b)
[20:00:21]     Audio PIDS :
[20:00:21]       0x1100 type DTS-HD MA (0x86)
[20:00:21]       0x1101 type DTS-HD MA (0x86)
[20:00:21]     Subtitle PIDS :
[20:00:21]     Other PIDS :
[20:00:21]       0x1001 type Unknown (0xff) (PCR)
[20:00:21] stream id 0x1100 (type 0x86 substream 0x71) audio 0x711100
[20:00:21] stream id 0x1100 (type 0x86 substream 0x0) audio 0x1100
[20:00:21] stream id 0x1101 (type 0x86 substream 0x71) audio 0x711101
[20:00:21] stream id 0x1101 (type 0x86 substream 0x0) audio 0x1101
[20:00:21] scan: decoding previews for title 1
[20:00:21] file is MPEG Transport Stream with 192 byte packets offset 4 bytes
[20:00:21] scan: audio 0x711100: dca, rate=48000Hz, bitrate=1536000 Unknown (DTS) (5.1 ch) (1536 kbps)
[20:00:21] scan: audio 0x1100: dca, rate=48000Hz, bitrate=1 Unknown (DTS-HD MA) (5.1 ch)
[20:00:21] scan: audio 0x711101: dca, rate=48000Hz, bitrate=1536000 Unknown (DTS) (5.1 ch) (1536 kbps)
[20:00:21] scan: audio 0x1101: dca, rate=48000Hz, bitrate=1 Unknown (DTS-HD MA) (5.1 ch)
[20:00:22] stream: 26 good frames, 0 errors (0%)
[20:00:22] scan: 10 previews, 1920x1080, 24.000 fps, autocrop = 0/0/2/2, aspect 16:9, PAR 1:1
[20:00:22] scan: supported video decoders: avcodec qsv
[20:00:22] libhb: scan thread found 1 valid title(s)
[20:00:22] Starting Task: Encoding Pass
[20:00:22] job configuration:
[20:00:22]  * source
[20:00:22]    + Y:\Imprint.m2ts
[20:00:22]    + title 1, chapter(s) 1 to 1
[20:00:22]  * destination
[20:00:22]    + G:\Imprint-1.mp4
[20:00:22]    + container: MPEG-4 (libavformat)
[20:00:22]      + align initial A/V stream timestamps
[20:00:22]  * video track
[20:00:22]    + decoder: h264
[20:00:22]      + bitrate 200 kbps
[20:00:22]    + filters
[20:00:22]      + Comb Detect (mode=3:spatial-metric=2:motion-thresh=1:spatial-thresh=1:filter-mode=2:block-thresh=40:block-width=16:block-height=16)
[20:00:22]      + Decomb (mode=39)
[20:00:22]      + Framerate Shaper (mode=2:rate=27000000/900000)
[20:00:22]        + frame rate: 24.000 fps -> peak rate limited to 30.000 fps
[20:00:22]      + Crop and Scale (width=1916:height=1080:crop-top=0:crop-bottom=0:crop-left=0:crop-right=0)
[20:00:22]        + source: 1920 * 1080, crop (0/0/0/0): 1920 * 1080, scale: 1916 * 1080
[20:00:22]    + Output geometry
[20:00:22]      + storage dimensions: 1916 x 1080
[20:00:22]      + pixel aspect ratio: 480 : 479
[20:00:22]      + display dimensions: 1920 x 1080
[20:00:22]    + encoder: H.265 (AMD VCE)
[20:00:22]      + preset:  balanced
[20:00:22]      + profile: main
[20:00:22]      + level:   auto
[20:00:22]      + quality: 22.00 (QP)
[20:00:22]      + color profile: 1-1-1
[20:00:22] file is MPEG Transport Stream with 192 byte packets offset 4 bytes
[20:00:22] sync: expecting 91951 video frames
[20:00:22] encavcodecInit: H.265 (AMD VCE)
[20:00:22] encavcodec: encoding at QP 22.00
[20:00:22] encavcodec: encoding with stored aspect 480/479
[hevc_amf @ 000000001e00ebc0] GetProperty(AMF_VIDEO_ENCODER_EXTRADATA) failed with error 1
[20:00:22] encavcodecInit: avcodec_open failed
Failure to initialise thread 'FFMPEG encoder (libavcodec)'
[20:00:22] comb detect: heavy 0 | light 0 | uncombed 0 | total 0
[20:00:22] decomb: deinterlaced 0 | blended 0 | unfiltered 0 | total 0
[20:00:22] vfr: 0 frames output, 0 dropped and 0 duped for CFR/PFR
[20:00:22] vfr: lost time: 0 (0 frames)
[20:00:22] vfr: gained time: 0 (0 frames) (0 not accounted for)
[20:00:22] h264-decoder done: 0 frames, 0 decoder errors
[20:00:22] sync: got 0 frames, 91951 expected
[20:00:22] Finished work at: Fri Nov 20 20:00:22 2020
[20:00:22] libhb: work result = 3

# Encode Completed ...

Re: Radeon Hardware Encoding (AMD VCE) does not work

Posted: Fri Nov 20, 2020 7:05 pm
by s55
Yup, Windows 7 is a no-go for VCE on the 5700XT at present. We consider Windows 7 deprecated so it's not something that will be looked into. We've had reports already that the issue goes away when upgrading to windows 10 so it's in all likelihood a driver issue.

Re: Radeon Hardware Encoding (AMD VCE) does not work

Posted: Fri Nov 20, 2020 9:10 pm
by MaxMoleman
Are these problems also present under linux?
And are these problems also known with a standard RX5700?

Re: Radeon Hardware Encoding (AMD VCE) does not work

Posted: Fri Nov 20, 2020 9:19 pm
by MaxMoleman
Are these problems also known with Windows 8 ?

Re: Radeon Hardware Encoding (AMD VCE) does not work

Posted: Fri Nov 20, 2020 9:27 pm
by s55
Unknown I'm afraid. We've only had reports recently of this particular error on windows 7. If you do try 8, please let us know one way or the other.

I'd wager if 1 navi card is affected, they all will be.

VCE is enabled on linux in HandBrake but with very limited support as no-one working on HandBrake has a AMD card in a linux box at present.

Re: Radeon Hardware Encoding (AMD VCE) does not work

Posted: Fri Nov 20, 2020 9:47 pm
by MaxMoleman
Well 8 does not work unfortunately because it is not supported by AMD. Linux I'm testing.

Re: Radeon Hardware Encoding (AMD VCE) does not work

Posted: Thu Nov 26, 2020 7:46 pm
by sirloyne
I wish I had read this. I could have saved myself some time. I bought an RX 5600 XT that I'm returning, and I'm also running Windows 7 x64. However, I couldn't even run handbrake after installing the new card. I'm wondering now if the problem is that I needed to update my motherboard bios? I'm curious how you got yours to run and mine wouldn't.

Re: Radeon Hardware Encoding (AMD VCE) does not work

Posted: Thu Nov 26, 2020 8:17 pm
by s55
@sirloyne -> this isn't actually the same issue as you are having. You'd likely also run into this after fixing your first issue though which is that the VCE hardware encoders don't work on Windows 7. All the software encoders still operate normally.