HB unable to encode with AMD VCE codec

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
Imcaam
Posts: 4
Joined: Mon Nov 16, 2020 10:12 pm

HB unable to encode with AMD VCE codec

Post by Imcaam »

Description of problem or question:

Cant get HB to encode via H.264 VCE or H.265 VCE codecs. It fails no matter the rest of the settings. Activity log gives pretty much the same info for both codecs


Steps to reproduce the problem (If Applicable):

Just process any video file to either of the above mentioned codecs


HandBrake version (e.g., 1.0.0):

HB 1.3.3


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

Windows 7 ultimate, 64 bit.
i5 4690k
rx 5700
8 GB RAM

HandBrake Activity Log ***required*** (see How-to get an activity log)
HandBrake 1.3.3 (2020061300)
OS: Microsoft Windows NT 6.1.7601 Service Pack 1
CPU: Intel(R) Core(TM) i5-4690K CPU @ 3.50GHz
Ram: 8135 MB,
GPU Information:
AMD Radeon RX 5700 - 27.20.12033.1007
Screen: 1920x1080
Temp Dir: C:\Users\Camilo\AppData\Local\Temp\
Install Dir: C:\Program Files\HandBrake
Data Dir: C:\Users\Camilo\AppData\Roaming\HandBrake

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


# Starting Encode ...

[07:16:16] base preset: Fast 1080p30 (Modified)
[19:16:16] hb_init: starting libhb thread
[19:16:16] Starting work at: Mon Nov 16 19:16:16 2020
[19:16:16] 1 job(s) to process
[19:16:16] json job:
{
"Audio": {
"AudioList": [
{
"Bitrate": 160,
"DRC": 0.0,
"Encoder": "av_aac",
"Gain": 0.0,
"Mixdown": 4,
"NormalizeMixLevel": false,
"Samplerate": 0,
"Track": 0,
"DitherMethod": 0
}
],
"CopyMask": [
"copy:aac",
"copy:ac3",
"copy:dtshd",
"copy:dts",
"copy:eac3",
"copy:flac",
"copy:mp3",
"copy:truehd"
],
"FallbackEncoder": "ac3"
},
"Destination": {
"ChapterList": [
{
"Name": "Chapter 1"
}
],
"ChapterMarkers": true,
"AlignAVStart": true,
"File": "W:\\HandBrake (W)\\2020.11.16-18.54-1.m4v",
"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": "1920"
}
},
{
"ID": 6,
"Settings": {
"mode": "2",
"rate": "27000000/900000"
}
}
]
},
"PAR": {
"Num": 1,
"Den": 1
},
"Metadata": {},
"SequenceID": 0,
"Source": {
"Angle": 1,
"Range": {
"Type": "chapter",
"Start": 1,
"End": 1
},
"Title": 1,
"Path": "W:\\Re\\Relive\\2020.11.16-18.54.mp4"
},
"Subtitle": {
"Search": {
"Burn": true,
"Default": false,
"Enable": true,
"Forced": true
},
"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
}
}
}
[19:16:16] CPU: Intel(R) Core(TM) i5-4690K CPU @ 3.50GHz
[19:16:16] - Intel microarchitecture Haswell
[19:16:16] - logical processor count: 4
[19:16:16] Intel Quick Sync Video support: no
[19:16:16] hb_scan: path=W:\Re\Relive\2020.11.16-18.54.mp4, title_index=1
udfread ERROR: ECMA 167 Volume Recognition failed
src/libbluray/disc/disc.c:323: failed opening UDF image W:\Re\Relive\2020.11.16-18.54.mp4
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(W:\Re\Relive\2020.11.16-18.54.mp4\) failed
[19:16:16] 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
[19:16:16] dvd: not a dvd - trying as a stream/file instead
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'W:\Re\Relive\2020.11.16-18.54.mp4':
Metadata:
major_brand : isom
minor_version : 512
compatible_brands: isomiso2mp41
encoder : Lavf58.20.100
Duration: 00:00:13.62, start: 0.000000, bitrate: 4172 kb/s
Stream #0:0(und): Video: hevc (Main) (hev1 / 0x31766568), yuv420p(tv), 1920x1080 [SAR 1:1 DAR 16:9], 3972 kb/s, 59.93 fps, 60 tbr, 15360 tbn, 60 tbc (default)
Metadata:
handler_name : VideoHandler
Stream #0:1(und): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 192 kb/s (default)
Metadata:
handler_name : SoundHandler
[19:16:16] scan: decoding previews for title 1
[19:16:16] scan: audio 0x1: aac, rate=48000Hz, bitrate=192169 Unknown (AAC LC) (2.0 ch) (192 kbps)
[19:16:16] scan: 10 previews, 1920x1080, 59.940 fps, autocrop = 0/0/0/0, aspect 16:9, PAR 1:1
[19:16:16] scan: supported video decoders: avcodec qsv
[19:16:16] libhb: scan thread found 1 valid title(s)
[19:16:16] Skipping subtitle scan. No suitable subtitle tracks.
[19:16:16] Starting Task: Encoding Pass
[19:16:16] Skipping crop/scale filter
[19:16:16] work: only 1 chapter, disabling chapter markers
[19:16:16] job configuration:
[19:16:16] * source
[19:16:16] + W:\Re\Relive\2020.11.16-18.54.mp4
[19:16:16] + title 1, chapter(s) 1 to 1
[19:16:16] + container: mov,mp4,m4a,3gp,3g2,mj2
[19:16:16] + data rate: 4172 kbps
[19:16:16] * destination
[19:16:16] + W:\HandBrake (W)\2020.11.16-18.54-1.m4v
[19:16:16] + container: MPEG-4 (libavformat)
[19:16:16] + align initial A/V stream timestamps
[19:16:16] * video track
[19:16:16] + decoder: hevc
[19:16:16] + bitrate 3972 kbps
[19:16:16] + filters
[19:16:16] + 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)
[19:16:16] + Decomb (mode=39)
[19:16:16] + Framerate Shaper (mode=2:rate=27000000/900000)
[19:16:16] + frame rate: 59.940 fps -> peak rate limited to 30.000 fps
[19:16:16] + Output geometry
[19:16:16] + storage dimensions: 1920 x 1080
[19:16:16] + pixel aspect ratio: 1 : 1
[19:16:16] + display dimensions: 1920 x 1080
[19:16:16] + encoder: H.265 (AMD VCE)
[19:16:16] + preset: balanced
[19:16:16] + profile: main
[19:16:16] + level: auto
[19:16:16] + quality: 22.00 (QP)
[19:16:16] + color profile: 1-1-1
[19:16:16] * audio track 1
[19:16:16] + decoder: Unknown (AAC LC) (2.0 ch) (192 kbps) (track 1, id 0x1)
[19:16:16] + bitrate: 192 kbps, samplerate: 48000 Hz
[19:16:16] + mixdown: Stereo
[19:16:16] + dither: none
[19:16:16] + encoder: AAC (libavcodec)
[19:16:16] + bitrate: 160 kbps, samplerate: 48000 Hz
[19:16:16] sync: expecting 816 video frames
[19:16:16] encavcodecInit: H.265 (AMD VCE)
[19:16:16] encavcodec: encoding at QP 22.00
[19:16:16] encavcodec: encoding with stored aspect 1/1
[hevc_amf @ 000000001ea3f580] GetProperty(AMF_VIDEO_ENCODER_EXTRADATA) failed with error 1
[19:16:16] encavcodecInit: avcodec_open failed
Failure to initialise thread 'FFMPEG encoder (libavcodec)'
Failure to initialise thread 'FFMPEG encoder (libavcodec)'
[19:16:16] comb detect: heavy 0 | light 0 | uncombed 0 | total 0
[19:16:16] decomb: deinterlaced 0 | blended 0 | unfiltered 0 | total 0
[19:16:16] vfr: 0 frames output, 0 dropped and 0 duped for CFR/PFR
[19:16:16] vfr: lost time: 0 (0 frames)
[19:16:16] vfr: gained time: 0 (0 frames) (0 not accounted for)
[19:16:16] aac-decoder done: 0 frames, 0 decoder errors
[19:16:16] hevc-decoder done: 0 frames, 0 decoder errors
[19:16:16] sync: got 0 frames, 816 expected
[19:16:17] Finished work at: Mon Nov 16 19:16:17 2020
[19:16:17] libhb: work result = 3

