Skip to content

main10 VAAPI not working #8043

Open
Open

Description

@Toorero

Problem Description

The transcoding doesn't succceede if I set the profile to main10. I think the main culprit is the following of the activity log:

[10:40:19] encavcodec: vaapi: encoding at rc_mode=CQP, qp=18
[10:40:19] encavcodec: encoding with stored aspect 1/1
[hevc_vaapi @ 0x7fe728d17740] No usable encoding profile found.
[10:40:19] encavcodecInit: avcodec_open failed
[10:40:19] Failure to initialise thread 'FFMPEG encoder (libavcodec)'

My graphics card (AMD Radeon RX 5700 XT) does however support Main10 encoding in theory. Output of vainfo:

Trying display: wayland
vainfo: VA-API version: 1.24 (libva 2.24.0)
vainfo: Driver version: Mesa Gallium driver 26.1.7-arch1.1 for AMD Radeon RX 5700 XT (radeonsi, navi10, ACO, DRM 3.64, 7.1.8-zen1-3-zen)
vainfo: Supported profile and entrypoints
      VAProfileMPEG2Simple            :	VAEntrypointVLD
      VAProfileMPEG2Main              :	VAEntrypointVLD
      VAProfileVC1Simple              :	VAEntrypointVLD
      VAProfileVC1Main                :	VAEntrypointVLD
      VAProfileVC1Advanced            :	VAEntrypointVLD
      VAProfileH264ConstrainedBaseline:	VAEntrypointVLD
      VAProfileH264ConstrainedBaseline:	VAEntrypointEncSlice
      VAProfileH264Main               :	VAEntrypointVLD
      VAProfileH264Main               :	VAEntrypointEncSlice
      VAProfileH264High               :	VAEntrypointVLD
      VAProfileH264High               :	VAEntrypointEncSlice
      VAProfileHEVCMain               :	VAEntrypointVLD
      VAProfileHEVCMain               :	VAEntrypointEncSlice
      VAProfileHEVCMain10             :	VAEntrypointVLD
      VAProfileHEVCMain10             :	VAEntrypointEncSlice <===
      VAProfileJPEGBaseline           :	VAEntrypointVLD
      VAProfileVP9Profile0            :	VAEntrypointVLD
      VAProfileVP9Profile2            :	VAEntrypointVLD
      VAProfileNone                   :	VAEntrypointVideoProc

Activity Log, Crash Log or any other details

https://gist.github.com/Toorero/9007fa4fa35f5a0ac955e165f85ecb3f

What Operating System are you running?

Arch Linux

What version of HandBrake are you running?

20260816074532-d43e68f23-makepkg

Where did you download HandBrake from?

Github

