Skip to content

ubuntu24下运行pyscenedetect报错 Your platform doesn't support hardware accelerated AV1 decoding. #533

Closed

Description

@llspaces

ubuntu24下运行pyscenedetect报错 Your platform doesn't support hardware accelerated AV1 decoding.

Detected: 0 | Progress: 0%| | 0/38967 [00:00<?, ?frames/s][av1 @ 0x5e57f6918f80] Your platform doesn't support hardware accelerated AV1 decoding.
[av1 @ 0x5e57f6918f80] Failed to get pixel format.
[av1 @ 0x5e57f6918f80] Get current frame error

ffmpeg支持av1解码
fmpeg version 6.1.1-3ubuntu5 Copyright (c) 2000-2023 the FFmpeg developers
built with gcc 13 (Ubuntu 13.2.0-23ubuntu3)
configuration: --prefix=/usr --extra-version=3ubuntu5 --toolchain=hardened --libdir=/usr/lib/x86_64-linux-gnu --incdir=/usr/include/x86_64-linux-gnu --arch=amd64 --enable-gpl --disable-stripping --disable-omx --enable-gnutls --enable-libaom --enable-libass --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libcodec2 --enable-libdav1d --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libglslang --enable-libgme --enable-libgsm --enable-libharfbuzz --enable-libmp3lame --enable-libmysofa --enable-libopenjpeg --enable-libopenmpt --enable-libopus --enable-librubberband --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvorbis --enable-libvpx --enable-libwebp --enable-libx265 --enable-libxml2 --enable-libxvid --enable-libzimg --enable-openal --enable-opencl --enable-opengl --disable-sndio --enable-libvpl --disable-libmfx --enable-libdc1394 --enable-libdrm --enable-libiec61883 --enable-chromaprint --enable-frei0r --enable-ladspa --enable-libbluray --enable-libjack --enable-libpulse --enable-librabbitmq --enable-librist --enable-libsrt --enable-libssh --enable-libsvtav1 --enable-libx264 --enable-libzmq --enable-libzvbi --enable-lv2 --enable-sdl2 --enable-libplacebo --enable-librav1e --enable-pocketsphinx --enable-librsvg --enable-libjxl --enable-shared

Activity

  1. added this to the 0.7.3 milestone on Oct 24, 2026
  2. Breakthrough commented on Oct 24, 2026

    @Breakthrough
    Owner

    Can you provide the output of scenedetect --version? Thanks!

  3. removed this from the 0.7.3 milestone on Oct 25, 2026
  4. Breakthrough commented on Oct 26, 2026

    @Breakthrough
    Owner

    Try updating opencv-python.

    I thought about it some more, and I realized this error is from the FFmpeg library bundled inside the opencv-python wheel:

    
    Detected: 0 | Progress: 0%| | 0/38967 [00:00<?, ?frames/s][av1 @ 0x5e57f6918f80] Your platform doesn't support hardware accelerated AV1 decoding.
    [av1 @ 0x5e57f6918f80] Failed to get pixel format.
    [av1 @ 0x5e57f6918f80] Get current frame error
    

    It does not use your system ffmpeg, so the system build does not help here.

    FFmpeg's built-in av1 decoder only works with hardware acceleration. When libavcodec is compiled without a software AV1 decoder (libdav1d or libaom), FFmpeg falls back to that built-in decoder and fails with "Your platform doesn't support hardware accelerated AV1 decoding".

    Newer versions of the package have fixed this I believe:

    You can also use the PyAV backend instead if you do pip install av and scenedetect -i video.mkv --backend pyav.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions