お知らせ

  • 利用規約を守って投稿してください。また、よくある質問および投稿の手引きも参照してください。
  • メッセージの投稿にはアカウントが必要です。未登録の方は、ユーザ登録ページからアカウントを作成することができます。

#1 2025-03-08 19:28:46

opd_linux
新しいメンバ
登録日: 2025-03-07

mpvのhdwc=avapiを指定するとlibEGLに警告が発生します

mpvで多数の警告が出るようになりました。解決策をご教授頂きたいです。

    機種 : CHUWI GemiBook Pro
    OS : Lubuntu24.04.1
    CPU : Intel Celeron N5100
    memory : 8GB

これは蛇足かもしれませんが解決の糸口になるかもしれないので書いておきます。

vivaldiというブラウザで動画の再生にintel内蔵のgpuでデコードをさせたく、色々調べていました。

その中でvdpauinfoの表示に何も出ないことに気づいたので libvdpau-va-gl1をインストールしたあとから警告が出るようになったと感じています。

何も関係なかったらごめんなさい。

**********************************************************************************************************************************

$ mpv --hwdec=vaapi  Downloads/Big_Buck_Bunny_1080_10s_5MB.mp4                                                                                                 
(+) Video --vid=1 (*) (h264 1920x1080 60.000fps)
libEGL warning: DRI3: Screen seems not DRI3 capable
libEGL warning: failed to get driver name for fd -1

libEGL warning: MESA-LOADER: failed to retrieve device information

libEGL warning: failed to get driver name for fd -1

Using hardware decoding (vaapi).
VO: [gpu] 1920x1080 vaapi[nv12]

Exiting... (Quit)

**********************************************************************************************************************************

$ mpv -v --hwdec=vaapi  Downloads/Big_Buck_Bunny_1080_10s_5MB.mp4                                                                                                 
[cplayer] Command line options: '-v' '--hwdec=vaapi' 'Downloads/Big_Buck_Bunny_1080_10s_5MB.mp4'
[cplayer] mpv 0.37.0 Copyright © 2000-2023 mpv/MPlayer/mplayer2 projects                                                                                                                         
[cplayer] libplacebo version: v6.338.2                                                                                                                                                           
[cplayer] FFmpeg version: 6.1.1-3ubuntu5                                                                                                                                                         
[cplayer] FFmpeg library versions:                                                                                                                                                               
[cplayer]    libavutil       58.29.100                                                                                                                                                           
[cplayer]    libavcodec      60.31.102                                                                                                                                                           
[cplayer]    libavformat     60.16.100                                                                                                                                                           
[cplayer]    libswscale      7.5.100                                                                                                                                                             
[cplayer]    libavfilter     9.12.100                                                                                                                                                             
[cplayer]    libswresample   4.12.100                                                                                                                                                             
[cplayer]                                                                                                                                                                                         
[cplayer] Configuration: -Dpython.bytecompile=-1 -Dlibmpv=true -Dbuild-date=false -Dcdda=enabled -Ddvdnav=enabled -Dsdl2=enabled -Dsndio=disabled -Ddvbin=enabled -Dprefix=/usr -Dlibdir=lib/x86_64-linux-gnu -Dlocalstatedir=/var -Dsysconfdir=/etc -Dbuildtype=plain -Dwrap_mode=nodownload                                                                                                       
[cplayer] List of enabled features: alsa av-channel-layout avif-muxer caca cdda cplugins cuda-hwaccel cuda-interop dmabuf-interop-gl dmabuf-wayland drm dvbin dvdnav egl egl-drm egl-helpers egl-wayland egl-x11 ffmpeg ffnvcodec gbm gl glibc-thread-name glob glob-posix gpl iconv jack javascript jpeg jpegxl lavu-uuid lcms2 libarchive libass libavdevice libbluray libdl libm libplacebo librt linux-fstatfs lua52 manpage-build memfd-create noexecstack pipewire posix posix-shm ppoll pulse rubberband rubberband-3 sdl2 sdl2-audio sdl2-gamepad sdl2-video sixel spirv-cross threads uchardet vaapi vaapi-drm vaapi-wayland vaapi-x11 vdpau vector vk-khr-display vt.h vulkan vulkan-interop wayland wayland-protocols-1-27 wayland-protocols-1-31 wayland-protocols-1-32 x11 xv zimg zimg-st428 zlib                                                                                                                                                                                           
[cplayer] Reading config file /etc/mpv/encoding-profiles.conf                                                                                                                                     
[ifo_dvdnav] Opening /etc/mpv/encoding-profiles.conf                                                                                                                                             
[bdmv/bluray] Opening /etc/mpv/encoding-profiles.conf                                                                                                                                             
[file] Opening /etc/mpv/encoding-profiles.conf                                                                                                                                                   
[cplayer] Applying profile 'default'...                                                                                                                                                           
[cplayer] Reading config file /etc/mpv/mpv.conf                                                                                                                                                   
[ifo_dvdnav] Opening /etc/mpv/mpv.conf                                                                                                                                                           
[bdmv/bluray] Opening /etc/mpv/mpv.conf                                                                                                                                                           
[file] Opening /etc/mpv/mpv.conf                                                                                                                                                                 
[cplayer] Applying profile 'default'...                                                                                                                                                           
[cplayer] Setting option 'hwdec' = 'vaapi' (flags = 4)                                                                                                                                           
[cplayer] Reading config file /home/gggriver/.config/mpv/mpv.conf                                                                                                                                 
[ifo_dvdnav] Opening /home/gggriver/.config/mpv/mpv.conf                                                                                                                                         
[bdmv/bluray] Opening /home/gggriver/.config/mpv/mpv.conf                                                                                                                                         
[file] Opening /home/gggriver/.config/mpv/mpv.conf                                                                                                                                               
[cplayer] Applying profile 'default'...                                                                                                                                                           
[cplayer] Setting option 'v' = '' (flags = 8)                                                                                                                                                     
[cplayer] Setting option 'hwdec' = 'vaapi' (flags = 8)                                                                                                                                           
[cplayer] Waiting for scripts...                                                                                                                                                                 
[cplayer] Set property: user-data/osc/visibility="auto" -> 1                                                                                                                                     
[cplayer] Set property: user-data/osc/margins={"l":0,"b":0,"r":0,"t":0} -> 1                                                                                                                     
[cplayer] Done loading scripts.                                                                                                                                                                   
[cplayer] Running hook: ytdl_hook/on_load                                                                                                                                                         
[ytdl_hook] ytdl:// hook                                                                                                                                                                         
[cplayer] Set property: user-data/osc/margins={"l":0,"b":0,"r":0,"t":0} -> 1                                                                                                                     
[ytdl_hook] not a ytdl:// url                                                                                                                                                                     
[cplayer] Running hook: ytdl_hook/on_load                                                                                                                                                         
[ytdl_hook] playlist hook                                                                                                                                                                         
[ifo_dvdnav] Opening Downloads/Big_Buck_Bunny_1080_10s_5MB.mp4                                                                                                                                   
[bdmv/bluray] Opening Downloads/Big_Buck_Bunny_1080_10s_5MB.mp4                                                                                                                                   
[file] Opening Downloads/Big_Buck_Bunny_1080_10s_5MB.mp4                                                                                                                                         
[demux] Trying demuxers for level=normal.                                                                                                                                                         
[cplayer] Set property: user-data/osc/margins={"l":0,"b":0,"r":0,"t":0} -> 1                                                                                                                     
[osd/libass] libass API version: 0x1701000                                                                                                                                                       
[osd/libass] libass source: tarball: 0.17.1                                                                                                                                                       
[osd/libass] Shaper: FriBidi 1.0.13 (SIMPLE) HarfBuzz-ng 8.3.0 (COMPLEX)                                                                                                                         
[osd/libass] Setting up fonts...                                                                                                                                                                 
[lavf] Found 'mov,mp4,m4a,3gp,3g2,mj2' at score=100 size=2048.                                                                                                                                   
[demux] Detected file format: mov,mp4,m4a,3gp,3g2,mj2 (libavformat)                                                                                                                               
[cplayer] Opening done: Downloads/Big_Buck_Bunny_1080_10s_5MB.mp4                                                                                                                                 
[osd/libass] Using font provider fontconfig                                                                                                                                                       
[osd/libass] Done.                                                                                                                                                                               
[find_files] Loading external files in Downloads/                                                                                                                                                 
[cplayer] Running hook: ytdl_hook/on_preloaded                                                                                                                                                   
[lavf] select track 0

[cplayer]  (+) Video --vid=1 (*) (h264 1920x1080 60.000fps)
[vo/gpu] Probing for best GPU context.
[vo/gpu/opengl] Initializing GPU context 'wayland'                                                                                                                                               
[vo/gpu/opengl] Initializing GPU context 'x11egl'                                                                                                                                                 
[vo/gpu/x11] X11 opening display: :0                                                                                                                                                             
[vo/gpu/x11] Display 0 (eDP1): [0, 0, 2160, 1440] @ 60.001165 FPS                                                                                                                                 
[vo/gpu/x11] Current display FPS: 60.001165

libEGL warning: DRI3: Screen seems not DRI3 capable                                                                                                                                               
libEGL warning: failed to get driver name for fd -1

libEGL warning: MESA-LOADER: failed to retrieve device information

libEGL warning: failed to get driver name for fd -1

[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/opengl] Choosing visual EGL config 0x15, visual ID 0x20                                                                                                                                   
[vo/gpu/x11] The XPresent extension was found.                                                                                                                                                   
[vo/gpu/x11] XPresent enabled.                                                                                                                                                                   
[vo/gpu/opengl] GL_VERSION='4.6 (Core Profile) Mesa 24.2.8-1ubuntu1~24.04.1'                                                                                                                     
[vo/gpu/opengl] Detected desktop OpenGL 4.6.                                                                                                                                                     
[vo/gpu/opengl] GL_VENDOR='Intel'                                                                                                                                                                 
[vo/gpu/opengl] GL_RENDERER='Mesa Intel(R) UHD Graphics (JSL)'                                                                                                                                   
[vo/gpu/opengl] GL_SHADING_LANGUAGE_VERSION='4.60'                                                                                                                                               
[vo/gpu/opengl] Loaded extension GL_KHR_debug.                                                                                                                                                   
[vo/gpu] Testing FBO format rgba16f                                                                                                                                                               
[vo/gpu] Using FBO format rgba16f.                                                                                                                                                               
[vo/gpu] Assuming 60.001165 FPS for display sync.                                                                                                                                                 
[vd] Container reported FPS: 60.000000                                                                                                                                                           
[vd] Codec list:                                                                                                                                                                                 
[vd]     h264 - H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10                                                                                                                                         
[vd]     h264_v4l2m2m (h264) - V4L2 mem2mem H.264 decoder wrapper                                                                                                                                 
[vd]     h264_qsv (h264) - H264 video (Intel Quick Sync Video acceleration)                                                                                                                       
[vd]     h264_cuvid (h264) - Nvidia CUVID H264 decoder                                                                                                                                           
[vd] Opening decoder h264                                                                                                                                                                         
[vd] Looking at hwdec h264-vaapi...                                                                                                                                                               
[vo/gpu] Loading hwdec drivers for format: 'vaapi'                                                                                                                                               
[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/vaapi] Initialized VAAPI: version 1.20                                                                                                                                             
[vo/gpu/vaapi] Going to probe surface formats (may log bogus errors)...                                                                                                                           
[vo/gpu/vaapi] Done probing surface formats.                                                                                                                                                     
[vd] Trying hardware decoding via h264-vaapi.                                                                                                                                                     
[vd] Selected codec: H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10                                                                                                                                   
[vf] User filter list:                                                                                                                                                                           
[vf]   (empty)                                                                                                                                                                                   
[cplayer] Starting playback...                                                                                                                                                                   
[osd/libass] libass API version: 0x1701000                                                                                                                                                       
[osd/libass] libass source: tarball: 0.17.1                                                                                                                                                       
[osd/libass] Shaper: FriBidi 1.0.13 (SIMPLE) HarfBuzz-ng 8.3.0 (COMPLEX)                                                                                                                         
[osd/libass] Setting up fonts...                                                                                                                                                                 
[osd/libass] Using font provider fontconfig                                                                                                                                                       
[osd/libass] Done.                                                                                                                                                                               
[vd] Pixel formats supported by decoder: vdpau vulkan cuda vaapi yuv420p                                                                                                                         
[vd] Codec profile: High (0x64)                                                                                                                                                                   
[vd] Requesting pixfmt 'vaapi' from decoder.

[vd] Using hardware decoding (vaapi).
[vd] Decoder format: 1920x1080 vaapi[nv12] auto/auto/auto/auto/auto CL=mpeg2/4/h264 crop=1920x1080+0+0
[vd] Using container aspect ratio.                                                                                                                                                               
[vf] [in] 1920x1080 vaapi[nv12] bt.709/bt.709/bt.1886/limited/display CL=mpeg2/4/h264 crop=1920x1080+0+0                                                                                         
[vf] [userdeint] 1920x1080 vaapi[nv12] bt.709/bt.709/bt.1886/limited/display CL=mpeg2/4/h264 crop=1920x1080+0+0                                                                                   
[vf] [userdeint] (disabled)                                                                                                                                                                       
[vf] [autorotate] 1920x1080 vaapi[nv12] bt.709/bt.709/bt.1886/limited/display CL=mpeg2/4/h264 crop=1920x1080+0+0                                                                                 
[vf] [autorotate] (disabled)                                                                                                                                                                     
[vf] [convert] 1920x1080 vaapi[nv12] bt.709/bt.709/bt.1886/limited/display CL=mpeg2/4/h264 crop=1920x1080+0+0                                                                                     
[vo/gpu] Loading hwdec drivers for format: 'vaapi'                                                                                                                                               
[vf] [out] 1920x1080 vaapi[nv12] bt.709/bt.709/bt.1886/limited/display CL=mpeg2/4/h264 crop=1920x1080+0+0