# Encode Completed ...
Woodstock
Veteran User
Posts: 3843
Joined: Tue Aug 27, 2013 6:39 am

Re: HB unable to encode with AMD VCE codec

Post by Woodstock »

Handbrake isn't detecting the VCE hardware.
Imcaam
Posts: 4
Joined: Mon Nov 16, 2020 10:12 pm

Re: HB unable to encode with AMD VCE codec

Post by Imcaam »

Woodstock wrote: Tue Nov 17, 2020 2:49 pm Handbrake isn't detecting the VCE hardware.
Do you have an idea of what could be causing this? I have already tried reinstalling drivers, also clean install... Sadly not getting anywhere
Woodstock
Veteran User
Posts: 3843
Joined: Tue Aug 27, 2013 6:39 am

Re: HB unable to encode with AMD VCE codec

Post by Woodstock »

A google search for "AMD Radeon RX 5700 vce" does not come up with hits that say the chipset implements VCE.

VCE is separate hardware on the GPU, not something the GPU itself can do.
User avatar
s55
HandBrake Team
Posts: 9853
Joined: Sun Dec 24, 2006 1:05 pm

Re: HB unable to encode with AMD VCE codec

Post by s55 »

The 5700 does indeed have VCE/VCN support. It's advertised on the official page but under the "media engine" naming. https://www.amd.com/en/products/graphic ... on-rx-5700

That said, I don't have a NAVI card nor a windows 7 machine to go check this. Windows 7 is not a platform we test on any more so it could be related.

It looks like something isn't initialising correctly in libavcodec or at the driver level but not much more I can say than that for now I'm afraid.

Re-installing the driver would have been my suggestion. That or trying on a Windows 10 machine if possible.
Imcaam
Posts: 4
Joined: Mon Nov 16, 2020 10:12 pm

Re: HB unable to encode with AMD VCE codec

Post by Imcaam »

I reinstalled the drivers and did a factory reset but have no luck so far, I guess it's a good opportunity to change to win 10. Thanks everyone!
Imcaam
Posts: 4
Joined: Mon Nov 16, 2020 10:12 pm

Re: HB unable to encode with AMD VCE codec

Post by Imcaam »

OK, so I changed to win10 and it works perfect now. thankfully enough the upgrade wasn't a hassle. topic closed?
User avatar
s55
HandBrake Team
Posts: 9853
Joined: Sun Dec 24, 2006 1:05 pm

Re: HB unable to encode with AMD VCE codec

Post by s55 »

Thanks for the report back. Interesting to know.
Post Reply