V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
KimiblockMoe
V2EX  ›  哔哩哔哩

Archlinux, 13 代 Intel 移动处理器无法硬件解码 Bilibili AV1 视频, YouTube AV1 正常

  •  
  •   KimiblockMoe · 2023-04-17 20:03:37 +08:00 · 2005 次点击
    这是一个创建于 620 天前的主题,其中的信息可能已经有所发展或是发生改变。

    直接在 Firefox 下播放 AV1 无法使用硬解.

    尝试使用 Evolved 插件下载的纯视频 AV1 .mp4, 使用 MPV 播放也无法使用 VAAPI 硬件加速.

    MPV 日志:

    kimiblock@moeOS-Tablet ~/Downloads> mpv --hwdec=auto --gpu-hwdec-interop=vaapi --msg-level=vd=v,vo=v,vo/gpu/vaapi-egl=trace /home/kimiblock/kimiblock/Downloads/1063406005-1-100026.mp4
     (+) Video --vid=1 (*) (av1 1920x960 29.970fps)
    File tags:
     Description: Bilibili VXCode Swarm Transcoder v0.7.53
    [vo/gpu] Probing for best GPU context.
    [vo/gpu/opengl] Initializing GPU context 'wayland'
    [vo/gpu/wayland] Registered for protocol wl_compositor
    [vo/gpu/wayland] Registered for protocol xdg_wm_base
    [vo/gpu/wayland] Registered for protocol zxdg_decoration_manager_v1
    [vo/gpu/wayland] Registered for protocol wp_viewporter
    [vo/gpu/wayland] Registered for protocol wl_shm
    [vo/gpu/wayland] Registered for protocol wl_seat
    [vo/gpu/wayland] Registered for protocol wl_data_device_manager
    [vo/gpu/wayland] Registered for protocol zwp_idle_inhibit_manager_v1
    [vo/gpu/wayland] Registered for protocol wl_subcompositor
    [vo/gpu/wayland] Registered for protocol zwp_linux_dmabuf_v1
    [vo/gpu/wayland] Registered for protocol wl_output
    [vo/gpu/wayland] Registered for protocol wl_output
    [vo/gpu/wayland] Compositor doesn't support the wp_presentation protocol!
    [vo/gpu/wayland] Registered output  DSI-1-unknown (0x2f):
    [vo/gpu/wayland]        x: 0px, y: 1901px
    [vo/gpu/wayland]        w: 1600px (0mm), h: 2560px (0mm)
    [vo/gpu/wayland]        scale: 2
    [vo/gpu/wayland]        Hz: 60.147000
    [vo/gpu/wayland] Registered output Dell Inc. DELL U2723QX/5G3KWN3 (0x30):
    [vo/gpu/wayland]        x: 1347px, y: 0px
    [vo/gpu/wayland]        w: 3840px (340mm), h: 2160px (600mm)
    [vo/gpu/wayland]        scale: 2
    [vo/gpu/wayland]        Hz: 59.997000
    [vo/gpu/wayland] Enabling server decorations
    [vo/gpu/opengl] EGL_VERSION=1.5
    [vo/gpu/opengl] EGL_VENDOR=Mesa Project
    [vo/gpu/opengl] EGL_CLIENT_APIS=OpenGL OpenGL_ES 
    [vo/gpu/opengl] Trying to create Desktop OpenGL context.
    [vo/gpu/wayland] GL_VERSION='4.6 (Core Profile) Mesa 23.0.2'
    [vo/gpu/wayland] Detected desktop OpenGL 4.6.
    [vo/gpu/wayland] GL_VENDOR='Intel'
    [vo/gpu/wayland] GL_RENDERER='Mesa Intel(R) Graphics (RPL-P)'
    [vo/gpu/wayland] GL_SHADING_LANGUAGE_VERSION='4.60'
    [vo/gpu/wayland] Loaded extension GL_KHR_debug.
    [vo/gpu] Testing FBO format rgba16f
    [vo/gpu] Using FBO format rgba16f.
    [vo/gpu] No advanced processing required. Enabling dumb mode.
    [vo/gpu] Loading hwdec driver 'vaapi'
    [vo/gpu/vaapi] using EGL dmabuf interop
    [vo/gpu/vaapi] Trying to open a x11 VA display...
    [vo/gpu/vaapi] Trying to open a wayland VA display...
    [vo/gpu/vaapi/vaapi] Initialized VAAPI: version 1.18
    [vo/gpu/vaapi] Going to probe surface formats (may log bogus errors)...
    [vo/gpu/vaapi] Done probing surface formats.
    [vd] Container reported FPS: 29.970030
    [vd] Codec list:
    [vd]     libdav1d (av1) - dav1d AV1 decoder by VideoLAN
    [vd]     libaom-av1 (av1) - libaom AV1
    [vd]     av1 - Alliance for Open Media AV1
    [vd]     av1_cuvid (av1) - Nvidia CUVID AV1 decoder
    [vd]     av1_qsv (av1) - AV1 video (Intel Quick Sync Video acceleration)
    [vd] Opening decoder libdav1d
    [vd] Looking at hwdec av1-nvdec...
    [vd] Could not create device.
    [vd] Looking at hwdec av1-vaapi...
    [vd] Trying hardware decoding via av1-vaapi.
    [vd] Using underlying hw-decoder 'av1'
    [ffmpeg/video] av1: Failed to read unit 1 (type 5).
    [ffmpeg/video] av1: Failed to read extradata.
    Could not open codec.
    [vd] Falling back to software decoding.
    [vd] Detected 12 logical cores.
    [vd] Requesting 13 threads for decoding.
    [vd] Selected codec: libdav1d (dav1d AV1 decoder by VideoLAN)
    [ffmpeg/video] libdav1d: Unknown Metadata OBU type 6
    [vd] Using software decoding.
    [vd] Decoder format: 1920x960 yuv420p bt.709/bt.709/bt.1886/limited/auto CL=unknown
    [vd] Using container aspect ratio.
    VO: [gpu] 1920x960 yuv420p
    [vo/gpu] reconfig to 1920x960 yuv420p bt.709/bt.709/bt.1886/limited/display SP=1.000000 CL=mpeg2/4/h264
    [vo/gpu/wayland] Reconfiguring!
    [vo/gpu] Resize: 1920x960
    [vo/gpu] Window size: 1920x960 (Borders: l=0 t=0 r=0 b=0)
    [vo/gpu] Video source: 1920x960 (1:1)
    [vo/gpu] Video display: (0, 0) 1920x960 -> (0, 0) 1920x960
    [vo/gpu] Video scale: 1.000000/1.000000
    [vo/gpu] OSD borders: l=0 t=0 r=0 b=0
    [vo/gpu] Video borders: l=0 t=0 r=0 b=0
    [vo/gpu] Texture for plane 0: 1920x960
    [vo/gpu] Texture for plane 1: 960x480
    [vo/gpu] Texture for plane 2: 960x480
    [vo/gpu] Testing FBO format rgba16f
    [vo/gpu] Using FBO format rgba16f.
    [vo/gpu] No advanced processing required. Enabling dumb mode.
    [vo/gpu/wayland] Handling resize on the egl side
    [vo/gpu] Resize: 1920x960
    [vo/gpu] Window size: 1920x960 (Borders: l=0 t=0 r=0 b=0)
    [vo/gpu] Video source: 1920x960 (1:1)
    [vo/gpu] Video display: (0, 0) 1920x960 -> (0, 0) 1920x960
    [vo/gpu] Video scale: 1.000000/1.000000
    [vo/gpu] OSD borders: l=0 t=0 r=0 b=0
    [vo/gpu] Video borders: l=0 t=0 r=0 b=0
    [vo/gpu] Reported display depth: 10
    [vo/gpu/wayland] Surface entered output Dell Inc. DELL U2723QX/5G3KWN3 (0x30), scale = 2, refresh rate = 59.997000 Hz
    [vo/gpu/wayland] Given DND offer with mime type text/plain;charset=utf-8
    [vo/gpu/wayland] Received a new DND offer. Releasing the previous offer.
    [vo/gpu] Assuming 59.997000 FPS for display sync.
    [vo/gpu/wayland] Enabling idle inhibitor
    V: 00:00:02 / 00:18:11 (0%)
    [vo/gpu] Reallocating OSD texture to 2048x256.
    V: 00:00:04 / 00:18:11 (0%)
    [ffmpeg/video] libdav1d: Unknown Metadata OBU type 6
    V: 00:00:05 / 00:18:11 (0%)
    [vo/gpu/wayland] Disabling the idle inhibitor
    
    Exiting... (Quit)
    [vo/gpu/wayland] Deregistering output Dell Inc. DELL U2723QX/5G3KWN3 (0x30)
    [vo/gpu/wayland] Deregistering output  DSI-1-unknown (0x2f)
    

    是 B 站对 AV1 格式有什么魔改吗? 试过 YouTube AV1, 无论是 Firefox 还是 MPV 都是好的.

    第 1 条附言  ·  2023-04-21 20:12:03 +08:00
    让朋友的 11 代 Intel 笔记本试过了, Windows, 也是 YouTube 正常而 Bilibili 不能硬解.
    4 条回复    2023-11-09 17:07:58 +08:00
    Keuin
        1
    Keuin  
       2023-06-04 19:36:46 +08:00
    刚刚用 ffmpeg 处理的时候也遇到这个报错了“Unknown Metadata OBU type 6”,翻了一下源代码,这个报错意思是遇到了未知类型的元数据信息,从枚举值 6 可以看到这个是 B 站定义的私有信息,B 站这个 AV1 确实是魔改过的。我用 mpv 可以直接播放,看来忽略这个东西也不影响正常的解码。
    Keuin
        2
    Keuin  
       2023-06-04 19:37:24 +08:00
    1078249029
        3
    1078249029  
       2023-11-09 17:06:41 +08:00
    在微软商店下载 AV1 video extention 就可以让火狐使用 GPU 硬解
    这种东西不内置微软真的是有毛病
    1078249029
        4
    1078249029  
       2023-11-09 17:07:58 +08:00
    @1078249029 回错了,麻烦管理删一下,谢谢
    /(ㄒoㄒ)/~~
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   实用小工具   ·   2756 人在线   最高记录 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 24ms · UTC 14:28 · PVG 22:28 · LAX 06:28 · JFK 09:28
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.