[cplayer] VO: [gpu] 1920x1080 vaapi[nv12]
[cplayer] VO: Description: Shader-based GPU Renderer
[vo/gpu] reconfig to 1920x1080 vaapi[nv12] bt.709/bt.709/bt.1886/limited/display CL=mpeg2/4/h264 crop=1920x1080+0+0                                                                               
[vo/gpu/x11] not waiting for MapNotify                                                                                                                                                           
[vo/gpu] Resize: 1920x1080                                                                                                                                                                       
[vo/gpu] Window size: 1920x1080 (Borders: l=0 t=0 r=0 b=0)                                                                                                                                       
[vo/gpu] Video source: 1920x1080 (1:1)                                                                                                                                                           
[vo/gpu] Video display: (0, 0) 1920x1080 -> (0, 0) 1920x1080                                                                                                                                     
[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: 8                                                                                                                                                               
[vo/gpu] Testing FBO format rgba16f                                                                                                                                                               
[vo/gpu] Using FBO format rgba16f.                                                                                                                                                               
[vo/gpu] Dither to 8.                                                                                                                                                                             
[cplayer] first video frame after restart shown                                                                                                                                                   
[cplayer] playback restart complete @ 0.000000, audio=eof, video=playing                                                                                                                         
[vo/gpu/x11] Disabling screensaver.                                                                                                                                                               
[cplayer] Set property: user-data/osc/margins={"l":0,"b":0,"r":0,"t":0} -> 1                                                                                                                     
[cplayer] Set property: user-data/osc/margins={"l":0,"b":0,"r":0,"t":0} -> 1                                                                                                                     
[cplayer] EOF code: 5                                                                                                                                                                             
[cplayer] finished playback, success (reason 3)

[cplayer] Exiting... (Quit)
[vo/gpu/x11] Enabling screensaver.


**********************************************************************************************************************************

$ 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 - 24.1.0 ()
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
      VAProfileVP8Version0_3          :    VAEntrypointVLD
      VAProfileHEVCMain               :    VAEntrypointVLD
      VAProfileHEVCMain               :    VAEntrypointEncSliceLP
      VAProfileHEVCMain10             :    VAEntrypointVLD
      VAProfileHEVCMain10             :    VAEntrypointEncSliceLP
      VAProfileVP9Profile0            :    VAEntrypointVLD
      VAProfileVP9Profile0            :    VAEntrypointEncSliceLP
      VAProfileVP9Profile1            :    VAEntrypointVLD
      VAProfileVP9Profile1            :    VAEntrypointEncSliceLP
      VAProfileVP9Profile2            :    VAEntrypointVLD
      VAProfileVP9Profile2            :    VAEntrypointEncSliceLP
      VAProfileVP9Profile3            :    VAEntrypointVLD
      VAProfileVP9Profile3            :    VAEntrypointEncSliceLP
      VAProfileHEVCMain422_10         :    VAEntrypointVLD
      VAProfileHEVCMain444            :    VAEntrypointVLD
      VAProfileHEVCMain444            :    VAEntrypointEncSliceLP
      VAProfileHEVCMain444_10         :    VAEntrypointVLD
      VAProfileHEVCMain444_10         :    VAEntrypointEncSliceLP

**********************************************************************************************************************************

$ vdpauinfo
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
display: :0   screen: 0
API version: 1
Information string: OpenGL/VAAPI backend for VDPAU

Video surface:

name   width height types
-------------------------------------------
420     4096  4096  NV12 YV12 UYVY YUYV Y8U8V8A8 V8U8Y8A8 NV24 YV24 P010 P016 Y_U_V_444_16
422     4096  4096  NV12 YV12 UYVY YUYV Y8U8V8A8 V8U8Y8A8 NV24 YV24 P010 P016 Y_U_V_444_16
444     4096  4096  NV12 YV12 UYVY YUYV Y8U8V8A8 V8U8Y8A8 NV24 YV24 P010 P016 Y_U_V_444_16
420_16  4096  4096  NV12 YV12 UYVY YUYV Y8U8V8A8 V8U8Y8A8 NV24 YV24 P010 P016 Y_U_V_444_16
422_16  4096  4096  NV12 YV12 UYVY YUYV Y8U8V8A8 V8U8Y8A8 NV24 YV24 P010 P016 Y_U_V_444_16
444_16  4096  4096  NV12 YV12 UYVY YUYV Y8U8V8A8 V8U8Y8A8 NV24 YV24 P010 P016 Y_U_V_444_16

Decoder capabilities:

name                        level macbs width height
----------------------------------------------------
MPEG1                          --- not supported ---
MPEG2_SIMPLE                   --- not supported ---
MPEG2_MAIN                     --- not supported ---
H264_BASELINE                  51 16384  2048  2048
H264_MAIN                      51 16384  2048  2048
H264_HIGH                      51 16384  2048  2048
VC1_SIMPLE                     --- not supported ---
VC1_MAIN                       --- not supported ---
VC1_ADVANCED                   --- not supported ---
MPEG4_PART2_SP                 --- not supported ---
MPEG4_PART2_ASP                --- not supported ---
DIVX4_QMOBILE                  --- not supported ---
DIVX4_MOBILE                   --- not supported ---
DIVX4_HOME_THEATER             --- not supported ---
DIVX4_HD_1080P                 --- not supported ---
DIVX5_QMOBILE                  --- not supported ---
DIVX5_MOBILE                   --- not supported ---
DIVX5_HOME_THEATER             --- not supported ---
DIVX5_HD_1080P                 --- not supported ---
H264_CONSTRAINED_BASELINE      51 16384  2048  2048
H264_EXTENDED                  --- not supported ---
H264_PROGRESSIVE_HIGH          --- not supported ---
H264_CONSTRAINED_HIGH          --- not supported ---
H264_HIGH_444_PREDICTIVE       --- not supported ---
VP9_PROFILE_0                  --- not supported ---
VP9_PROFILE_1                  --- not supported ---
VP9_PROFILE_2                  --- not supported ---
VP9_PROFILE_3                  --- not supported ---
HEVC_MAIN                      --- not supported ---
HEVC_MAIN_10                   --- not supported ---
HEVC_MAIN_STILL                --- not supported ---
HEVC_MAIN_12                   --- not supported ---
HEVC_MAIN_444                  --- not supported ---
HEVC_MAIN_444_10               --- not supported ---
HEVC_MAIN_444_12               --- not supported ---
AV1_MAIN                       --- not supported ---
AV1_HIGH                       --- not supported ---
AV1_PROFESSIONAL               --- not supported ---

Output surface:

name              width height nat types
----------------------------------------------------
B8G8R8A8         16384 16384    y 
R8G8B8A8         16384 16384    y 
R10G10B10A2      16384 16384    y 
B10G10R10A2      16384 16384    y 
A8               16384 16384    y 

Bitmap surface:

name              width height
------------------------------
B8G8R8A8         16384 16384
R8G8B8A8         16384 16384
R10G10B10A2      16384 16384
B10G10R10A2      16384 16384
A8               16384 16384

Video mixer:

feature name                    sup
------------------------------------
DEINTERLACE_TEMPORAL             -
DEINTERLACE_TEMPORAL_SPATIAL     -
INVERSE_TELECINE                 -
NOISE_REDUCTION                  -
SHARPNESS                        -
LUMA_KEY                         -
HIGH QUALITY SCALING - L1        -
HIGH QUALITY SCALING - L2        -
HIGH QUALITY SCALING - L3        -
HIGH QUALITY SCALING - L4        -
HIGH QUALITY SCALING - L5        -
HIGH QUALITY SCALING - L6        -
HIGH QUALITY SCALING - L7        -
HIGH QUALITY SCALING - L8        -
HIGH QUALITY SCALING - L9        -

parameter name                  sup      min      max
-----------------------------------------------------
VIDEO_SURFACE_WIDTH              - 
VIDEO_SURFACE_HEIGHT             - 
CHROMA_TYPE                      - 
LAYERS                           - 

attribute name                  sup      min      max
-----------------------------------------------------
BACKGROUND_COLOR                 - 
CSC_MATRIX                       - 
NOISE_REDUCTION_LEVEL            - 
SHARPNESS_LEVEL                  - 
LUMA_KEY_MIN_LUMA                - 
LUMA_KEY_MAX_LUMA                - 

**********************************************************************************************************************************

オフライン

 

#2 2025-03-08 20:38:48

iyhoovip
メンバ
From: 三重県
登録日: 2020-07-09

Re: mpvのhdwc=avapiを指定するとlibEGLに警告が発生します

動画再生でしょうか?
答えになってませんがVLCなど他のアプリではいけないんですか?

オフライン

 

#3 2025-03-08 22:56:13

opd_linux
新しいメンバ
登録日: 2025-03-07

Re: mpvのhdwc=avapiを指定するとlibEGLに警告が発生します

iyhoovip による投稿:

動画再生でしょうか?
答えになってませんがVLCなど他のアプリではいけないんですか?

はい。動画再生です。

mpvでも一応は再生できていて、gpuでデコードもしているみたいです。

ただ、この警告が原因でブラウザのvivaldiでgpuを使った再生ができないのかもと思ったので解決したいんです。

実際、vivaldi:gpuで見てみると

[5959:5959:0308/172925.555129:WARNING:gpu_memory_buffer_support_x11.cc(49)] : dri3 extension not supported.

といったlogが含まれていました。

オフライン

 

#4 2025-03-09 13:34:53

Beats
メンバ
登録日: 2015-03-14

Re: mpvのhdwc=avapiを指定するとlibEGLに警告が発生します

WaylandはDRI2は利用していないそうなので、DRI3がサポートされていないということはハードウェアが利用できていないのではないでしょうか?
https://unix.stackexchange.com/questions/605479/how-do-i-check-whether-im-using-dri2-or-dri3-when-using-gnome-wayland

見当違いの方法かもしれませんが、xorgでログインしなおして試してみてはどうでしょうか(DRI2にフォールバックする?)?

オフライン

 

#5 2025-03-09 21:31:02

opd_linux
新しいメンバ
登録日: 2025-03-07

Re: mpvのhdwc=avapiを指定するとlibEGLに警告が発生します

多分 waylandは使っていないと思うのですがどうでしょうか?

$ ps aux | grep -i wayland
sample   12693  0.0  0.0  10992  3528 pts/0    S+   19:46   0:00 /bin/bash -c (ps aux | grep -i wayland) < /tmp/v6Q0jFx/0>/tmp/v6Q0jFx/1 2>&1
sample   12694  0.0  0.0  10992  1580 pts/0    S+   19:46   0:00 /bin/bash -c (ps aux | grep -i wayland) < /tmp/v6Q0jFx/0>/tmp/v6Q0jFx/1 2>&1
sample   12696  0.0  0.0  10208  2388 pts/0    S+   19:46   0:00 grep -i wayland

$ ps aux | grep -i xorg
sample    8737  3.7  1.5 559684 123812 tty2    Ssl+ 19:18   1:06 /usr/lib/xorg/Xorg -nolisten tcp -background none -seat seat0 vt2 -auth /run/sddm/xauth_WvLuxD -noreset -displayfd 18
sample   12724  0.0  0.0  10992  3568 pts/0    S+   19:48   0:00 /bin/bash -c (ps aux | grep -i xorg)>/tmp/v6Q0jFx/2 2>&1
sample   12725  0.0  0.0  10992  1816 pts/0    S+   19:48   0:00 /bin/bash -c (ps aux | grep -i xorg)>/tmp/v6Q0jFx/2 2>&1
sample   12727  0.0  0.0  10208  2324 pts/0    S+   19:48   0:00 grep -i xorg


一応、/etc/X11/xorg.conf.d/20-intel.confを以下のように設定しましたが効果がありませんでした
Section "Device"
  Identifier "Intel Graphics"
  Driver "modesetting"
  Option      "DRI"     "3"
EndSection


使えそうなコマンドの実行結果を見つけたので追加で貼ります

**********************************************************************************************************************************

sudo dmesg | grep DRI

**********************************************************************************************************************************

$ xdpyinfo

name of display:    :0
version number:    11.0
vendor string:    The X.Org Foundation
vendor release number:    12101011
X.Org version: 21.1.11
maximum request size:  16777212 bytes
motion buffer size:  256
bitmap unit, bit order, padding:    32, LSBFirst, 32
image byte order:    LSBFirst
number of supported pixmap formats:    7
supported pixmap formats:
    depth 1, bits_per_pixel 1, scanline_pad 32
    depth 4, bits_per_pixel 8, scanline_pad 32
    depth 8, bits_per_pixel 8, scanline_pad 32
    depth 15, bits_per_pixel 16, scanline_pad 32
    depth 16, bits_per_pixel 16, scanline_pad 32
    depth 24, bits_per_pixel 32, scanline_pad 32
    depth 32, bits_per_pixel 32, scanline_pad 32
keycode range:    minimum 8, maximum 255
focus:  window 0x4000006, revert to PointerRoot
number of extensions:    27
    BIG-REQUESTS
    Composite
    DAMAGE
    DOUBLE-BUFFER
    DPMS
    DRI2
    GLX
    Generic Event Extension
    MIT-SCREEN-SAVER
    MIT-SHM
    Present
    RANDR
    RECORD
    RENDER
    SECURITY
    SHAPE
    SYNC
    X-Resource
    XC-MISC
    XFIXES
    XFree86-DGA
    XFree86-VidModeExtension
    XINERAMA
    XInputExtension
    XKEYBOARD
    XTEST
    XVideo
default screen number:    0
number of screens:    1

screen #0:
  dimensions:    2160x2520 pixels (571x666 millimeters)
  resolution:    96x96 dots per inch
  depths (7):    24, 1, 4, 8, 15, 16, 32
  root window id:    0x165
  depth of root window:    24 planes
  number of colormaps:    minimum 1, maximum 1
  default colormap:    0x22
  default number of colormap cells:    256
  preallocated pixels:    black 0, white 16777215
  options:    backing-store WHEN MAPPED, save-unders NO
  largest cursor:    256x256
  current input event mask:    0x7a803f
    KeyPressMask             KeyReleaseMask           ButtonPressMask         
    ButtonReleaseMask        EnterWindowMask          LeaveWindowMask         
    ExposureMask             StructureNotifyMask      SubstructureNotifyMask   
    SubstructureRedirectMask FocusChangeMask          PropertyChangeMask       
  number of visuals:    122
  default visual id:  0x20
  visual:
    visual id:    0x20
    class:    TrueColor
    depth:    24 planes
    available colormap entries:    256 per subfield
    red, green, blue masks:    0xff0000, 0xff00, 0xff
    significant bits in color specification:    8 bits
以下略

**********************************************************************************************************************************

$ glxinfo

name of display: :0
display: :0  screen: 0
direct rendering: Yes
server glx vendor string: SGI
server glx version string: 1.4
server glx extensions:
    GLX_ARB_create_context, GLX_ARB_create_context_no_error,
    GLX_ARB_create_context_profile, GLX_ARB_create_context_robustness,
    GLX_ARB_fbconfig_float, GLX_ARB_framebuffer_sRGB, GLX_ARB_multisample,
    GLX_EXT_create_context_es2_profile, GLX_EXT_create_context_es_profile,
    GLX_EXT_fbconfig_packed_float, GLX_EXT_framebuffer_sRGB,
    GLX_EXT_get_drawable_type, GLX_EXT_libglvnd, GLX_EXT_no_config_context,
    GLX_EXT_texture_from_pixmap, GLX_EXT_visual_info, GLX_EXT_visual_rating,
    GLX_INTEL_swap_event, GLX_MESA_copy_sub_buffer, GLX_OML_swap_method,
    GLX_SGIS_multisample, GLX_SGIX_fbconfig, GLX_SGIX_pbuffer,
    GLX_SGIX_visual_select_group, GLX_SGI_make_current_read,
    GLX_SGI_swap_control
client glx vendor string: Mesa Project and SGI
client glx version string: 1.4
client glx extensions:
    GLX_ARB_context_flush_control, GLX_ARB_create_context,
    GLX_ARB_create_context_no_error, GLX_ARB_create_context_profile,
    GLX_ARB_create_context_robustness, GLX_ARB_fbconfig_float,
    GLX_ARB_framebuffer_sRGB, GLX_ARB_get_proc_address, GLX_ARB_multisample,
    GLX_ATI_pixel_format_float, GLX_EXT_buffer_age,
    GLX_EXT_create_context_es2_profile, GLX_EXT_create_context_es_profile,
    GLX_EXT_fbconfig_packed_float, GLX_EXT_framebuffer_sRGB,
    GLX_EXT_import_context, GLX_EXT_no_config_context, GLX_EXT_swap_control,
    GLX_EXT_swap_control_tear, GLX_EXT_texture_from_pixmap,
    GLX_EXT_visual_info, GLX_EXT_visual_rating, GLX_INTEL_swap_event,
    GLX_MESA_copy_sub_buffer, GLX_MESA_gl_interop, GLX_MESA_query_renderer,
    GLX_MESA_swap_control, GLX_NV_float_buffer, GLX_OML_sync_control,
    GLX_SGIS_multisample, GLX_SGIX_fbconfig, GLX_SGIX_pbuffer,
    GLX_SGIX_visual_select_group, GLX_SGI_make_current_read,
    GLX_SGI_swap_control, GLX_SGI_video_sync
GLX version: 1.4
GLX extensions:
    GLX_ARB_create_context, GLX_ARB_create_context_no_error,
    GLX_ARB_create_context_profile, GLX_ARB_create_context_robustness,
    GLX_ARB_fbconfig_float, GLX_ARB_framebuffer_sRGB,
    GLX_ARB_get_proc_address, GLX_ARB_multisample,
    GLX_EXT_create_context_es2_profile, GLX_EXT_create_context_es_profile,
    GLX_EXT_fbconfig_packed_float, GLX_EXT_framebuffer_sRGB,
    GLX_EXT_no_config_context, GLX_EXT_swap_control,
    GLX_EXT_texture_from_pixmap, GLX_EXT_visual_info, GLX_EXT_visual_rating,
    GLX_INTEL_swap_event, GLX_MESA_copy_sub_buffer, GLX_MESA_gl_interop,
    GLX_MESA_query_renderer, GLX_MESA_swap_control, GLX_OML_sync_control,
    GLX_SGIS_multisample, GLX_SGIX_fbconfig, GLX_SGIX_pbuffer,
    GLX_SGIX_visual_select_group, GLX_SGI_make_current_read,
    GLX_SGI_swap_control, GLX_SGI_video_sync
Extended renderer info (GLX_MESA_query_renderer):
    Vendor: Intel (0x8086)
    Device: Mesa Intel(R) UHD Graphics (JSL) (0x4e61)
    Version: 24.2.8
    Accelerated: yes
    Video memory: 3839MB
    Unified memory: yes
    Preferred profile: core (0x1)
    Max core profile version: 4.6
    Max compat profile version: 4.6
    Max GLES1 profile version: 1.1
    Max GLES[23] profile version: 3.2
OpenGL vendor string: Intel
OpenGL renderer string: Mesa Intel(R) UHD Graphics (JSL)
OpenGL core profile version string: 4.6 (Core Profile) Mesa 24.2.8-1ubuntu1~24.04.1
OpenGL core profile shading language version string: 4.60
OpenGL core profile context flags: (none)
OpenGL core profile profile mask: core profile
OpenGL core profile extensions:
    GL_3DFX_texture_compression_FXT1, GL_AMD_conservative_depth,
    GL_AMD_depth_clamp_separate, GL_AMD_draw_buffers_blend,
    GL_AMD_gpu_shader_int64, GL_AMD_multi_draw_indirect,
    GL_AMD_performance_monitor, GL_AMD_pinned_memory,
    GL_AMD_query_buffer_object, GL_AMD_seamless_cubemap_per_texture,
    GL_AMD_shader_stencil_export, GL_AMD_shader_trinary_minmax,
    GL_AMD_texture_texture4, GL_AMD_vertex_shader_layer,
    GL_AMD_vertex_shader_viewport_index, GL_ANGLE_texture_compression_dxt3,
    GL_ANGLE_texture_compression_dxt5, GL_ARB_ES2_compatibility,
    GL_ARB_ES3_1_compatibility, GL_ARB_ES3_2_compatibility,
    GL_ARB_ES3_compatibility, GL_ARB_arrays_of_arrays, GL_ARB_base_instance,
    GL_ARB_blend_func_extended, GL_ARB_buffer_storage,
    GL_ARB_clear_buffer_object, GL_ARB_clear_texture, GL_ARB_clip_control,
    GL_ARB_compressed_texture_pixel_storage, GL_ARB_compute_shader,
    GL_ARB_compute_variable_group_size, GL_ARB_conditional_render_inverted,
    GL_ARB_conservative_depth, GL_ARB_copy_buffer, GL_ARB_copy_image,
    GL_ARB_cull_distance, GL_ARB_debug_output, GL_ARB_depth_buffer_float,
    GL_ARB_depth_clamp, GL_ARB_derivative_control, GL_ARB_direct_state_access,
    GL_ARB_draw_buffers, GL_ARB_draw_buffers_blend,
    GL_ARB_draw_elements_base_vertex, GL_ARB_draw_indirect,
    GL_ARB_draw_instanced, GL_ARB_enhanced_layouts,
    GL_ARB_explicit_attrib_location, GL_ARB_explicit_uniform_location,
    GL_ARB_fragment_coord_conventions, GL_ARB_fragment_layer_viewport,
    GL_ARB_fragment_shader, GL_ARB_fragment_shader_interlock,
    GL_ARB_framebuffer_no_attachments, GL_ARB_framebuffer_object,
    GL_ARB_framebuffer_sRGB, GL_ARB_get_program_binary,
    GL_ARB_get_texture_sub_image, GL_ARB_gl_spirv, GL_ARB_gpu_shader5,
    GL_ARB_gpu_shader_fp64, GL_ARB_gpu_shader_int64, GL_ARB_half_float_pixel,
    GL_ARB_half_float_vertex, GL_ARB_indirect_parameters,
    GL_ARB_instanced_arrays, GL_ARB_internalformat_query,
    GL_ARB_internalformat_query2, GL_ARB_invalidate_subdata,
    GL_ARB_map_buffer_alignment, GL_ARB_map_buffer_range, GL_ARB_multi_bind,
    GL_ARB_multi_draw_indirect, GL_ARB_occlusion_query2,
    GL_ARB_parallel_shader_compile, GL_ARB_pipeline_statistics_query,
    GL_ARB_pixel_buffer_object, GL_ARB_point_sprite,
    GL_ARB_polygon_offset_clamp, GL_ARB_post_depth_coverage,
    GL_ARB_program_interface_query, GL_ARB_provoking_vertex,
    GL_ARB_query_buffer_object, GL_ARB_robust_buffer_access_behavior,
    GL_ARB_robustness, GL_ARB_sample_shading, GL_ARB_sampler_objects,
    GL_ARB_seamless_cube_map, GL_ARB_seamless_cubemap_per_texture,
    GL_ARB_separate_shader_objects, GL_ARB_shader_atomic_counter_ops,
    GL_ARB_shader_atomic_counters, GL_ARB_shader_ballot,
    GL_ARB_shader_bit_encoding, GL_ARB_shader_clock,
    GL_ARB_shader_draw_parameters, GL_ARB_shader_group_vote,
    GL_ARB_shader_image_load_store, GL_ARB_shader_image_size,
    GL_ARB_shader_objects, GL_ARB_shader_precision,
    GL_ARB_shader_stencil_export, GL_ARB_shader_storage_buffer_object,
    GL_ARB_shader_subroutine, GL_ARB_shader_texture_image_samples,
    GL_ARB_shader_texture_lod, GL_ARB_shader_viewport_layer_array,
    GL_ARB_shading_language_420pack, GL_ARB_shading_language_include,
    GL_ARB_shading_language_packing, GL_ARB_spirv_extensions,
    GL_ARB_stencil_texturing, GL_ARB_sync, GL_ARB_tessellation_shader,
    GL_ARB_texture_barrier, GL_ARB_texture_border_clamp,
    GL_ARB_texture_buffer_object, GL_ARB_texture_buffer_object_rgb32,
    GL_ARB_texture_buffer_range, GL_ARB_texture_compression_bptc,
    GL_ARB_texture_compression_rgtc, GL_ARB_texture_cube_map_array,
    GL_ARB_texture_filter_anisotropic, GL_ARB_texture_float,
    GL_ARB_texture_gather, GL_ARB_texture_mirror_clamp_to_edge,
    GL_ARB_texture_multisample, GL_ARB_texture_non_power_of_two,
    GL_ARB_texture_query_levels, GL_ARB_texture_query_lod,
    GL_ARB_texture_rectangle, GL_ARB_texture_rg, GL_ARB_texture_rgb10_a2ui,
    GL_ARB_texture_stencil8, GL_ARB_texture_storage,
    GL_ARB_texture_storage_multisample, GL_ARB_texture_swizzle,
    GL_ARB_texture_view, GL_ARB_timer_query, GL_ARB_transform_feedback2,
    GL_ARB_transform_feedback3, GL_ARB_transform_feedback_instanced,
    GL_ARB_transform_feedback_overflow_query, GL_ARB_uniform_buffer_object,
    GL_ARB_vertex_array_bgra, GL_ARB_vertex_array_object,
    GL_ARB_vertex_attrib_64bit, GL_ARB_vertex_attrib_binding,
    GL_ARB_vertex_buffer_object, GL_ARB_vertex_shader,
    GL_ARB_vertex_type_10f_11f_11f_rev, GL_ARB_vertex_type_2_10_10_10_rev,
    GL_ARB_viewport_array, GL_ATI_blend_equation_separate,
    GL_ATI_texture_float, GL_EXT_EGL_image_storage,
    GL_EXT_EGL_image_storage_compression, GL_EXT_EGL_sync, GL_EXT_abgr,
    GL_EXT_blend_equation_separate, GL_EXT_debug_label,
    GL_EXT_demote_to_helper_invocation, GL_EXT_draw_buffers2,
    GL_EXT_draw_instanced, GL_EXT_framebuffer_blit,
    GL_EXT_framebuffer_multisample, GL_EXT_framebuffer_multisample_blit_scaled,
    GL_EXT_framebuffer_object, GL_EXT_framebuffer_sRGB, GL_EXT_memory_object,
    GL_EXT_memory_object_fd, GL_EXT_packed_depth_stencil, GL_EXT_packed_float,
    GL_EXT_pixel_buffer_object, GL_EXT_polygon_offset_clamp,
    GL_EXT_provoking_vertex, GL_EXT_semaphore, GL_EXT_semaphore_fd,
    GL_EXT_shader_framebuffer_fetch,
    GL_EXT_shader_framebuffer_fetch_non_coherent, GL_EXT_shader_integer_mix,
    GL_EXT_shader_samples_identical, GL_EXT_texture_array,
    GL_EXT_texture_compression_dxt1, GL_EXT_texture_compression_rgtc,
    GL_EXT_texture_compression_s3tc, GL_EXT_texture_filter_anisotropic,
    GL_EXT_texture_integer, GL_EXT_texture_sRGB, GL_EXT_texture_sRGB_R8,
    GL_EXT_texture_sRGB_decode, GL_EXT_texture_shadow_lod,
    GL_EXT_texture_shared_exponent, GL_EXT_texture_snorm,
    GL_EXT_texture_storage, GL_EXT_texture_swizzle, GL_EXT_timer_query,
    GL_EXT_transform_feedback, GL_EXT_vertex_array_bgra,
    GL_EXT_vertex_attrib_64bit, GL_IBM_multimode_draw_arrays,
    GL_INTEL_blackhole_render, GL_INTEL_conservative_rasterization,
    GL_INTEL_performance_query, GL_INTEL_shader_atomic_float_minmax,
    GL_INTEL_shader_integer_functions2, GL_KHR_blend_equation_advanced,
    GL_KHR_blend_equation_advanced_coherent, GL_KHR_context_flush_control,
    GL_KHR_debug, GL_KHR_no_error, GL_KHR_parallel_shader_compile,
    GL_KHR_robust_buffer_access_behavior, GL_KHR_robustness,
    GL_KHR_texture_compression_astc_ldr,
    GL_KHR_texture_compression_astc_sliced_3d, GL_MESA_framebuffer_flip_y,
    GL_MESA_pack_invert, GL_MESA_shader_integer_functions,
    GL_MESA_texture_const_bandwidth, GL_MESA_texture_signed_rgba,
    GL_NV_alpha_to_coverage_dither_control, GL_NV_compute_shader_derivatives,
    GL_NV_conditional_render, GL_NV_copy_image, GL_NV_depth_clamp,
    GL_NV_fragment_shader_interlock, GL_NV_packed_depth_stencil,
    GL_NV_texture_barrier, GL_OES_EGL_image, GL_S3_s3tc

OpenGL version string: 4.6 (Compatibility Profile) Mesa 24.2.8-1ubuntu1~24.04.1
OpenGL shading language version string: 4.60
OpenGL context flags: (none)
OpenGL profile mask: compatibility profile
OpenGL extensions:
    GL_3DFX_texture_compression_FXT1, GL_AMD_conservative_depth,
    GL_AMD_depth_clamp_separate, GL_AMD_draw_buffers_blend,
    GL_AMD_multi_draw_indirect, GL_AMD_performance_monitor,
    GL_AMD_pinned_memory, GL_AMD_query_buffer_object,
    GL_AMD_seamless_cubemap_per_texture, GL_AMD_shader_stencil_export,
    GL_AMD_shader_trinary_minmax, GL_AMD_texture_texture4,
    GL_AMD_vertex_shader_layer, GL_AMD_vertex_shader_viewport_index,
    GL_ANGLE_texture_compression_dxt3, GL_ANGLE_texture_compression_dxt5,
    GL_APPLE_packed_pixels, GL_ARB_ES2_compatibility,
    GL_ARB_ES3_1_compatibility, GL_ARB_ES3_2_compatibility,
    GL_ARB_ES3_compatibility, GL_ARB_arrays_of_arrays, GL_ARB_base_instance,
    GL_ARB_blend_func_extended, GL_ARB_buffer_storage,
    GL_ARB_clear_buffer_object, GL_ARB_clear_texture, GL_ARB_clip_control,
    GL_ARB_color_buffer_float, GL_ARB_compatibility,
    GL_ARB_compressed_texture_pixel_storage, GL_ARB_compute_shader,
    GL_ARB_compute_variable_group_size, GL_ARB_conditional_render_inverted,
    GL_ARB_conservative_depth, GL_ARB_copy_buffer, GL_ARB_copy_image,
    GL_ARB_cull_distance, GL_ARB_debug_output, GL_ARB_depth_buffer_float,
    GL_ARB_depth_clamp, GL_ARB_depth_texture, GL_ARB_derivative_control,
    GL_ARB_direct_state_access, GL_ARB_draw_buffers,
    GL_ARB_draw_buffers_blend, GL_ARB_draw_elements_base_vertex,
    GL_ARB_draw_indirect, GL_ARB_draw_instanced, GL_ARB_enhanced_layouts,
    GL_ARB_explicit_attrib_location, GL_ARB_explicit_uniform_location,
    GL_ARB_fragment_coord_conventions, GL_ARB_fragment_layer_viewport,
    GL_ARB_fragment_program, GL_ARB_fragment_program_shadow,
    GL_ARB_fragment_shader, GL_ARB_fragment_shader_interlock,
    GL_ARB_framebuffer_no_attachments, GL_ARB_framebuffer_object,
    GL_ARB_framebuffer_sRGB, GL_ARB_get_program_binary,
    GL_ARB_get_texture_sub_image, GL_ARB_gl_spirv, GL_ARB_gpu_shader5,
    GL_ARB_gpu_shader_fp64, GL_ARB_gpu_shader_int64, GL_ARB_half_float_pixel,
    GL_ARB_half_float_vertex, GL_ARB_indirect_parameters,
    GL_ARB_instanced_arrays, GL_ARB_internalformat_query,
    GL_ARB_internalformat_query2, GL_ARB_invalidate_subdata,
    GL_ARB_map_buffer_alignment, GL_ARB_map_buffer_range, GL_ARB_multi_bind,
    GL_ARB_multi_draw_indirect, GL_ARB_multisample, GL_ARB_multitexture,
    GL_ARB_occlusion_query, GL_ARB_occlusion_query2,
    GL_ARB_parallel_shader_compile, GL_ARB_pipeline_statistics_query,
    GL_ARB_pixel_buffer_object, GL_ARB_point_parameters, GL_ARB_point_sprite,
    GL_ARB_polygon_offset_clamp, GL_ARB_post_depth_coverage,
    GL_ARB_program_interface_query, GL_ARB_provoking_vertex,
    GL_ARB_query_buffer_object, GL_ARB_robust_buffer_access_behavior,
    GL_ARB_robustness, GL_ARB_sample_shading, GL_ARB_sampler_objects,
    GL_ARB_seamless_cube_map, GL_ARB_seamless_cubemap_per_texture,
    GL_ARB_separate_shader_objects, GL_ARB_shader_atomic_counter_ops,
    GL_ARB_shader_atomic_counters, GL_ARB_shader_ballot,
    GL_ARB_shader_bit_encoding, GL_ARB_shader_clock,
    GL_ARB_shader_draw_parameters, GL_ARB_shader_group_vote,
    GL_ARB_shader_image_load_store, GL_ARB_shader_image_size,
    GL_ARB_shader_objects, GL_ARB_shader_precision,
    GL_ARB_shader_stencil_export, GL_ARB_shader_storage_buffer_object,
    GL_ARB_shader_subroutine, GL_ARB_shader_texture_image_samples,
    GL_ARB_shader_texture_lod, GL_ARB_shader_viewport_layer_array,
    GL_ARB_shading_language_100, GL_ARB_shading_language_420pack,
    GL_ARB_shading_language_include, GL_ARB_shading_language_packing,
    GL_ARB_shadow, GL_ARB_spirv_extensions, GL_ARB_stencil_texturing,
    GL_ARB_sync, GL_ARB_tessellation_shader, GL_ARB_texture_barrier,
    GL_ARB_texture_border_clamp, GL_ARB_texture_buffer_object,
    GL_ARB_texture_buffer_object_rgb32, GL_ARB_texture_buffer_range,
    GL_ARB_texture_compression, GL_ARB_texture_compression_bptc,
    GL_ARB_texture_compression_rgtc, GL_ARB_texture_cube_map,
    GL_ARB_texture_cube_map_array, GL_ARB_texture_env_add,
    GL_ARB_texture_env_combine, GL_ARB_texture_env_crossbar,
    GL_ARB_texture_env_dot3, GL_ARB_texture_filter_anisotropic,
    GL_ARB_texture_float, GL_ARB_texture_gather,
    GL_ARB_texture_mirror_clamp_to_edge, GL_ARB_texture_mirrored_repeat,
    GL_ARB_texture_multisample, GL_ARB_texture_non_power_of_two,
    GL_ARB_texture_query_levels, GL_ARB_texture_query_lod,
    GL_ARB_texture_rectangle, GL_ARB_texture_rg, GL_ARB_texture_rgb10_a2ui,
    GL_ARB_texture_stencil8, GL_ARB_texture_storage,
    GL_ARB_texture_storage_multisample, GL_ARB_texture_swizzle,
    GL_ARB_texture_view, GL_ARB_timer_query, GL_ARB_transform_feedback2,
    GL_ARB_transform_feedback3, GL_ARB_transform_feedback_instanced,
    GL_ARB_transform_feedback_overflow_query, GL_ARB_transpose_matrix,
    GL_ARB_uniform_buffer_object, GL_ARB_vertex_array_bgra,
    GL_ARB_vertex_array_object, GL_ARB_vertex_attrib_64bit,
    GL_ARB_vertex_attrib_binding, GL_ARB_vertex_buffer_object,
    GL_ARB_vertex_program, GL_ARB_vertex_shader,
    GL_ARB_vertex_type_10f_11f_11f_rev, GL_ARB_vertex_type_2_10_10_10_rev,
    GL_ARB_viewport_array, GL_ARB_window_pos, GL_ATI_blend_equation_separate,
    GL_ATI_draw_buffers, GL_ATI_fragment_shader, GL_ATI_separate_stencil,
    GL_ATI_texture_compression_3dc, GL_ATI_texture_env_combine3,
    GL_ATI_texture_float, GL_EXT_EGL_image_storage,
    GL_EXT_EGL_image_storage_compression, GL_EXT_EGL_sync, GL_EXT_abgr,
    GL_EXT_bgra, GL_EXT_blend_color, GL_EXT_blend_equation_separate,
    GL_EXT_blend_func_separate, GL_EXT_blend_minmax, GL_EXT_blend_subtract,
    GL_EXT_compiled_vertex_array, GL_EXT_copy_texture, GL_EXT_debug_label,
    GL_EXT_demote_to_helper_invocation, GL_EXT_direct_state_access,
    GL_EXT_draw_buffers2, GL_EXT_draw_instanced, GL_EXT_draw_range_elements,
    GL_EXT_fog_coord, GL_EXT_framebuffer_blit, GL_EXT_framebuffer_multisample,
    GL_EXT_framebuffer_multisample_blit_scaled, GL_EXT_framebuffer_object,
    GL_EXT_framebuffer_sRGB, GL_EXT_gpu_program_parameters,
    GL_EXT_gpu_shader4, GL_EXT_memory_object, GL_EXT_memory_object_fd,
    GL_EXT_multi_draw_arrays, GL_EXT_packed_depth_stencil,
    GL_EXT_packed_float, GL_EXT_packed_pixels, GL_EXT_pixel_buffer_object,
    GL_EXT_point_parameters, GL_EXT_polygon_offset_clamp,
    GL_EXT_provoking_vertex, GL_EXT_rescale_normal, GL_EXT_secondary_color,
    GL_EXT_semaphore, GL_EXT_semaphore_fd, GL_EXT_separate_specular_color,
    GL_EXT_shader_framebuffer_fetch,
    GL_EXT_shader_framebuffer_fetch_non_coherent, GL_EXT_shader_integer_mix,
    GL_EXT_shader_samples_identical, GL_EXT_shadow_funcs,
    GL_EXT_stencil_two_side, GL_EXT_stencil_wrap, GL_EXT_subtexture,
    GL_EXT_texture, GL_EXT_texture3D, GL_EXT_texture_array,
    GL_EXT_texture_buffer_object, GL_EXT_texture_compression_dxt1,
    GL_EXT_texture_compression_latc, GL_EXT_texture_compression_rgtc,
    GL_EXT_texture_compression_s3tc, GL_EXT_texture_cube_map,
    GL_EXT_texture_edge_clamp, GL_EXT_texture_env_add,
    GL_EXT_texture_env_combine, GL_EXT_texture_env_dot3,
    GL_EXT_texture_filter_anisotropic, GL_EXT_texture_integer,
    GL_EXT_texture_lod_bias, GL_EXT_texture_object, GL_EXT_texture_rectangle,
    GL_EXT_texture_sRGB, GL_EXT_texture_sRGB_R8, GL_EXT_texture_sRGB_decode,
    GL_EXT_texture_shadow_lod, GL_EXT_texture_shared_exponent,
    GL_EXT_texture_snorm, GL_EXT_texture_storage, GL_EXT_texture_swizzle,
    GL_EXT_timer_query, GL_EXT_transform_feedback, GL_EXT_vertex_array,
    GL_EXT_vertex_array_bgra, GL_EXT_vertex_attrib_64bit,
    GL_IBM_multimode_draw_arrays, GL_IBM_rasterpos_clip,
    GL_IBM_texture_mirrored_repeat, GL_INGR_blend_func_separate,
    GL_INTEL_blackhole_render, GL_INTEL_performance_query,
    GL_INTEL_shader_atomic_float_minmax, GL_INTEL_shader_integer_functions2,
    GL_KHR_blend_equation_advanced, GL_KHR_blend_equation_advanced_coherent,
    GL_KHR_context_flush_control, GL_KHR_debug, GL_KHR_no_error,
    GL_KHR_parallel_shader_compile, GL_KHR_robust_buffer_access_behavior,
    GL_KHR_robustness, GL_KHR_texture_compression_astc_ldr,
    GL_KHR_texture_compression_astc_sliced_3d, GL_MESA_framebuffer_flip_y,
    GL_MESA_pack_invert, GL_MESA_shader_integer_functions,
    GL_MESA_texture_const_bandwidth, GL_MESA_texture_signed_rgba,
    GL_MESA_window_pos, GL_NV_ES1_1_compatibility,
    GL_NV_alpha_to_coverage_dither_control, GL_NV_blend_square,
    GL_NV_compute_shader_derivatives, GL_NV_conditional_render,
    GL_NV_copy_image, GL_NV_depth_clamp, GL_NV_fog_distance,
    GL_NV_fragment_shader_interlock, GL_NV_half_float,
    GL_NV_light_max_exponent, GL_NV_packed_depth_stencil,
    GL_NV_primitive_restart, GL_NV_texgen_reflection, GL_NV_texture_barrier,
    GL_NV_texture_env_combine4, GL_NV_texture_rectangle, GL_OES_EGL_image,
    GL_OES_read_format, GL_S3_s3tc, GL_SGIS_generate_mipmap,
    GL_SGIS_texture_border_clamp, GL_SGIS_texture_edge_clamp,
    GL_SGIS_texture_lod, GL_SUN_multi_draw_arrays

OpenGL ES profile version string: OpenGL ES 3.2 Mesa 24.2.8-1ubuntu1~24.04.1
OpenGL ES profile shading language version string: OpenGL ES GLSL ES 3.20
OpenGL ES profile extensions:
    GL_AMD_performance_monitor, GL_ANDROID_extension_pack_es31a,
    GL_ANGLE_pack_reverse_row_order, GL_ANGLE_texture_compression_dxt3,
    GL_ANGLE_texture_compression_dxt5, GL_APPLE_sync,
    GL_APPLE_texture_max_level, GL_EXT_EGL_image_storage,
    GL_EXT_EGL_image_storage_compression, GL_EXT_base_instance,
    GL_EXT_blend_func_extended, GL_EXT_blend_minmax, GL_EXT_buffer_storage,
    GL_EXT_clear_texture, GL_EXT_clip_control, GL_EXT_clip_cull_distance,
    GL_EXT_color_buffer_float, GL_EXT_color_buffer_half_float,
    GL_EXT_compressed_ETC1_RGB8_sub_texture, GL_EXT_copy_image,
    GL_EXT_debug_label, GL_EXT_demote_to_helper_invocation,
    GL_EXT_depth_clamp, GL_EXT_discard_framebuffer,
    GL_EXT_disjoint_timer_query, GL_EXT_draw_buffers,
    GL_EXT_draw_buffers_indexed, GL_EXT_draw_elements_base_vertex,
    GL_EXT_draw_instanced, GL_EXT_float_blend, GL_EXT_frag_depth,
    GL_EXT_geometry_point_size, GL_EXT_geometry_shader, GL_EXT_gpu_shader5,
    GL_EXT_instanced_arrays, GL_EXT_map_buffer_range, GL_EXT_memory_object,
    GL_EXT_memory_object_fd, GL_EXT_multi_draw_arrays,
    GL_EXT_occlusion_query_boolean, GL_EXT_polygon_offset_clamp,
    GL_EXT_primitive_bounding_box, GL_EXT_read_format_bgra,
    GL_EXT_render_snorm, GL_EXT_robustness, GL_EXT_sRGB_write_control,
    GL_EXT_semaphore, GL_EXT_semaphore_fd, GL_EXT_separate_shader_objects,
    GL_EXT_shader_framebuffer_fetch,
    GL_EXT_shader_framebuffer_fetch_non_coherent, GL_EXT_shader_group_vote,
    GL_EXT_shader_implicit_conversions, GL_EXT_shader_integer_mix,
    GL_EXT_shader_io_blocks, GL_EXT_shader_samples_identical,
    GL_EXT_shadow_samplers, GL_EXT_tessellation_point_size,
    GL_EXT_tessellation_shader, GL_EXT_texture_border_clamp,
    GL_EXT_texture_buffer, GL_EXT_texture_compression_bptc,
    GL_EXT_texture_compression_dxt1, GL_EXT_texture_compression_rgtc,
    GL_EXT_texture_compression_s3tc, GL_EXT_texture_compression_s3tc_srgb,
    GL_EXT_texture_cube_map_array, GL_EXT_texture_filter_anisotropic,
    GL_EXT_texture_format_BGRA8888, GL_EXT_texture_mirror_clamp_to_edge,
    GL_EXT_texture_norm16, GL_EXT_texture_query_lod, GL_EXT_texture_rg,
    GL_EXT_texture_sRGB_R8, GL_EXT_texture_sRGB_decode,
    GL_EXT_texture_shadow_lod, GL_EXT_texture_storage,
    GL_EXT_texture_storage_compression, GL_EXT_texture_type_2_10_10_10_REV,
    GL_EXT_texture_view, GL_EXT_unpack_subimage, GL_INTEL_blackhole_render,
    GL_INTEL_conservative_rasterization, GL_INTEL_performance_query,
    GL_KHR_blend_equation_advanced, GL_KHR_blend_equation_advanced_coherent,
    GL_KHR_context_flush_control, GL_KHR_debug, GL_KHR_no_error,
    GL_KHR_parallel_shader_compile, GL_KHR_robust_buffer_access_behavior,
    GL_KHR_robustness, GL_KHR_texture_compression_astc_ldr,
    GL_KHR_texture_compression_astc_sliced_3d, GL_MESA_bgra,
    GL_MESA_framebuffer_flip_y, GL_MESA_sampler_objects,
    GL_MESA_shader_integer_functions, GL_MESA_texture_const_bandwidth,
    GL_NV_alpha_to_coverage_dither_control, GL_NV_compute_shader_derivatives,
    GL_NV_conditional_render, GL_NV_draw_buffers, GL_NV_fbo_color_attachments,
    GL_NV_fragment_shader_interlock, GL_NV_generate_mipmap_sRGB,
    GL_NV_image_formats, GL_NV_pack_subimage, GL_NV_pixel_buffer_object,
    GL_NV_read_buffer, GL_NV_read_depth, GL_NV_read_depth_stencil,
    GL_NV_read_stencil, GL_NV_shader_noperspective_interpolation,
    GL_NV_texture_barrier, GL_OES_EGL_image, GL_OES_EGL_image_external,
    GL_OES_EGL_image_external_essl3, GL_OES_EGL_sync,
    GL_OES_compressed_ETC1_RGB8_texture, GL_OES_copy_image, GL_OES_depth24,
    GL_OES_depth_texture, GL_OES_depth_texture_cube_map,
    GL_OES_draw_buffers_indexed, GL_OES_draw_elements_base_vertex,
    GL_OES_element_index_uint, GL_OES_fbo_render_mipmap,
    GL_OES_geometry_point_size, GL_OES_geometry_shader,
    GL_OES_get_program_binary, GL_OES_gpu_shader5, GL_OES_mapbuffer,
    GL_OES_packed_depth_stencil, GL_OES_primitive_bounding_box,
    GL_OES_required_internalformat, GL_OES_rgb8_rgba8, GL_OES_sample_shading,
    GL_OES_sample_variables, GL_OES_shader_image_atomic,
    GL_OES_shader_io_blocks, GL_OES_shader_multisample_interpolation,
    GL_OES_standard_derivatives, GL_OES_stencil8, GL_OES_surfaceless_context,
    GL_OES_tessellation_point_size, GL_OES_tessellation_shader,
    GL_OES_texture_3D, GL_OES_texture_border_clamp, GL_OES_texture_buffer,
    GL_OES_texture_cube_map_array, GL_OES_texture_float,
    GL_OES_texture_float_linear, GL_OES_texture_half_float,
    GL_OES_texture_half_float_linear, GL_OES_texture_npot,
    GL_OES_texture_stencil8, GL_OES_texture_storage_multisample_2d_array,
    GL_OES_texture_view, GL_OES_vertex_array_object, GL_OES_vertex_half_float,
    GL_OES_viewport_array
以下略

オフライン

 

#6 2025-03-09 22:07:36

Beats
メンバ
登録日: 2015-03-14

Re: mpvのhdwc=avapiを指定するとlibEGLに警告が発生します

すみません。
Ubuntu だと思っていて、Lubuntu なのを見落としていました。

xdpyinfo の出力に DRI2 はありますね。
DRI3 がサポートされていたら xdpyinfo に出力される気がするので、/etc/X11/xorg.conf.d/20-intel.conf の
DRI行を"3"から"2"にしてみたらどうでしょうか。

オフライン

 

#7 2025-03-09 23:02:16

opd_linux
新しいメンバ
登録日: 2025-03-07

Re: mpvのhdwc=avapiを指定するとlibEGLに警告が発生します

試してみましたが変わりませんでした。

xdpyinfoも変わらず、DRI2のままでした

オフライン

 

#8 2025-03-09 23:23:12

si
メンバ
From: hokkaido kitami, jp
登録日: 2007-01-15

Re: mpvのhdwc=avapiを指定するとlibEGLに警告が発生します

> 多分 waylandは使っていないと思うのですがどうでしょうか?

下記で確認できます

$ echo $XDG_SESSION_TYPE
wayland

オフライン

 

#9 2025-03-09 23:32:03

opd_linux
新しいメンバ
登録日: 2025-03-07

Re: mpvのhdwc=avapiを指定するとlibEGLに警告が発生します

si による投稿:

> 多分 waylandは使っていないと思うのですがどうでしょうか?

下記で確認できます

$ echo $XDG_SESSION_TYPE
wayland

ありがとうございます!

$ echo $XDG_SESSION_TYPE
x11

でした

オフライン

 

#10 2025-03-09 23:58:26

si
メンバ
From: hokkaido kitami, jp
登録日: 2007-01-15

Re: mpvのhdwc=avapiを指定するとlibEGLに警告が発生します

Ubuntuでは
$ xdpyinfo | grep DRI
    DRI3
となっています
Lubuntuでは違うようですね
参考になるかわかりませんが、ArchLinux に Intelグラフィックのページがあります
https://wiki.archlinux.jp/index.php/%E3%82%A4%E3%83%B3%E3%83%86%E3%83%AB%E3%82%B0%E3%83%A9%E3%83%95%E3%82%A3%E3%83%83%E3%82%AF%E3%82%B9

オフライン

 

#11 2025-03-10 00:34:25

opd_linux
新しいメンバ
登録日: 2025-03-07

Re: mpvのhdwc=avapiを指定するとlibEGLに警告が発生します

> 参考になるかわかりませんが、ArchLinux に Intelグラフィックのページがあります

そこにはDRI 2にする方法は書いてあるんですがDRI 3にする方法は書かれていないんですよね...

DRI 3にできればなんだか解決しそうなんですがやり方がわからないです。

オフライン

 

#12 2025-03-10 16:33:33

opd_linux
新しいメンバ
登録日: 2025-03-07

Re: mpvのhdwc=avapiを指定するとlibEGLに警告が発生します

> sudo dmesg | grep DRI

上でこう書いてましたが正しくはこっちでした。


$ grep DRI /var/log/Xorg.0.log
[    10.388] (II) intel(0): [DRI2] Setup complete
[    10.388] (II) intel(0): [DRI2]   DRI driver: i965
[    10.388] (II) intel(0): [DRI2]   VDPAU driver: va_gl
[    10.388] (II) intel(0): direct rendering: DRI2 enabled
[    10.394] (II) Initializing extension DRI3
[    10.435] (II) GLX: Initialized DRI2 GL provider for screen 0
[    10.436] (II) Initializing extension XFree86-DRI
[    10.436] (II) Initializing extension DRI2

オフライン

 

#13 2025-03-10 19:45:29

Beats
メンバ
登録日: 2015-03-14

Re: mpvのhdwc=avapiを指定するとlibEGLに警告が発生します

WaylandはDRI2は利用していないそうなので、DRI3がサポートされていないということはハードウェアが利用できていないのではないでしょうか?

上記発言で混乱させてしまったかもしれませんが、Xorgを利用されているのならDRI2でハードウェア・デコーディングができているのかもしれません。

DRI3とDRI2の違いはパフォーマンスやレイテンシーの点にあるようです。
https://hatchjs.com/dri3-extension-not-supported/

オフライン

 

#14 2025-03-10 22:21:27

opd_linux
新しいメンバ
登録日: 2025-03-07

Re: mpvのhdwc=avapiを指定するとlibEGLに警告が発生します

お騒がせしています。なんとか自力で解決しました。

インストールしたときのライブUSBがそのままなのを思い出しまして、一回それを起動して設定や状態を見てみたところ

**********************************************************************************************************************************

$ xdpyinfo | grep DRI
    DRI2
    DRI3

**********************************************************************************************************************************

$ grep DRI /var/log/Xorg.0.log
[    39.381] (II) modeset(0): [DRI2] Setup complete
[    39.381] (II) modeset(0): [DRI2]   DRI driver: iris
[    39.381] (II) modeset(0): [DRI2]   VDPAU driver: va_gl
[    39.391] (II) Initializing extension DRI3
[    39.411] (II) GLX: Initialized DRI2 GL provider for screen 0
[    39.412] (II) Initializing extension XFree86-DRI
[    39.412] (II) Initializing extension DRI2

**********************************************************************************************************************************

とDRI3が有効かつ、DRI driverの欄がirisになっていました。

しかし、もう何度も/etc/X11/xorg.conf.d/20-intel.confを編集して試していたのでここではないと思い、

探してみると/usr/share/X11/xorg.conf.d/20-intel.confが存在していました。/etcを消して、こちらを以下のように書き換えました。

**********************************************************************************************************************************

# vim /usr/share/X11/xorg.conf.d/20-intel.conf

Section "Device"
   Identifier  "Intel Graphics"
   #Driver      "intel"
   Driver      "modesetting"
   Option    "DRI"    "iris"
   #Option      "AccelMethod"  "sna"
   #Option      "TearFree"  "true"
EndSection

**********************************************************************************************************************************

/usrからコピーして/etcに書くとwikiとかで見ていたのでてっきり/etcの設定が優先されると思っていたのですが逆だったのですね。

これ以降、ちゃんとDRI3は機能し、mpvも警告を出さなくなりました。

vivaldiのyoutubeデコードはn5100がav1コーデックに対応していなく、youtubeさんがav1で動画を送ってきてるからかと思います。

なんかあっけない解決でしたが対応してくださった方、ありがとうございました!!

オフライン

 

Board footer

Powered by FluxBB