Package: handbrake-cli
Version: 1.6.1+ds1-2
Severity: normal

Dear Maintainer,


trying to encode a video with svt_av1 or svt_av1_10bit fails.
Steps to reproduce:
- Download a video like this one from the Blender Foundation
  `wget 
https://video.blender.org/download/videos/42b7eb01-6cc0-403a-a623-b2a530ad24bb-1080.mp4`
- Try reencoding it to AV1
  `HandBrakeCLI -i 42b7eb01-6cc0-403a-a623-b2a530ad24bb-1080.mp4 -o 
svt_av1_10bit_test.webm -f av_webm -O -e svt_av1_10bit`

This also happens on the GUI version of Handbrake.

For reference, I am running an Intel A770 16GB graphics card which is supposed 
to have AV1 hardware accelerated encoding; I am wondering if that has something 
to do with it.
Output of vainfo is attached.

The full log of the error is attached.


Greetings from Germany
Julian Groß


-- System Information:
Debian Release: trixie/sid
  APT prefers testing
  APT policy: (900, 'testing'), (500, 'testing-debug'), (400, 'unstable'), (50, 
'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 6.5.0-3-amd64 (SMP w/12 CPU threads; PREEMPT)
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages handbrake-cli depends on:
ii  libass9         1:0.17.1-1
ii  libavcodec60    7:6.0-7+b1
ii  libavfilter9    7:6.0-7+b1
ii  libavformat60   7:6.0-7+b1
ii  libavutil58     7:6.0-7+b1
ii  libbluray2      1:1.3.4-1
ii  libc6           2.37-12
ii  libdvdnav4      6.1.1-1
ii  libdvdread8     6.1.3-1
ii  libjansson4     2.14-2
ii  libswresample4  7:6.0-7+b1
ii  libswscale7     7:6.0-7+b1
ii  libtheora0      1.1.1+dfsg.1-16.1+b1
ii  libturbojpeg0   1:2.1.5-2
ii  libva-drm2      2.20.0-2
ii  libva2          2.20.0-2
ii  libvorbis0a     1.3.7-1
ii  libvorbisenc2   1.3.7-1
ii  libvpl2         2023.3.0-1
ii  libx264-164     2:0.164.3095+gitbaee400-3+b1
ii  libx265-199     3.5-2+b1
ii  libxml2         2.9.14+dfsg-1.3

handbrake-cli recommends no packages.

handbrake-cli suggests no packages.

-- no debconf information
$ HandBrakeCLI -i 42b7eb01-6cc0-403a-a623-b2a530ad24bb-1080.mp4 -o 
svt_av1_10bit_test.webm -f av_webm -O -e svt_av1_10bit
[13:21:56] Compile-time hardening features are enabled
[13:21:56] hb_display_init: attempting VA driver 'iHD'
libva info: VA-API version 1.20.0
libva info: User environment variable requested driver 'iHD'
libva info: Trying to open /usr/lib/x86_64-linux-gnu/dri/iHD_drv_video.so
libva info: Found init function __vaDriverInit_1_20
libva info: va_openDriver() returns 0
[13:21:56] hb_display_init: using VA driver 'iHD'
libva info: VA-API version 1.20.0
libva info: User environment variable requested driver 'iHD'
libva info: Trying to open /usr/lib/x86_64-linux-gnu/dri/iHD_drv_video.so
libva info: Found init function __vaDriverInit_1_20
libva info: va_openDriver() returns 0
[13:21:56] qsv: is available on this system
[13:21:56] nvenc: version 12.0 is available
[13:21:56] nvdec: is not compiled into this build
[13:21:56] hb_init: starting libhb thread
[13:21:56] thread 7f6c3bfff6c0 started ("libhb")
HandBrake 1.6.1 (2023082100) - Linux x86_64 - https://handbrake.fr
12 CPUs detected
Opening 42b7eb01-6cc0-403a-a623-b2a530ad24bb-1080.mp4...
[13:21:56] CPU: Intel(R) Core(TM) i7-7800X CPU @ 3.50GHz
[13:21:56]  - logical processor count: 12
[13:21:56] Intel Quick Sync Video support: yes
[13:21:56] Intel Quick Sync Video unknown adapter with index 0
[13:21:56] Impl mfxhw64 library path: 
/usr/lib/x86_64-linux-gnu/libmfxhw64.so.1.35
[13:21:56]  - Intel Media SDK hardware: API 1.35 (minimum: 1.3)
[13:21:56]  - Decode support:  h264 hevc (8bit: yes, 10bit: yes) av1 (8bit: 
yes, 10bit: yes)
[13:21:56]  - H.264 encoder: yes
[13:21:56]     - preferred implementation: hardware (any) via ANY
[13:21:56]     - capabilities (hardware):  lowpower breftype vsinfo 
chromalocinfo opt1 opt2+mbbrc+extbrc+trellis+repeatpps+ib_adapt+nmpslice
[13:21:56]  - H.265 encoder: no
[13:21:56]  - AV1 encoder: no
[13:21:56] hb_scan: path=42b7eb01-6cc0-403a-a623-b2a530ad24bb-1080.mp4, 
title_index=1
udfread ERROR: ECMA 167 Volume Recognition failed
disc.c:333: failed opening UDF image 
42b7eb01-6cc0-403a-a623-b2a530ad24bb-1080.mp4
disc.c:437: error opening file BDMV/index.bdmv
disc.c:437: error opening file BDMV/BACKUP/index.bdmv
[13:21:56] bd: not a bd - trying as a stream/file instead
libdvdread: Encrypted DVD support 
unavailable.************************************************
**                                            **
**  No css library available. See             **
**  /usr/share/doc/libdvdread4/README.css     **
**  for more information.                     **
**                                            **
************************************************

libdvdread: DVDOpenFileUDF:UDFFindFile /VIDEO_TS/VIDEO_TS.IFO failed
libdvdread: Can't open file VIDEO_TS.IFO.
libdvdnav: vm: vm: failed to read VIDEO_TS.IFO
[13:21:56] dvd: not a dvd - trying as a stream/file instead
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 
'42b7eb01-6cc0-403a-a623-b2a530ad24bb-1080.mp4':
  Metadata:
    major_brand     : isom
    minor_version   : 512
    compatible_brands: isomiso2avc1mp41
    encoder         : Lavf59.16.100
  Duration: 00:00:40.63, start: 0.000000, bitrate: 2606 kb/s
  Stream #0:0[0x1](und): Video: h264 (High) (avc1 / 0x31637661), yuv420p(tv, 
bt709, progressive), 1920x1080 [SAR 1:1 DAR 16:9], 2437 kb/s, 24 fps, 24 tbr, 
12288 tbn (default)
    Metadata:
      handler_name    : VideoHandler
      vendor_id       : [0][0][0][0]
  Stream #0:1[0x2](und): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, 
fltp, 165 kb/s (default)
    Metadata:
      handler_name    : SoundHandler
      vendor_id       : [0][0][0][0]
[13:21:57] scan: decoding previews for title 1
[13:21:57] scan: audio 0x1: aac, rate=48000Hz, bitrate=165432 Unknown (AAC LC) 
(2.0 ch) (165 kbps)
Scanning title 1 of 1, preview 6, 60.00 %[13:21:57] scan: 10 previews, 
1920x1080, 24.000 fps, autocrop = 0/0/0/0, aspect 16:9, PAR 1:1, color profile: 
1-1-1, chroma location: left
[13:21:57] scan: supported video decoders: avcodec qsv nvdec
[13:21:57] libhb: scan thread found 1 valid title(s)
+ Using preset: CLI Default
+ title 1:
  + stream: 42b7eb01-6cc0-403a-a623-b2a530ad24bb-1080.mp4
  + duration: 00:00:40
  + size: 1920x1080, pixel aspect: 1/1, display aspect: 1.78, 24.000 fps
  + autocrop: 0/0/0/0
  + chapters:
    + 1: duration 00:00:40
  + audio tracks:
    + 1, Unknown (AAC LC) (2.0 ch) (165 kbps) (iso639-2: und)
  + subtitle tracks:
[13:21:57] Starting work at: Mon Oct 30 13:21:57 2023

[13:21:57] 1 job(s) to process
[13:21:57] json job:
{
    "Audio": {
        "AudioList": [
            {
                "Bitrate": 128,
                "CompressionLevel": -1.0,
                "DRC": 0.0,
                "DitherMethod": "auto",
                "Encoder": "vorbis",
                "Gain": 0.0,
                "Mixdown": "stereo",
                "NormalizeMixLevel": false,
                "PresetEncoder": "av_aac",
                "Quality": -3.0,
                "Samplerate": 0,
                "Track": 0
            }
        ],
        "CopyMask": [
            "copy:aac",
            "copy:ac3",
            "copy:eac3",
            "copy:dtshd",
            "copy:dts",
            "copy:mp3",
            "copy:truehd",
            "copy:flac"
        ],
        "FallbackEncoder": "av_aac"
    },
    "Destination": {
        "AlignAVStart": false,
        "ChapterList": [
            {
                "Duration": {
                    "Hours": 0,
                    "Minutes": 0,
                    "Seconds": 40,
                    "Ticks": 3656340
                },
                "Name": ""
            }
        ],
        "ChapterMarkers": false,
        "File": "svt_av1_10bit_test.webm",
        "InlineParameterSets": false,
        "Mp4Options": {
            "IpodAtom": false,
            "Mp4Optimize": false
        },
        "Mux": "av_webm"
    },
    "Filters": {
        "FilterList": [
            {
                "ID": 7,
                "Settings": {
                    "mode": 0
                }
            },
            {
                "ID": 14,
                "Settings": {
                    "crop-bottom": 0,
                    "crop-left": 0,
                    "crop-right": 0,
                    "crop-top": 0,
                    "height": 1080,
                    "width": 1920
                }
            }
        ]
    },
    "Metadata": {},
    "PAR": {
        "Den": 1,
        "Num": 1
    },
    "SequenceID": 0,
    "Source": {
        "Angle": 0,
        "Path": "42b7eb01-6cc0-403a-a623-b2a530ad24bb-1080.mp4",
        "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": 1,
        "ColorOutputFormat": 0,
        "ColorPrimaries": 1,
        "ColorRange": 1,
        "ColorTransfer": 1,
        "Encoder": "svt_av1_10bit",
        "HardwareDecode": 0,
        "QSV": {
            "AdapterIndex": 0,
            "AsyncDepth": 0,
            "Decode": false
        },
        "Quality": 22.0,
        "Turbo": false,
        "TwoPass": false
    }
}
[13:21:57] Starting Task: Encoding Pass
[13:21:57] Skipping vfr filter
[13:21:57] Skipping crop/scale filter
[13:21:57] job configuration:
[13:21:57]  * source
[13:21:57]    + 42b7eb01-6cc0-403a-a623-b2a530ad24bb-1080.mp4
[13:21:57]    + title 1, chapter(s) 1 to 1
[13:21:57]    + container: mov,mp4,m4a,3gp,3g2,mj2
[13:21:57]    + data rate: 2606 kbps
[13:21:57]  * destination
[13:21:57]    + svt_av1_10bit_test.webm
[13:21:57]    + container: WebM (libavformat)
[13:21:57]  * video track
[13:21:57]    + decoder: h264 8-bit (yuv420p)
[13:21:57]      + bitrate 2437 kbps
[13:21:57]    + filters
[13:21:57]      + Format (format=yuv420p10le)
[13:21:57]    + Output geometry
[13:21:57]      + storage dimensions: 1920 x 1080
[13:21:57]      + pixel aspect ratio: 1 : 1
[13:21:57]      + display dimensions: 1920 x 1080
[13:21:57]    + encoder: AV1 10-bit (SVT)
[13:21:57]      + quality: 22.00 (RF)
[13:21:57]      + color profile: 1-1-1
[13:21:57]      + chroma location: left
[13:21:57]  * audio track 1
[13:21:57]    + decoder: Unknown (AAC LC) (2.0 ch) (165 kbps) (track 1, id 0x1)
[13:21:57]      + bitrate: 165 kbps, samplerate: 48000 Hz
[13:21:57]    + mixdown: Stereo
[13:21:57]    + encoder: Vorbis (libvorbis)
[13:21:57]      + bitrate: 128 kbps, samplerate: 48000 Hz
[13:21:57] sync: expecting 975 video frames
[13:21:57] encvorbis: opening libvorbis
[13:21:57] encavcodecInit: AV1 encoder
[13:21:57] encavcodecInit: avcodec_find_encoder_by_name(libsvtav1) failed
ERROR: Failure to initialise thread 'FFMPEG encoder (libavcodec)'
[13:21:57] aac-decoder done: 0 frames, 0 decoder errors
[13:21:57] h264-decoder done: 0 frames, 0 decoder errors
[13:21:57] sync: got 0 frames, 975 expected
[13:21:57] Finished work at: Mon Oct 30 13:21:57 2023

[13:21:57] libhb: work result = 3

Encode failed (error 3).

HandBrake has exited.
$ 

$ vainfo 
libva info: VA-API version 1.20.0
libva info: Trying to open /usr/lib/x86_64-linux-gnu/dri/iHD_drv_video.so
libva info: Found init function __vaDriverInit_1_20
libva info: va_openDriver() returns 0
vainfo: VA-API version: 1.20 (libva 2.12.0)
vainfo: Driver version: Intel iHD driver for Intel(R) Gen Graphics - 23.3.5 ()
vainfo: Supported profile and entrypoints
      VAProfileNone                   : VAEntrypointVideoProc
      VAProfileNone                   : VAEntrypointStats
      VAProfileMPEG2Simple            : VAEntrypointVLD
      VAProfileMPEG2Main              : VAEntrypointVLD
      VAProfileH264Main               : VAEntrypointVLD
      VAProfileH264Main               : VAEntrypointEncSliceLP
      VAProfileH264High               : VAEntrypointVLD
      VAProfileH264High               : VAEntrypointEncSliceLP
      VAProfileJPEGBaseline           : VAEntrypointVLD
      VAProfileJPEGBaseline           : VAEntrypointEncPicture
      VAProfileH264ConstrainedBaseline: VAEntrypointVLD
      VAProfileH264ConstrainedBaseline: VAEntrypointEncSliceLP
      VAProfileHEVCMain               : VAEntrypointVLD
      VAProfileHEVCMain               : VAEntrypointEncSliceLP
      VAProfileHEVCMain10             : VAEntrypointVLD
      VAProfileHEVCMain10             : VAEntrypointEncSliceLP
      VAProfileVP9Profile0            : VAEntrypointVLD
      VAProfileVP9Profile0            : VAEntrypointEncSliceLP
      VAProfileVP9Profile1            : VAEntrypointVLD
      VAProfileVP9Profile1            : VAEntrypointEncSliceLP
      VAProfileVP9Profile2            : VAEntrypointVLD
      VAProfileVP9Profile2            : VAEntrypointEncSliceLP
      VAProfileVP9Profile3            : VAEntrypointVLD
      VAProfileVP9Profile3            : VAEntrypointEncSliceLP
      VAProfileHEVCMain12             : VAEntrypointVLD
      VAProfileHEVCMain422_10         : VAEntrypointVLD
      VAProfileHEVCMain422_10         : VAEntrypointEncSliceLP
      VAProfileHEVCMain422_12         : VAEntrypointVLD
      VAProfileHEVCMain444            : VAEntrypointVLD
      VAProfileHEVCMain444            : VAEntrypointEncSliceLP
      VAProfileHEVCMain444_10         : VAEntrypointVLD
      VAProfileHEVCMain444_10         : VAEntrypointEncSliceLP
      VAProfileHEVCMain444_12         : VAEntrypointVLD
      VAProfileHEVCSccMain            : VAEntrypointVLD
      VAProfileHEVCSccMain            : VAEntrypointEncSliceLP
      VAProfileHEVCSccMain10          : VAEntrypointVLD
      VAProfileHEVCSccMain10          : VAEntrypointEncSliceLP
      VAProfileHEVCSccMain444         : VAEntrypointVLD
      VAProfileHEVCSccMain444         : VAEntrypointEncSliceLP
      VAProfileAV1Profile0            : VAEntrypointVLD
      VAProfileAV1Profile0            : VAEntrypointEncSliceLP
      VAProfileHEVCSccMain444_10      : VAEntrypointVLD
      VAProfileHEVCSccMain444_10      : VAEntrypointEncSliceLP
$ 

Reply via email to