Error when encoding in VP9: Failed to initialize encoder: ABI version mismatch

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
TomDalla
Posts: 4
Joined: Sun Apr 25, 2021 3:16 pm

Error when encoding in VP9: Failed to initialize encoder: ABI version mismatch

Post by TomDalla »

Description of problem or question:
Cannot encode in VP9 on HandBrake 1.3.3
Error: [libvpx-vp9 @ 0x7efbe8e24600] Failed to initialize encoder: ABI version mismatch


Steps to reproduce the problem (If Applicable):
Try encoding any video using the VP9 codec (any settings)



HandBrake version (e.g., 1.0.0):
1.3.3



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



Notes
The local ffmpeg installed on the machine (default one) is able to encode in VP9.
Only the one baked in HandBrake has issues.

Code: Select all

$ ffmpeg -version
ffmpeg version n4.3.2 Copyright (c) 2000-2021 the FFmpeg developers
built with gcc 10.2.0 (GCC)
configuration: --prefix=/usr --disable-debug --disable-static --disable-stripping --enable-amf --enable-avisynth --enable-cuda-llvm --enable-lto --enable-fontconfig --enable-gmp --enable-gnutls --enable-gpl --enable-ladspa --enable-libaom --enable-libass --enable-libbluray --enable-libdav1d --enable-libdrm --enable-libfreetype --enable-libfribidi --enable-libgsm --enable-libiec61883 --enable-libjack --enable-libmfx --enable-libmodplug --enable-libmp3lame --enable-libopencore_amrnb --enable-libopencore_amrwb --enable-libopenjpeg --enable-libopus --enable-libpulse --enable-librav1e --enable-libsoxr --enable-libspeex --enable-libsrt --enable-libssh --enable-libtheora --enable-libv4l2 --enable-libvidstab --enable-libvmaf --enable-libvorbis --enable-libvpx --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxcb --enable-libxml2 --enable-libxvid --enable-libzimg --enable-nvdec --enable-nvenc --enable-shared --enable-version3
libavutil      56. 51.100 / 56. 51.100
libavcodec     58. 91.100 / 58. 91.100
libavformat    58. 45.100 / 58. 45.100
libavdevice    58. 10.100 / 58. 10.100
libavfilter     7. 85.100 /  7. 85.100
libswscale      5.  7.100 /  5.  7.100
libswresample   3.  7.100 /  3.  7.100
libpostproc    55.  7.100 / 55.  7.100


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

Code: Select all

[16:03:11] gtkgui: HandBrake 1.3.3 (2021031800) - Linux x86_64 - https://handbrake.fr
Cannot load libnvidia-encode.so.1
[16:03:11] hb_init: starting libhb thread
[16:03:11] hb_init: starting libhb thread
[16:03:11] hb_init: starting libhb thread
[16:04:32] CPU: AMD Ryzen 7 5800H with Radeon Graphics         
[16:04:32]  - logical processor count: 16
[16:04:32] Intel Quick Sync Video support: no
[16:04:32] hb_scan: path=/home/username/Pictures/Photos/Telephone/OP5/2021-04-08 06.54.18 Neko VID_20210408_065331.mp4, title_index=0
udfread ERROR: ECMA 167 Volume Recognition failed
disc.c:323: failed opening UDF image /home/username/Pictures/Photos/Telephone/OP5/2021-04-08 06.54.18 Neko VID_20210408_065331.mp4
disc.c:424: error opening file BDMV/index.bdmv
disc.c:424: error opening file BDMV/BACKUP/index.bdmv
bluray.c:2585: nav_get_title_list(/home/username/Pictures/Photos/Telephone/OP5/2021-04-08 06.54.18 Neko VID_20210408_065331.mp4/) failed
[16:04:32] bd: not a bd - trying as a stream/file instead
libdvdnav: Using dvdnav version 6.0.1
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
[16:04:32] dvd: not a dvd - trying as a stream/file instead
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '/home/username/Pictures/Photos/Telephone/OP5/2021-04-08 06.54.18 Neko VID_20210408_065331.mp4':
  Metadata:
    major_brand     : mp42
    minor_version   : 0
    compatible_brands: isommp42
    creation_time   : 2021-04-08T05:54:18.000000Z
    location        : +51.5060-000.1920/
    location-eng    : +51.5060-000.1920/
    com.android.version: 10
    com.android.capture.fps: 30.000000
  Duration: 00:00:45.96, start: 0.000000, bitrate: 20226 kb/s
    Stream #0:0(eng): Video: hevc (Main) (hvc1 / 0x31637668), yuvj420p(pc, smpte170m), 1920x1080, 19990 kb/s, SAR 1:1 DAR 16:9, 29.96 fps, 30 tbr, 90k tbn, 90k tbc (default)
    Metadata:
      creation_time   : 2021-04-08T05:54:18.000000Z
      handler_name    : VideoHandle
    Stream #0:1(eng): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 95 kb/s (default)
    Metadata:
      creation_time   : 2021-04-08T05:54:18.000000Z
      handler_name    : SoundHandle
[16:04:32] scan: decoding previews for title 1
[16:04:32] scan: audio 0x1: aac, rate=48000Hz, bitrate=95982 English (AAC LC) (2.0 ch) (95 kbps)
[16:04:33] scan: 10 previews, 1920x1080, 29.964 fps, autocrop = 0/0/0/0, aspect 16:9, PAR 1:1
[16:04:33] scan: supported video decoders: avcodec qsv
[16:04:33] libhb: scan thread found 1 valid title(s)
[16:10:40] Preset (null): Incorrect value type for key AudioBitrate. Converting.
[16:11:03] gtkgui: Custom Preset: /Production/x265/aac
[16:11:03] Starting work at: Sun Apr 25 16:11:03 2021

[16:11:03] 1 job(s) to process
[16:11:03] json job:
{
    "Audio": {
        "AudioList": [
            {
                "Bitrate": 128,
                "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": "av_aac"
    },
    "Destination": {
        "AlignAVStart": true,
        "ChapterList": [
            {
                "Duration": {
                    "Hours": 0,
                    "Minutes": 0,
                    "Seconds": 45,
                    "Ticks": 4136130
                },
                "Name": ""
            }
        ],
        "ChapterMarkers": false,
        "File": "/home/username/Pictures/Photos/Telephone/OP5/2021-04-08 06.54.18 Neko VID_20210408_065331.m4v",
        "InlineParameterSets": false,
        "Mp4Options": {
            "IpodAtom": false,
            "Mp4Optimize": true
        },
        "Mux": "m4v"
    },
    "Filters": {
        "FilterList": [
            {
                "ID": 6,
                "Settings": {
                    "mode": 1
                }
            },
            {
                "ID": 12,
                "Settings": {
                    "crop-bottom": 0,
                    "crop-left": 0,
                    "crop-right": 0,
                    "crop-top": 0,
                    "height": 1080,
                    "width": 1920
                }
            }
        ]
    },
    "Metadata": {
        "Name": "2021-04-08 06.54.18 Neko VID_20210408_065331"
    },
    "PAR": {
        "Den": 1,
        "Num": 1
    },
    "SequenceID": 0,
    "Source": {
        "Angle": 0,
        "Path": "/home/username/Pictures/Photos/Telephone/OP5/2021-04-08 06.54.18 Neko VID_20210408_065331.mp4",
        "Range": {
            "End": 1,
            "Start": 1,
            "Type": "chapter"
        },
        "Title": 1
    },
    "Subtitle": {
        "Search": {
            "Burn": true,
            "Default": false,
            "Enable": false,
            "Forced": false
        },
        "SubtitleList": []
    },
    "Video": {
        "ColorFormat": 0,
        "ColorMatrix": 6,
        "ColorPrimaries": 6,
        "ColorRange": 2,
        "ColorTransfer": 6,
        "Encoder": "x264",
        "Level": "auto",
        "Options": "keyint=12:min-keyint=1:ref=1:bframes=0:qcomp=0.8:aq-strength=0.5:dct-decimate=0:fast-pskip=0:deblock=-2,-2",
        "Preset": "slow",
        "Profile": "high",
        "QSV": {
            "AsyncDepth": 4,
            "Decode": false
        },
        "Quality": 10.0,
        "Tune": "",
        "Turbo": false,
        "TwoPass": false
    }
}
[16:11:03] CPU: AMD Ryzen 7 5800H with Radeon Graphics         
[16:11:03]  - logical processor count: 16
[16:11:03] Intel Quick Sync Video support: no
[16:11:03] hb_scan: path=/home/username/Pictures/Photos/Telephone/OP5/2021-04-08 06.54.18 Neko VID_20210408_065331.mp4, title_index=1
udfread ERROR: ECMA 167 Volume Recognition failed
disc.c:323: failed opening UDF image /home/username/Pictures/Photos/Telephone/OP5/2021-04-08 06.54.18 Neko VID_20210408_065331.mp4
disc.c:424: error opening file BDMV/index.bdmv
disc.c:424: error opening file BDMV/BACKUP/index.bdmv
bluray.c:2585: nav_get_title_list(/home/username/Pictures/Photos/Telephone/OP5/2021-04-08 06.54.18 Neko VID_20210408_065331.mp4/) failed
[16:11:03] bd: not a bd - trying as a stream/file instead
libdvdnav: Using dvdnav version 6.0.1
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
[16:11:03] dvd: not a dvd - trying as a stream/file instead
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '/home/username/Pictures/Photos/Telephone/OP5/2021-04-08 06.54.18 Neko VID_20210408_065331.mp4':
  Metadata:
    major_brand     : mp42
    minor_version   : 0
    compatible_brands: isommp42
    creation_time   : 2021-04-08T05:54:18.000000Z
    location        : +51.5060-000.1920/
    location-eng    : +51.5060-000.1920/
    com.android.version: 10
    com.android.capture.fps: 30.000000
  Duration: 00:00:45.96, start: 0.000000, bitrate: 20226 kb/s
    Stream #0:0(eng): Video: hevc (Main) (hvc1 / 0x31637668), yuvj420p(pc, smpte170m), 1920x1080, 19990 kb/s, SAR 1:1 DAR 16:9, 29.96 fps, 30 tbr, 90k tbn, 90k tbc (default)
    Metadata:
      creation_time   : 2021-04-08T05:54:18.000000Z
      handler_name    : VideoHandle
    Stream #0:1(eng): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 95 kb/s (default)
    Metadata:
      creation_time   : 2021-04-08T05:54:18.000000Z
      handler_name    : SoundHandle
[16:11:03] scan: decoding previews for title 1
[16:11:03] scan: audio 0x1: aac, rate=48000Hz, bitrate=95982 English (AAC LC) (2.0 ch) (95 kbps)
[16:11:04] scan: 10 previews, 1920x1080, 29.964 fps, autocrop = 0/0/0/0, aspect 16:9, PAR 1:1
[16:11:04] scan: supported video decoders: avcodec qsv
[16:11:04] libhb: scan thread found 1 valid title(s)
[16:11:04] Starting Task: Encoding Pass
[16:11:04] Skipping crop/scale filter
[16:11:04] job configuration:
[16:11:04]  * source
[16:11:04]    + /home/username/Pictures/Photos/Telephone/OP5/2021-04-08 06.54.18 Neko VID_20210408_065331.mp4
[16:11:04]    + title 1, chapter(s) 1 to 1
[16:11:04]    + container: mov,mp4,m4a,3gp,3g2,mj2
[16:11:04]    + data rate: 20226 kbps
[16:11:04]  * destination
[16:11:04]    + /home/username/Pictures/Photos/Telephone/OP5/2021-04-08 06.54.18 Neko VID_20210408_065331.m4v
[16:11:04]    + container: MPEG-4 (libavformat)
[16:11:04]      + optimized for HTTP streaming (fast start)
[16:11:04]      + align initial A/V stream timestamps
[16:11:04]  * video track
[16:11:04]    + decoder: hevc
[16:11:04]      + bitrate 19990 kbps
[16:11:04]    + filter
[16:11:04]      + Framerate Shaper (mode=1)
[16:11:04]        + frame rate: 29.964 fps -> constant 29.964 fps
[16:11:04]    + Output geometry
[16:11:04]      + storage dimensions: 1920 x 1080
[16:11:04]      + pixel aspect ratio: 1 : 1
[16:11:04]      + display dimensions: 1920 x 1080
[16:11:04]    + encoder: H.264 (libx264)
[16:11:04]      + preset:  slow
[16:11:04]      + options: keyint=12:min-keyint=1:ref=1:bframes=0:qcomp=0.8:aq-strength=0.5:dct-decimate=0:fast-pskip=0:deblock=-2,-2
[16:11:04]      + profile: high
[16:11:04]      + level:   auto
[16:11:04]      + quality: 10.00 (RF)
[16:11:04]      + color profile: 6-6-6
[16:11:04]  * audio track 1
[16:11:04]    + decoder: English (AAC LC) (2.0 ch) (95 kbps) (track 1, id 0x1)
[16:11:04]      + bitrate: 95 kbps, samplerate: 48000 Hz
[16:11:04]    + mixdown: Stereo
[16:11:04]    + dither: triangular
[16:11:04]    + encoder: AAC (libavcodec)
[16:11:04]      + bitrate: 128 kbps, samplerate: 48000 Hz
[16:11:04] sync: expecting 1377 video frames
[16:11:04] encx264: min-keyint: 1, keyint: 12
[16:11:04] encx264: encoding at constant RF 10.000000
[16:11:04] encx264: unparsed options: keyint=12:keyint-min=1:ref=1:bframes=0:qcomp=0.8:aq-strength=0.5:dct-decimate=0:fast-pskip=0:deblock=-2,-2:subme=8:trellis=2:rc-lookahead=50
x264 [info]: using SAR=1/1
x264 [info]: using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX FMA3 BMI2 AVX2
x264 [info]: profile High, level 4.0, 4:2:0, 8-bit
[16:11:04] sync: first pts video is 0
[16:11:04] sync: Chapter 1 at frame 1 time 0
[16:11:04] sync: first pts audio 0x1 is 0
[16:11:59] reader: done. 1 scr changes
[16:12:03] work: average encoding speed for job is 23.969076 fps
[16:12:03] vfr: 1377 frames output, 1 dropped and 1 duped for CFR/PFR
[16:12:03] vfr: lost time: 0 (0 frames)
[16:12:03] vfr: gained time: 0 (0 frames) (0 not accounted for)
[16:12:04] aac-decoder done: 2152 frames, 0 decoder errors
[16:12:04] hevc-decoder done: 1377 frames, 0 decoder errors
[16:12:04] sync: got 1377 frames, 1377 expected
[16:12:04] sync: framerate min 14.995 fps, max 30.992 fps, avg 29.956 fps
x264 [info]: frame I:1376  Avg QP:11.67  size:297985
x264 [info]: frame P:1     Avg QP:11.78  size:  2604
x264 [info]: mb I  I16..4:  0.1% 81.5% 18.4%
x264 [info]: mb P  I16..4:  0.0%  0.0%  0.0%  P16..4: 14.7%  0.2%  0.3%  0.0%  0.0%    skip:84.8%
x264 [info]: 8x8 transform intra:81.5% inter:16.7%
x264 [info]: coded y,uvDC,uvAC intra: 99.6% 86.4% 76.8% inter: 0.0% 14.6% 9.3%
x264 [info]: i16 v,h,dc,p:  5%  5% 13% 77%
x264 [info]: i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 13% 13% 15%  8%  9%  8%  8% 11% 15%
x264 [info]: i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 10% 10%  7%  9% 13% 11% 12% 11% 16%
x264 [info]: i8c dc,h,v,p: 50% 27% 16%  6%
x264 [info]: Weighted P-Frames: Y:0.0% UV:0.0%
x264 [info]: kb/s:71378.28
[16:12:04] mux: track 0, 1377 frames, 409972464 bytes, 71368.22 kbps, fifo 64
[16:12:04] mux: track 1, 2153 frames, 740236 bytes, 128.86 kbps, fifo 256
[16:12:04] Finished work at: Sun Apr 25 16:12:04 2021

[16:12:04] libhb: work result = 0
[16:14:03] gtkgui: Preset: /Matroska/VP9 MKV 2160p60
[16:14:03] Starting work at: Sun Apr 25 16:14:03 2021

[16:14:03] 1 job(s) to process
[16:14:03] json job:
{
    "Audio": {
        "AudioList": [
            {
                "Bitrate": 160,
                "CompressionLevel": -1.0,
                "DRC": 0.0,
                "DitherMethod": "auto",
                "Encoder": "opus",
                "Gain": 0.0,
                "Mixdown": "stereo",
                "NormalizeMixLevel": false,
                "PresetEncoder": "opus",
                "Quality": -3.0,
                "Samplerate": 0,
                "Track": 0
            }
        ],
        "CopyMask": [],
        "FallbackEncoder": "opus"
    },
    "Destination": {
        "AlignAVStart": false,
        "ChapterList": [
            {
                "Duration": {
                    "Hours": 0,
                    "Minutes": 0,
                    "Seconds": 45,
                    "Ticks": 4136130
                },
                "Name": ""
            }
        ],
        "ChapterMarkers": false,
        "File": "/home/username/Pictures/Photos/Telephone/OP5/2021-04-08 06.54.18 Neko VID_20210408_065331.mkv",
        "InlineParameterSets": false,
        "Mp4Options": {
            "IpodAtom": false,
            "Mp4Optimize": false
        },
        "Mux": "mkv"
    },
    "Filters": {
        "FilterList": [
            {
                "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": 4,
                "Settings": {
                    "mode": "7"
                }
            },
            {
                "ID": 6,
                "Settings": {
                    "mode": 2,
                    "rate": "27000000/450000"
                }
            },
            {
                "ID": 12,
                "Settings": {
                    "crop-bottom": 0,
                    "crop-left": 0,
                    "crop-right": 0,
                    "crop-top": 0,
                    "height": 1080,
                    "width": 1920
                }
            }
        ]
    },
    "Metadata": {
        "Name": "2021-04-08 06.54.18 Neko VID_20210408_065331"
    },
    "PAR": {
        "Den": 1,
        "Num": 1
    },
    "SequenceID": 0,
    "Source": {
        "Angle": 0,
        "Path": "/home/username/Pictures/Photos/Telephone/OP5/2021-04-08 06.54.18 Neko VID_20210408_065331.mp4",
        "Range": {
            "End": 1,
            "Start": 1,
            "Type": "chapter"
        },
        "Title": 1
    },
    "Subtitle": {
        "Search": {
            "Burn": true,
            "Default": false,
            "Enable": false,
            "Forced": false
        },
        "SubtitleList": []
    },
    "Video": {
        "Bitrate": 8000,
        "ColorFormat": 0,
        "ColorMatrix": 6,
        "ColorPrimaries": 6,
        "ColorRange": 2,
        "ColorTransfer": 6,
        "Encoder": "VP9",
        "Level": "auto",
        "Options": "qmin=0:qmax=30",
        "Preset": "medium",
        "Profile": "auto",
        "QSV": {
            "AsyncDepth": 4,
            "Decode": false
        },
        "Tune": "",
        "Turbo": false,
        "TwoPass": true
    }
}
[16:14:03] CPU: AMD Ryzen 7 5800H with Radeon Graphics         
[16:14:03]  - logical processor count: 16
[16:14:03] Intel Quick Sync Video support: no
[16:14:03] hb_scan: path=/home/username/Pictures/Photos/Telephone/OP5/2021-04-08 06.54.18 Neko VID_20210408_065331.mp4, title_index=1
udfread ERROR: ECMA 167 Volume Recognition failed
disc.c:323: failed opening UDF image /home/username/Pictures/Photos/Telephone/OP5/2021-04-08 06.54.18 Neko VID_20210408_065331.mp4
disc.c:424: error opening file BDMV/index.bdmv
disc.c:424: error opening file BDMV/BACKUP/index.bdmv
bluray.c:2585: nav_get_title_list(/home/username/Pictures/Photos/Telephone/OP5/2021-04-08 06.54.18 Neko VID_20210408_065331.mp4/) failed
[16:14:03] bd: not a bd - trying as a stream/file instead
libdvdnav: Using dvdnav version 6.0.1
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
[16:14:03] dvd: not a dvd - trying as a stream/file instead
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '/home/username/Pictures/Photos/Telephone/OP5/2021-04-08 06.54.18 Neko VID_20210408_065331.mp4':
  Metadata:
    major_brand     : mp42
    minor_version   : 0
    compatible_brands: isommp42
    creation_time   : 2021-04-08T05:54:18.000000Z
    location        : +51.5060-000.1920/
    location-eng    : +51.5060-000.1920/
    com.android.version: 10
    com.android.capture.fps: 30.000000
  Duration: 00:00:45.96, start: 0.000000, bitrate: 20226 kb/s
    Stream #0:0(eng): Video: hevc (Main) (hvc1 / 0x31637668), yuvj420p(pc, smpte170m), 1920x1080, 19990 kb/s, SAR 1:1 DAR 16:9, 29.96 fps, 30 tbr, 90k tbn, 90k tbc (default)
    Metadata:
      creation_time   : 2021-04-08T05:54:18.000000Z
      handler_name    : VideoHandle
    Stream #0:1(eng): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 95 kb/s (default)
    Metadata:
      creation_time   : 2021-04-08T05:54:18.000000Z
      handler_name    : SoundHandle
[16:14:03] scan: decoding previews for title 1
[16:14:03] scan: audio 0x1: aac, rate=48000Hz, bitrate=95982 English (AAC LC) (2.0 ch) (95 kbps)
[16:14:04] scan: 10 previews, 1920x1080, 29.964 fps, autocrop = 0/0/0/0, aspect 16:9, PAR 1:1
[16:14:04] scan: supported video decoders: avcodec qsv
[16:14:04] libhb: scan thread found 1 valid title(s)
[16:14:04] Starting Task: Analysis Pass
[16:14:04] Skipping crop/scale filter
[16:14:04] work: compression level not specified, track 1 setting compression level 10.00
[16:14:04] job configuration:
[16:14:04]  * source
[16:14:04]    + /home/username/Pictures/Photos/Telephone/OP5/2021-04-08 06.54.18 Neko VID_20210408_065331.mp4
[16:14:04]    + title 1, chapter(s) 1 to 1
[16:14:04]    + container: mov,mp4,m4a,3gp,3g2,mj2
[16:14:04]    + data rate: 20226 kbps
[16:14:04]  * destination
[16:14:04]    + /home/username/Pictures/Photos/Telephone/OP5/2021-04-08 06.54.18 Neko VID_20210408_065331.mkv
[16:14:04]    + container: Matroska (libavformat)
[16:14:04]  * video track
[16:14:04]    + decoder: hevc
[16:14:04]      + bitrate 19990 kbps
[16:14:04]    + filters
[16:14:04]      + 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)
[16:14:04]      + Decomb (mode=39)
[16:14:04]      + Framerate Shaper (mode=2:rate=27000000/450000)
[16:14:04]        + frame rate: 29.964 fps -> peak rate limited to 60.000 fps
[16:14:04]    + Output geometry
[16:14:04]      + storage dimensions: 1920 x 1080
[16:14:04]      + pixel aspect ratio: 1 : 1
[16:14:04]      + display dimensions: 1920 x 1080
[16:14:04]    + encoder: VP9 (libvpx)
[16:14:04]      + preset:  medium
[16:14:04]      + options: qmin=0:qmax=30
[16:14:04]      + bitrate: 8000 kbps, pass: 1
[16:14:04]      + color profile: 6-6-6
[16:14:04]  * audio track 1
[16:14:04]    + decoder: English (AAC LC) (2.0 ch) (95 kbps) (track 1, id 0x1)
[16:14:04]      + bitrate: 95 kbps, samplerate: 48000 Hz
[16:14:04]    + mixdown: Stereo
[16:14:04]    + dither: triangular
[16:14:04]    + encoder: Opus (libopus)
[16:14:04]      + bitrate: 160 kbps, samplerate: 48000 Hz
[16:14:04]      + compression level: 10.00
[16:14:04] sync: expecting 1377 video frames
[16:14:04] encavcodecInit: VP9 encoder
[16:14:04] encavcodec: truncating framerate 27000000 / 901093
[16:14:04] encavcodec: encoding with stored aspect 1/1
[libvpx-vp9 @ 0x7efbe8e24600] Failed to initialize encoder: ABI version mismatch
[16:14:04] encavcodecInit: avcodec_open failed
[16:14:04] Failure to initialise thread 'FFMPEG encoder (libavcodec)'
[16:14:04] comb detect: heavy 0 | light 0 | uncombed 0 | total 0
[16:14:04] decomb: deinterlaced 0 | blended 0 | unfiltered 0 | total 0
[16:14:04] vfr: 0 frames output, 0 dropped and 0 duped for CFR/PFR
[16:14:04] vfr: lost time: 0 (0 frames)
[16:14:04] vfr: gained time: 0 (0 frames) (0 not accounted for)
[16:14:04] aac-decoder done: 0 frames, 0 decoder errors
[16:14:04] hevc-decoder done: 0 frames, 0 decoder errors
[16:14:04] sync: got 0 frames, 1377 expected
[16:14:04] Finished work at: Sun Apr 25 16:14:04 2021

[16:14:04] libhb: work result = 3
rollin_eng
Veteran User
Posts: 4840
Joined: Wed May 04, 2011 11:06 pm

Re: Error when encoding in VP9: Failed to initialize encoder: ABI version mismatch

Post by rollin_eng »

Can you try a nightly build?
TomDalla
Posts: 4
Joined: Sun Apr 25, 2021 3:16 pm

Re: Error when encoding in VP9: Failed to initialize encoder: ABI version mismatch

Post by TomDalla »

I installed the nightly CLI only, and it works indeed, thanks! (it wasn't working with the CLI release 1.3.3).

Minor note: it looks like specifying the output file in the nightly build does not work (-o out.webm and it always outputs in the ptimise file...
A side-effect is that it also does not auto-detect the desired output format, defaulting it to mp4, obviously not allowing me to mux VP9 in it. I had to manually add -f av_webm to the command line, which I usually did not have to do (auto-detected from the desired output filename).
Deleted User 11865

Re: Error when encoding in VP9: Failed to initialize encoder: ABI version mismatch

Post by Deleted User 11865 »

TomDalla wrote: Sun Apr 25, 2021 3:26 pm

Code: Select all

[16:03:11] gtkgui: HandBrake 1.3.3 (2021031800) - Linux x86_64 - https://handbrake.fr
Build date suggests unofficial build. Official Manjaro repo probably linked HandBrake dynamically with their system libvpx, which is either too new or too old to work with HandBrake, and shipped it without ever bothering to test it.
TomDalla
Posts: 4
Joined: Sun Apr 25, 2021 3:16 pm

Re: Error when encoding in VP9: Failed to initialize encoder: ABI version mismatch

Post by TomDalla »

Flathub version has the same issue though...

Code: Select all

Handbrake Version: 1.3.3 (2021032900)
[08:25:01] gtkgui: Custom Preset: /General/4k Home Videos
[08:25:01] Starting work at: Sat May  1 08:25:01 2021

[08:25:01] 1 job(s) to process
[08:25:01] json job:
{
    "Audio": {
        "AudioList": [
            {
                "Bitrate": 128,
                "CompressionLevel": -1.0,
                "DRC": 0.0,
                "DitherMethod": "auto",
                "Encoder": "opus",
                "Gain": 0.0,
                "Mixdown": "stereo",
                "NormalizeMixLevel": false,
                "PresetEncoder": "opus",
                "Quality": -3.0,
                "Samplerate": 0,
                "Track": 0
            }
        ],
        "CopyMask": [
            "copy:aac"
        ],
        "FallbackEncoder": "av_aac"
    },
    "Destination": {
        "AlignAVStart": false,
        "ChapterList": [
            {
                "Duration": {
                    "Hours": 0,
                    "Minutes": 0,
                    "Seconds": 58,
                    "Ticks": 5227200
                },
                "Name": ""
            }
        ],
        "ChapterMarkers": false,
        "File": "/home/username/Videos/2021-05-01 07.59.02 Neko C0007.webm",
        "InlineParameterSets": false,
        "Mp4Options": {
            "IpodAtom": false,
            "Mp4Optimize": false
        },
        "Mux": "av_webm"
    },
    "Filters": {
        "FilterList": [
            {
                "ID": 6,
                "Settings": {
                    "mode": 0
                }
            },
            {
                "ID": 12,
                "Settings": {
                    "crop-bottom": 0,
                    "crop-left": 0,
                    "crop-right": 0,
                    "crop-top": 0,
                    "height": 2160,
                    "width": 3840
                }
            }
        ]
    },
    "Metadata": {
        "Name": "2021-05-01 07.59.02 Neko C0007"
    },
    "PAR": {
        "Den": 1,
        "Num": 1
    },
    "SequenceID": 0,
    "Source": {
        "Angle": 0,
        "Path": "/home/username/Pictures/Photos/2021/2021_Neko/2021-05-01 07.59.02 Neko C0007.mp4",
        "Range": {
            "End": 1,
            "Start": 1,
            "Type": "chapter"
        },
        "Title": 1
    },
    "Subtitle": {
        "Search": {
            "Burn": true,
            "Default": false,
            "Enable": false,
            "Forced": false
        },
        "SubtitleList": []
    },
    "Video": {
        "ColorFormat": 0,
        "ColorMatrix": 1,
        "ColorPrimaries": 1,
        "ColorRange": 1,
        "ColorTransfer": 11,
        "Encoder": "VP9",
        "Level": "auto",
        "Options": "",
        "Preset": "slow",
        "Profile": "auto",
        "QSV": {
            "AsyncDepth": 4,
            "Decode": false
        },
        "Quality": 24.0,
        "Tune": "",
        "Turbo": false,
        "TwoPass": false
    }
}
[08:25:01] CPU: AMD Ryzen 7 5800H with Radeon Graphics         
[08:25:01]  - logical processor count: 16
[08:25:01] Intel Quick Sync Video support: no
[08:25:01] hb_scan: path=/home/username/Pictures/Photos/2021/2021_Neko/2021-05-01 07.59.02 Neko C0007.mp4, title_index=1
udfread ERROR: ECMA 167 Volume Recognition failed
disc.c:323: failed opening UDF image /home/username/Pictures/Photos/2021/2021_Neko/2021-05-01 07.59.02 Neko C0007.mp4
disc.c:424: error opening file BDMV/index.bdmv
disc.c:424: error opening file BDMV/BACKUP/index.bdmv
bluray.c:2585: nav_get_title_list(/home/username/Pictures/Photos/2021/2021_Neko/2021-05-01 07.59.02 Neko C0007.mp4/) failed
[08:25:01] 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
[08:25:01] dvd: not a dvd - trying as a stream/file instead
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '/home/username/Pictures/Photos/2021/2021_Neko/2021-05-01 07.59.02 Neko C0007.mp4':
  Metadata:
    major_brand     : XAVC
    minor_version   : 16785407
    compatible_brands: XAVCmp42iso2
    creation_time   : 2021-05-01T06:58:02.000000Z
  Duration: 00:00:58.08, start: 0.000000, bitrate: 100371 kb/s
    Stream #0:0(und): Video: h264 (High) (avc1 / 0x31637661), yuv420p(tv, bt709/bt709/iec61966-2-4), 3840x2160 [SAR 1:1 DAR 16:9], 98628 kb/s, 25 fps, 25 tbr, 25k tbn, 50 tbc (default)
    Metadata:
      creation_time   : 2021-05-01T06:58:02.000000Z
      handler_name    : Video Media Handler
      encoder         : AVC Coding
    Stream #0:1(und): Audio: pcm_s16be (twos / 0x736F7774), 48000 Hz, 2 channels, s16, 1536 kb/s (default)
    Metadata:
      creation_time   : 2021-05-01T06:58:02.000000Z
      handler_name    : Sound Media Handler
    Stream #0:2(und): Data: none (rtmd / 0x646D7472), 204 kb/s (default)
    Metadata:
      creation_time   : 2021-05-01T06:58:02.000000Z
      handler_name    : Timed Metadata Media Handler
      timecode        : 00:20:22:02
[08:25:01] scan: decoding previews for title 1
[08:25:02] scan: audio 0x1: pcm_s16be, rate=48000Hz, bitrate=1536000 Unknown (pcm_s16be) (2.0 ch) (1536 kbps)
[08:25:03] scan: 10 previews, 3840x2160, 25.000 fps, autocrop = 0/0/0/0, aspect 16:9, PAR 1:1
[08:25:03] scan: supported video decoders: avcodec qsv
[08:25:03] libhb: scan thread found 1 valid title(s)
[08:25:03] Starting Task: Encoding Pass
[08:25:03] Skipping vfr filter
[08:25:03] Skipping crop/scale filter
[08:25:03] work: compression level not specified, track 1 setting compression level 10.00
[08:25:03] job configuration:
[08:25:03]  * source
[08:25:03]    + /home/username/Pictures/Photos/2021/2021_Neko/2021-05-01 07.59.02 Neko C0007.mp4
[08:25:03]    + title 1, chapter(s) 1 to 1
[08:25:03]    + container: mov,mp4,m4a,3gp,3g2,mj2
[08:25:03]    + data rate: 100371 kbps
[08:25:03]  * destination
[08:25:03]    + /home/usernam/Videos/2021-05-01 07.59.02 Neko C0007.webm
[08:25:03]    + container: WebM (libavformat)
[08:25:03]  * video track
[08:25:03]    + decoder: h264
[08:25:03]      + bitrate 98628 kbps
[08:25:03]    + Output geometry
[08:25:03]      + storage dimensions: 3840 x 2160
[08:25:03]      + pixel aspect ratio: 1 : 1
[08:25:03]      + display dimensions: 3840 x 2160
[08:25:03]    + encoder: VP9 (libvpx)
[08:25:03]      + preset:  slow
[08:25:03]      + quality: 24.00 (CQ)
[08:25:03]      + color profile: 1-11-1
[08:25:03]  * audio track 1
[08:25:03]    + decoder: Unknown (pcm_s16be) (2.0 ch) (1536 kbps) (track 1, id 0x1)
[08:25:03]      + bitrate: 1536 kbps, samplerate: 48000 Hz
[08:25:03]    + mixdown: Stereo
[08:25:03]    + dither: triangular
[08:25:03]    + encoder: Opus (libopus)
[08:25:03]      + bitrate: 128 kbps, samplerate: 48000 Hz
[08:25:03]      + compression level: 10.00
[08:25:04] sync: expecting 1452 video frames
[08:25:04] encavcodecInit: VP9 encoder
[08:25:04] encavcodec: encoding at CQ 24.00
[08:25:04] encavcodec: encoding with stored aspect 1/1
[libvpx-vp9 @ 0x7f1ed0479780] Failed to initialize encoder: ABI version mismatch
[08:25:04] encavcodecInit: avcodec_open failed
[08:25:04] Failure to initialise thread 'FFMPEG encoder (libavcodec)'
[08:25:04] Failure to initialise thread 'FFMPEG encoder (libavcodec)'
[08:25:04] pcm_s16be-decoder done: 0 frames, 0 decoder errors
[08:25:04] h264-decoder done: 0 frames, 0 decoder errors
[08:25:04] sync: got 0 frames, 1452 expected
[08:25:04] Finished work at: Sat May  1 08:25:04 2021

[08:25:04] libhb: work result = 3
Deleted User 11865

Re: Error when encoding in VP9: Failed to initialize encoder: ABI version mismatch

Post by Deleted User 11865 »

Intriguing :?
User avatar
s55
HandBrake Team
Posts: 10350
Joined: Sun Dec 24, 2006 1:05 pm

Re: Error when encoding in VP9: Failed to initialize encoder: ABI version mismatch

Post by s55 »

It's fixed for the next release. IN the mean time, all you can do is use a development snapshot build / compile from source

Also note, the Flathub build was probably refreshed by the GTK update recently. Ergo the 2021 date.
TomDalla
Posts: 4
Joined: Sun Apr 25, 2021 3:16 pm

Re: Error when encoding in VP9: Failed to initialize encoder: ABI version mismatch

Post by TomDalla »

Understood, thanks.

Yes I'm on the nightly for now, which works as a charm (for VP9/Opus at least).
Post Reply