Can't get AMD VCN working

Support for HandBrake on Linux, Solaris, and other Unix-like platforms
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
djackson1248@proton.me
Posts: 12
Joined: Fri Mar 15, 2024 5:31 am

Can't get AMD VCN working

Post by djackson1248@proton.me »

As stated above. Hardware encoding with a supported AMD GPU (RX5600) not happening.




Steps to reproduce the problem: attempt to transcode video using Hardware presets for VCN




HandBrake version (e.g., 1.0.0): 1.5.1 (x86_64)




Operating system and version: Ubuntu 22.04.4 LTS, AMD RX5600 GPU, current AMD drivers




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

Code: Select all

Handbrake Version: 1.5.1 (2022030700)
[22:18:13] gtkgui: Modified Preset: /Hardware/H.265 VCN 1080p
[22:18:13] Starting work at: Tue Mar 12 22:18:13 2024

[22:18:13] 1 job(s) to process
[22:18:13] json job:
{
    "Audio": {
        "AudioList": [
            {
                "Bitrate": 160,
                "CompressionLevel": -1.0,
                "DRC": 0.0,
                "DitherMethod": "auto",
                "Encoder": "av_aac",
                "Gain": 0.0,
                "Mixdown": "stereo",
                "NormalizeMixLevel": false,
                "PresetEncoder": "av_aac",
                "Quality": -3.0,
                "Samplerate": 0,
                "Track": 0
            }
        ],
        "CopyMask": [
            "copy:aac"
        ],
        "FallbackEncoder": "none"
    },
    "Destination": {
        "AlignAVStart": false,
        "ChapterList": [
            {
                "Duration": {
                    "Hours": 0,
                    "Minutes": 6,
                    "Seconds": 19,
                    "Ticks": 34152030
                },
                "Name": "Chapter 1"
            },
            {
                "Duration": {
                    "Hours": 0,
                    "Minutes": 7,
                    "Seconds": 51,
                    "Ticks": 42345000
                },
                "Name": "Chapter 2"
            },
            {
                "Duration": {
                    "Hours": 0,
                    "Minutes": 8,
                    "Seconds": 1,
                    "Ticks": 43263000
                },
                "Name": "Chapter 3"
            },
            {
                "Duration": {
                    "Hours": 0,
                    "Minutes": 4,
                    "Seconds": 30,
                    "Ticks": 24297030
                },
                "Name": "Chapter 4"
            },
            {
                "Duration": {
                    "Hours": 0,
                    "Minutes": 4,
                    "Seconds": 46,
                    "Ticks": 25769970
                },
                "Name": "Chapter 5"
            },
            {
                "Duration": {
                    "Hours": 0,
                    "Minutes": 3,
                    "Seconds": 34,
                    "Ticks": 19260000
                },
                "Name": "Chapter 6"
            },
            {
                "Duration": {
                    "Hours": 0,
                    "Minutes": 7,
                    "Seconds": 45,
                    "Ticks": 41879880
                },
                "Name": "Chapter 7"
            },
            {
                "Duration": {
                    "Hours": 0,
                    "Minutes": 5,
                    "Seconds": 41,
                    "Ticks": 30645000
                },
                "Name": "Chapter 8"
            },
            {
                "Duration": {
                    "Hours": 0,
                    "Minutes": 11,
                    "Seconds": 8,
                    "Ticks": 60078060
                },
                "Name": "Chapter 9"
            },
            {
                "Duration": {
                    "Hours": 0,
                    "Minutes": 8,
                    "Seconds": 19,
                    "Ticks": 44876970
                },
                "Name": "Chapter 10"
            },
            {
                "Duration": {
                    "Hours": 0,
                    "Minutes": 9,
                    "Seconds": 32,
                    "Ticks": 51495030
                },
                "Name": "Chapter 11"
            },
            {
                "Duration": {
                    "Hours": 0,
                    "Minutes": 9,
                    "Seconds": 54,
                    "Ticks": 53475030
                },
                "Name": "Chapter 12"
            },
            {
                "Duration": {
                    "Hours": 0,
                    "Minutes": 8,
                    "Seconds": 43,
                    "Ticks": 47055060
                },
                "Name": "Chapter 13"
            },
            {
                "Duration": {
                    "Hours": 0,
                    "Minutes": 6,
                    "Seconds": 27,
                    "Ticks": 34800030
                },
                "Name": "Chapter 14"
            },
            {
                "Duration": {
                    "Hours": 0,
                    "Minutes": 6,
                    "Seconds": 44,
                    "Ticks": 36329940
                },
                "Name": "Chapter 15"
            },
            {
                "Duration": {
                    "Hours": 0,
                    "Minutes": 5,
                    "Seconds": 37,
                    "Ticks": 30363030
                },
                "Name": "Chapter 16"
            },
            {
                "Duration": {
                    "Hours": 0,
                    "Minutes": 5,
                    "Seconds": 40,
                    "Ticks": 30570030
                },
                "Name": "Chapter 17"
            },
            {
                "Duration": {
                    "Hours": 0,
                    "Minutes": 9,
                    "Seconds": 52,
                    "Ticks": 53250030
                },
                "Name": "Chapter 18"
            },
            {
                "Duration": {
                    "Hours": 0,
                    "Minutes": 0,
                    "Seconds": 1,
                    "Ticks": 45000
                },
                "Name": "Chapter 19"
            }
        ],
        "ChapterMarkers": false,
        "File": "/home/duncan/Desktop/THOR.mp4",
        "InlineParameterSets": false,
        "Mp4Options": {
            "IpodAtom": false,
            "Mp4Optimize": false
        },
        "Mux": "m4v"
    },
    "Filters": {
        "FilterList": [
            {
                "ID": 6,
                "Settings": {
                    "mode": 0
                }
            },
            {
                "ID": 13,
                "Settings": {
                    "crop-bottom": 0,
                    "crop-left": 0,
                    "crop-right": 0,
                    "crop-top": 0,
                    "height": 1080,
                    "width": 1920
                }
            }
        ]
    },
    "Metadata": {
        "Name": "THOR"
    },
    "PAR": {
        "Den": 1,
        "Num": 1
    },
    "SequenceID": 0,
    "Source": {
        "Angle": 0,
        "Path": "/home/duncan/Desktop/THOR.iso",
        "Range": {
            "End": 1,
            "Start": 1,
            "Type": "chapter"
        },
        "Title": 1
    },
    "Subtitle": {
        "Search": {
            "Burn": true,
            "Default": false,
            "Enable": false,
            "Forced": false
        },
        "SubtitleList": []
    },
    "Video": {
        "ChromaLocation": 1,
        "ColorInputFormat": 0,
        "ColorMatrix": 6,
        "ColorOutputFormat": 0,
        "ColorPrimaries": 6,
        "ColorRange": 1,
        "ColorTransfer": 6,
        "Encoder": "x265",
        "Level": "auto",
        "Options": "",
        "Preset": "medium",
        "Profile": "auto",
        "QSV": {
            "AdapterIndex": 0,
            "AsyncDepth": 0,
            "Decode": false
        },
        "Quality": 20.0,
        "Tune": "",
        "Turbo": false,
        "TwoPass": false
    }
}
[22:18:13] CPU: Intel(R) Core(TM) i7-6700K CPU @ 4.00GHz
[22:18:13]  - Intel microarchitecture Skylake
[22:18:13]  - logical processor count: 8
[22:18:13] hb_scan: path=/home/duncan/Desktop/THOR.iso, title_index=1
disc.c:437: error opening file BDMV/index.bdmv
disc.c:437: error opening file BDMV/BACKUP/index.bdmv
bluray.c:2652: nav_get_title_list((null)) failed
[22:18:13] bd: not a bd - trying as a stream/file instead
[22:18:13] scan: DVD has 9 title(s)
[22:18:13] scan: scanning title 1
[22:18:13] scan: duration is 02:10:21 (7821667 ms)
[22:18:13] pgc_id: 1, pgn: 1: pgc: 0x782bf40185c0
[22:18:13] scan: checking audio 1
[22:18:13] scan: id=0x80bd, lang=English (AC3), 3cc=eng ext=1
[22:18:13] scan: checking audio 2
[22:18:13] scan: id=0x81bd, lang=English (AC3), 3cc=eng ext=2
[22:18:13] scan: checking audio 3
[22:18:13] scan: id=0x82bd, lang=Francais (AC3), 3cc=fra ext=1
[22:18:13] scan: checking audio 4
[22:18:13] scan: id=0x83bd, lang=español (AC3), 3cc=spa ext=1
[22:18:13] scan: checking subtitle 1
[22:18:13] scan: id=0x20bd, lang=English Closed Caption (Wide Screen) [VOBSUB], 3cc=eng ext=5
[22:18:13] scan: id=0x21bd, lang=English Closed Caption (Letterbox) [VOBSUB], 3cc=eng ext=5
[22:18:13] scan: checking subtitle 2
[22:18:13] scan: id=0x22bd, lang=Francais (Wide Screen) [VOBSUB], 3cc=fra ext=1
[22:18:13] scan: id=0x23bd, lang=Francais (Letterbox) [VOBSUB], 3cc=fra ext=1
[22:18:13] scan: checking subtitle 3
[22:18:13] scan: id=0x24bd, lang=español (Wide Screen) [VOBSUB], 3cc=spa ext=1
[22:18:13] scan: id=0x25bd, lang=español (Letterbox) [VOBSUB], 3cc=spa ext=1
[22:18:13] scan: checking subtitle 4
[22:18:13] scan: id=0x26bd, lang=Francais Forced (Wide Screen) [VOBSUB], 3cc=fra ext=9
[22:18:13] scan: id=0x27bd, lang=Francais Forced (Letterbox) [VOBSUB], 3cc=fra ext=9
[22:18:13] scan: checking subtitle 5
[22:18:13] scan: id=0x28bd, lang=español Forced (Wide Screen) [VOBSUB], 3cc=spa ext=9
[22:18:13] scan: id=0x29bd, lang=español Forced (Letterbox) [VOBSUB], 3cc=spa ext=9
[22:18:13] scan: title 1 has 19 chapters
[22:18:13] scan: chap 1, 379467 ms
[22:18:13] scan: chap 2, 470500 ms
[22:18:13] scan: chap 3, 480700 ms
[22:18:13] scan: chap 4, 269967 ms
[22:18:13] scan: chap 5, 286333 ms
[22:18:13] scan: chap 6, 214000 ms
[22:18:13] scan: chap 7, 465332 ms
[22:18:13] scan: chap 8, 340500 ms
[22:18:13] scan: chap 9, 667534 ms
[22:18:13] scan: chap 10, 498633 ms
[22:18:13] scan: chap 11, 572167 ms
[22:18:13] scan: chap 12, 594167 ms
[22:18:13] scan: chap 13, 522834 ms
[22:18:13] scan: chap 14, 386667 ms
[22:18:13] scan: chap 15, 403666 ms
[22:18:13] scan: chap 16, 337367 ms
[22:18:13] scan: chap 17, 339667 ms
[22:18:13] scan: chap 18, 591667 ms
[22:18:13] scan: chap 19, 500 ms
[22:18:13] scan: aspect = 16:9
[22:18:13] scan: decoding previews for title 1
[22:18:13] scan: title angle(s) 1
[22:18:13] scan: audio 0x83bd: ac3, rate=48000Hz, bitrate=384000 español (AC3) (5.1 ch) (384 kbps)
[22:18:13] scan: audio 0x81bd: ac3, rate=48000Hz, bitrate=192000 English (AC3) (Visually Impaired) (2.0 ch) (192 kbps)
[22:18:13] scan: audio 0x80bd: ac3, rate=48000Hz, bitrate=448000 English (AC3) (5.1 ch) (448 kbps)
[22:18:13] scan: audio 0x82bd: ac3, rate=48000Hz, bitrate=384000 Francais (AC3) (5.1 ch) (384 kbps)
[22:18:13] scan: 10 previews, 720x480, 23.976 fps, autocrop = 58/62/0/0, aspect 16:9, PAR 32:27, color profile: 6-6-6, chroma location: left
[22:18:13] libhb: scan thread found 1 valid title(s)
[22:18:13] Starting Task: Encoding Pass
[22:18:13] Skipping vfr filter
[22:18:13] job configuration:
[22:18:13]  * source
[22:18:13]    + /home/duncan/Desktop/THOR.iso
[22:18:13]    + title 1, chapter(s) 1 to 1
[22:18:13]  * destination
[22:18:13]    + /home/duncan/Desktop/THOR.mp4
[22:18:13]    + container: MPEG-4 (libavformat)
[22:18:13]  * video track
[22:18:13]    + decoder: mpeg2video 8-bit (yuv420p)
[22:18:13]      + bitrate 200 kbps
[22:18:13]    + filters
[22:18:13]      + Crop and Scale (width=1920:height=1080:crop-top=0:crop-bottom=0:crop-left=0:crop-right=0)
[22:18:13]        + source: 720 * 480, crop (0/0/0/0): 720 * 480, scale: 1920 * 1080
[22:18:13]    + Output geometry
[22:18:13]      + storage dimensions: 1920 x 1080
[22:18:13]      + pixel aspect ratio: 1 : 1
[22:18:13]      + display dimensions: 1920 x 1080
[22:18:13]    + encoder: H.265 (libx265)
[22:18:13]      + preset:  medium
[22:18:13]      + profile: auto
[22:18:13]      + level:   auto
[22:18:13]      + quality: 20.00 (RF)
[22:18:13]      + color profile: 6-6-6
[22:18:13]      + chroma location: left
[22:18:13]  * audio track 1
[22:18:13]    + decoder: English (AC3) (5.1 ch) (448 kbps) (track 1, id 0x80bd)
[22:18:13]      + bitrate: 448 kbps, samplerate: 48000 Hz
[22:18:13]    + mixdown: Stereo
[22:18:13]    + encoder: AAC (libavcodec)
[22:18:13]      + bitrate: 160 kbps, samplerate: 48000 Hz
[22:18:13] sync: expecting 9098 video frames
x265 [info]: HEVC encoder version 3.5+1-f0c1022b6
x265 [info]: build info [Linux][GCC 11.2.0][64 bit] 8bit+10bit+12bit
x265 [info]: using cpu capabilities: MMX2 SSE2Fast LZCNT SSSE3 SSE4.2 AVX FMA3 BMI2 AVX2
x265 [info]: Main profile, Level-4 (Main tier)
x265 [info]: Thread pool created using 8 threads
x265 [info]: Slices                              : 1
x265 [info]: frame threads / pool features       : 3 / wpp(17 rows)
x265 [info]: Coding QT: max CU size, min CU size : 64 / 8
x265 [info]: Residual QT: max TU size, max depth : 32 / 1 inter / 1 intra
x265 [info]: ME / range / subpel / merge         : hex / 57 / 2 / 3
x265 [info]: Keyframe min / max / scenecut / bias  : 24 / 240 / 40 / 5.00 
x265 [info]: Lookahead / bframes / badapt        : 20 / 4 / 2
x265 [info]: b-pyramid / weightp / weightb       : 1 / 1 / 0
x265 [info]: References / ref-limit  cu / depth  : 3 / off / on
x265 [info]: AQ: mode / str / qg-size / cu-tree  : 2 / 1.0 / 32 / 1
x265 [info]: Rate Control / qCompress            : CRF-20.0 / 0.60
x265 [info]: tools: rd=3 psy-rd=2.00 early-skip rskip mode=1 signhide tmvp
x265 [info]: tools: b-intra strong-intra-smoothing lslices=6 deblock sao
[22:18:13] sync: first pts video is 0
[22:18:13] sync: "Chapter 1" (1) at frame 1 time 0
[22:18:13] sync: first pts audio 0x80bd is 0
[22:25:05] work: average encoding speed for job is 20.636219 fps
[22:25:05] ac3-decoder done: 11134 frames, 0 decoder errors
[22:25:05] mpeg2video-decoder done: 8545 frames, 0 decoder errors
[22:25:05] sync: got 8507 frames, 9098 expected
[22:25:05] sync: framerate min 23.976 fps, max 23.976 fps, avg 23.976 fps
[aac @ 0x782c1429b300] Ignoring attempt to flush encoder that doesn't support it
[aac @ 0x782c1429b300] Qavg: 570.320
[aac @ 0x782c1429b300] 2 frames left in the queue on closing
x265 [info]: frame I:    104, Avg QP:18.82  kb/s: 9883.85 
x265 [info]: frame P:   2299, Avg QP:21.41  kb/s: 4905.89 
x265 [info]: frame B:   6055, Avg QP:25.19  kb/s: 1301.70 
x265 [info]: Weighted P-Frames: Y:3.4% UV:2.7%
x265 [info]: consecutive B-frames: 16.5% 7.0% 16.5% 28.0% 32.0% 

encoded 8458 frames in 412.73s (20.49 fps), 2386.90 kb/s, Avg QP:24.09
[22:25:05] mux: track 0, 8456 frames, 105259749 bytes, 2373.58 kbps, fifo 2048
[22:25:05] mux: track 1, 16629 frames, 7084749 bytes, 159.76 kbps, fifo 4096
[22:25:05] Finished work at: Tue Mar 12 22:25:05 2024

[22:25:05] libhb: work result = 1
djackson1248@proton.me
Posts: 12
Joined: Fri Mar 15, 2024 5:31 am

Re: Can't get AMD VCN working

Post by djackson1248@proton.me »

Forget this entire post. Updated to 1.7.3, still no clue if the GPU I have is even supported, and I'm not sure I give a damn anymore at this point.
Post Reply