Activity

  1. github-actions commented on Aug 17, 2026

    @github-actions

    Hello,

    Welcome to the HandBrake repository.

    Warning

    Please be cautious of any non-members suggesting that you download a "DLL" or any other files from 3rd party websites.
    These are likely malicious!
    Members of the HandBrake team can be identified by the "(Member)" label in the top right of any response from them.

    Thank You,
    The HandBrake Bot

  2. Toorero commented on Aug 17, 2026

    @Toorero
    Author

    I compiled and installed HandBrake with an altered PKGBUILD of the official Arch Linux PKGBUILD if that's interesting:

    # Maintainer: T.J. Townsend <[email protected]>
    # Contributor: Evangelos Foutras <[email protected]>
    # Contributor: Giovanni Scafora <[email protected]>
    # Contributor: Sebastien Piccand <sebcactus gmail com>
    
    
    pkgbase=handbrake-git
    pkgname=('handbrake-git' 'handbrake-cli-git')
    pkgver=1.11.0.r171.gd43e68f23
    pkgrel=1
    arch=('x86_64')
    url="https://handbrake.fr/"
    license=('GPL-2.0-only')
    _commondeps=(
      'libxml2'
      'libass'
      'libvorbis'
      'opus'
      'speex'
      'libtheora'
      'lame'
      'x264'
      'jansson'
      'libvpx'
      'libva'
      'numactl'
      'bzip2'
      'libgcc'
      'libstdc++'
      'zlib'
      'xz'
      'libjpeg-turbo'
    )
    _guideps=('gst-plugins-base' 'gtk4' 'librsvg')
    # git included as a build dependency for bundled x265 to work
    # https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=275546#c0
    makedepends=('python' 'nasm' 'wget' 'cmake' 'meson' 'git' 'clang'
                 "${_commondeps[@]}" "${_guideps[@]}")
    options=('!lto') # https://bugs.archlinux.org/task/72600
    source=("git+https://github.com/HandBrake/HandBrake.git")
    sha256sums=('SKIP')
    
    pkgver() {
        cd HandBrake
        git describe --long | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
    }
    
    build() {
      cd HandBrake
    
      ./configure \
        --prefix=/usr \
        --enable-qsv \
        --enable-vaapi \
        --enable-nvdec
      make -C build
    }
    
    package_handbrake-git() {
      pkgdesc="Multithreaded video transcoder"
      depends=('desktop-file-utils' 'hicolor-icon-theme'
               "${_commondeps[@]}" "${_guideps[@]}")
      optdepends=('gst-plugins-good: for video previews'
                  'gst-libav: for video previews'
                  'gvfs: for CD/DVD drive access'
                  'intel-media-sdk: Intel QuickSync support'
                  'mesa: AMD VA-API support'
                  'libdvdcss: for decoding encrypted DVDs')
      provides=(handbrake)
      conflicts=(handbrake)
    
      cd HandBrake/build
    
      make DESTDIR="$pkgdir" install
      rm "$pkgdir/usr/bin/HandBrakeCLI"
    }
    
    package_handbrake-cli-git() {
      pkgdesc="Multithreaded video transcoder (CLI)"
      depends=("${_commondeps[@]}")
      optdepends=('intel-media-sdk: Intel QuickSync support'
                  'libdvdcss: for decoding encrypted DVDs')
      provides=(handbrake-cli)
      conflicts=(handbrake-cli)
    
      cd HandBrake/build
      install -D HandBrakeCLI "$pkgdir/usr/bin/HandBrakeCLI"
    }
    
    # vim:set ts=2 sw=2 et:
  3. Toorero commented on Aug 17, 2026

    @Toorero
    Author

    Profile main10 is working in ffmepg like this for me1:

    ffmpeg -n -vaapi_device /dev/dri/renderD128 -playlist 100 -i bluray:/dev/sr0 -map 0:v:0 -map 0:a -map 0:s? -map_metadata 0 -map_chapters 0 -vf crop=1920:800:0:140,format=p010le|vaapi,hwupload -c:v hevc_vaapi -rc_mode CQP -qp 18 -profile:v main10 -c:a copy -c:s copy BluRay_Movie_HEVC.mkv
    

    Footnotes

    1. Without the extra goodies of HandBrake like only selecting appropriate language tracks of course. ↩

  4. github-actions commented on Oct 16, 2026

    @github-actions

    Hello,

    Warning

    This issue appears to be inactive and will be automatically closed within 5 days if no further activity is detected.
    If you wish this issue to remain open, please request the stale label to be removed and an appropriate label assigned.

    Tip

    If this ticket is awaiting feedback, please make sure the requested information is provided. This may be a sample file, log files etc.

    Thank You,
    The HandBrake Bot

  5. github-actions commented on Oct 21, 2026

    @github-actions

    Hello,

    Note

    This ticket has now been closed due to inactivity.
    If you believe this is in error, please leave a comment and we can re-open it.

    Thank You,
    The HandBrake Bot

  6. dusanp123 commented on Oct 27, 2026

    @dusanp123

    I want same hardwer encoding for my radeon RX5500 (VC1 or HEVC) and 780M (AV1). I using linux.

    Encoding with ffmpeg is so fast and output is so good.
    On radeon 780M I using for AV1 encoding:

    ffmpeg -hwaccel vaapi -hwaccel_device /dev/dri/renderD128 -hwaccel_output_format vaapi
    -i vstupny_subor.mkv
    -vf "hwupload=extra_hw_frames=4,scale_vaapi=w=-1:h=1080"
    -c:v av1_vaapi -rc_mode CQP -global_quality:v 25
    -map 0
    -c:a libopus -b:a 128k -vbr on
    -c:s copy
    vystup.mkv

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions