robertoj Posted yesterday at 10:59 AM Posted yesterday at 10:59 AM (edited) I have tried again with orange pi zero 3, debian trixie linux edge, xfce desktop. This time, I tried without compositor. I ran this from SSH, as my user: killall xfwm4 && xfwm4 --compositor=off & I got: (xfwm4:7880): Gtk-WARNING **: 10:45:56.629: cannot open display: Then I tried "killall xfwm4 && xfwm4 --compositor=off --display :0.0 &" and there were no errors. The orange transparent effect when moving windows is now a white line rectangle Then, mpv played my 1080p mp4 with low framerate (slow motion, 75% of speed)... sometimes with 100% CPU and sometimes with 25% CPU I noticed this in the log (both high and low CPU cases) [vd] Unsupported hwdec: drm [vd] Using software decoding. With high CPU: [cplayer] Set property: user-data/osc/margins={"b":0,"r":0,"t":0,"l":0} -> 1 With 25% CPU: [cplayer] Set property: user-data/osc/margins={"l":0,"b":0,"r":0,"t":0} -> 1 Whole log (low CPU case): (Mpv.conf at the bottom) Spoiler LOW CPU roberto@orangepizero3:~$ DISPLAY=:0.0 mpv -v videofile.mp4 [cplayer] Command line options: '-v' 'videofile.mp4' [cplayer] mpv v0.40.0 Copyright © 2000-2025 mpv/MPlayer/mplayer2 projects [cplayer] libplacebo version: v7.349.0 [cplayer] FFmpeg version: 7.1.1-1+b1 (runtime 7.1.1-1) [cplayer] FFmpeg library versions: [cplayer] libavcodec 61.19.101 [cplayer] libavdevice 61.3.100 [cplayer] libavfilter 10.4.100 [cplayer] libavformat 61.7.100 [cplayer] libavutil 59.39.100 [cplayer] libswresample 5.3.100 [cplayer] libswscale 8.3.100 [cplayer] Configuration: -Dpython.bytecompile=-1 -Dlibmpv=true -Dbuild-date=false -Dcdda=enabled -Ddvdnav=enabled -Dsdl2=enabled -Ddvbin=enabled -Dprefix=/usr -Dlibdir=lib/aarch64-linux-gnu -Dlocalstatedir=/var -Dsysconfdir=/etc -Dbuildtype=plain -Dwrap_mode=nodownload [cplayer] List of enabled features: alsa caca cdda cplugins cuda-hwaccel cuda-interop dmabuf-interop-gl dmabuf-wayland drm dvbin dvdnav egl egl-drm egl-wayland egl-x11 ffmpeg ffnvcodec gbm gl glibc-thread-name glob glob-posix gpl iconv jack javascript jpeg lcms2 libarchive libass libavdevice libbluray libdl libplacebo linux-fstatfs lua52 memfd-create memrchr pipewire posix posix-shm ppoll pthread-condattr-setclock pulse rubberband rubberband-3 sdl2 sdl2-audio sdl2-gamepad sdl2-video sixel sndio sndio-1-9 uchardet vaapi vaapi-drm vaapi-wayland vaapi-x11 vdpau vector vk-khr-display vt.h vulkan wayland wayland-protocols-1-32 wayland-protocols-1-38 wayland-protocols-1-39 wayland-protocols-1-41 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' = 'drm' (flags = 4) [cplayer] Setting option 'drm-drmprime-video-plane' = 'primary' (flags = 4) [cplayer] Setting option 'drm-draw-plane' = 'overlay' (flags = 4) [cplayer] Setting option 'v' = '' (flags = 😎 [clipboard] Initialized vo clipboard backend. [cplayer] Waiting for scripts... [cplayer] Set property: user-data/osc/visibility="auto" -> 1 [cplayer] Set property: user-data/osc/margins={"b":0,"l":0,"t":0,"r":0} -> 1 [cplayer] Done loading scripts. [cplayer] Running hook: auto_profiles/on_before_start_file [cplayer] Failed sending hook command auto_profiles/on_before_start_file. Removing hook. [cplayer] Running hook: auto_profiles/on_load [cplayer] Failed sending hook command auto_profiles/on_load. Removing hook. [cplayer] Running hook: ytdl_hook/on_load [cplayer] Running hook: ytdl_hook/on_load [ytdl_hook] playlist hook [ifo_dvdnav] Opening videofile.mp4 [bdmv/bluray] Opening videofile.mp4 [file] Opening videofile.mp4 [demux] Trying demuxers for level=normal. [cplayer] Set property: user-data/osc/margins={"b":0,"l":0,"t":0,"r":0} -> 1 [cplayer] Set property: user-data/osc/margins={"b":0,"l":0,"t":0,"r":0} -> 1 [osd/libass] libass API version: 0x1703000 [osd/libass] libass source: tarball: 0.17.3 [osd/libass] Shaper: FriBidi 1.0.15 (SIMPLE) HarfBuzz-ng 10.2.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: videofile.mp4 [osd/libass] Using font provider fontconfig [osd/libass] Done. [find_files] Loading external files in . [cplayer] Running hook: auto_profiles/on_preloaded [cplayer] Failed sending hook command auto_profiles/on_preloaded. Removing hook. [cplayer] Running hook: ytdl_hook/on_preloaded [lavf] select track 0 [cplayer] ● Video --vid=1 (av1 1920x1080 30 fps) [default] [vo/gpu] Probing for best GPU context. [vo/gpu/auto] Initializing GPU context 'auto' [vo/gpu/vulkan] Initializing GPU context 'waylandvk' [vo/gpu/libplacebo] Initialized libplacebo v7.349.0 (API v349) [vo/gpu/libplacebo] Creating vulkan instance with extensions: [vo/gpu/libplacebo] VK_KHR_get_physical_device_properties2 [vo/gpu/libplacebo] VK_KHR_portability_enumeration [vo/gpu/libplacebo] VK_KHR_surface [vo/gpu/libplacebo] VK_KHR_wayland_surface [vo/gpu/libplacebo] Failed creating instance: VK_ERROR_INCOMPATIBLE_DRIVER [vo/gpu/libplacebo] Failed initializing vulkan instance [vo/gpu/vulkan] Initializing GPU context 'x11vk' [vo/gpu/libplacebo] Initialized libplacebo v7.349.0 (API v349) [vo/gpu/libplacebo] Creating vulkan instance with extensions: [vo/gpu/libplacebo] VK_KHR_get_physical_device_properties2 [vo/gpu/libplacebo] VK_KHR_portability_enumeration [vo/gpu/libplacebo] VK_KHR_surface [vo/gpu/libplacebo] VK_KHR_xlib_surface [vo/gpu/libplacebo] Failed creating instance: VK_ERROR_INCOMPATIBLE_DRIVER [vo/gpu/libplacebo] Failed initializing vulkan instance [vo/gpu/opengl] Initializing GPU context 'wayland' [vo/gpu/opengl] Initializing GPU context 'x11egl' [vo/gpu/x11] X11 opening display: :0.0 [vo/gpu/x11] Display 0 (HDMI-1): [0, 0, 1920, 1080] @ 60.000000 FPS [vo/gpu/x11] Current display FPS: 60.000000 [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 0x9, visual ID 0x21 [vo/gpu/x11] The XPresent extension was found. [vo/gpu/x11] XPresent enabled. [vo/gpu/opengl] GL_VERSION='3.1 Mesa 25.0.5-2' [vo/gpu/opengl] Detected desktop OpenGL 3.1. [vo/gpu/opengl] GL_VENDOR='Mesa' [vo/gpu/opengl] GL_RENDERER='Mali-G31 (Panfrost)' [vo/gpu/opengl] GL_SHADING_LANGUAGE_VERSION='1.40' [vo/gpu/opengl] Loaded extension GL_ARB_sync. [vo/gpu/opengl] Loaded extension GL_ARB_timer_query. [vo/gpu/opengl] Loaded extension GL_ARB_invalidate_subdata. [vo/gpu/opengl] Loaded extension GL_ARB_get_program_binary. [vo/gpu/opengl] Loaded extension GL_ARB_buffer_storage. [vo/gpu/opengl] Loaded extension GL_ARB_shader_image_load_store. [vo/gpu/opengl] Loaded extension GL_ARB_shader_storage_buffer_object. [vo/gpu/opengl] Loaded extension GL_ARB_arrays_of_arrays. [vo/gpu/opengl] Loaded extension GL_ARB_debug_output. [vo/gpu/opengl] Loaded extension GL_KHR_debug. [vo/gpu] Testing FBO format rgba16f [vo/gpu] Using FBO format rgba16f. [vo/gpu] Disabling HDR peak computation (one or more of the following is not supported: compute shaders=0, SSBO=1). [vo/gpu] Assuming 60.000000 FPS for display sync. [vd] Container reported FPS: 30.000000 [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] Opening decoder libdav1d [vd] Unsupported hwdec: drm [vd] Using software decoding. [vd] Detected 4 logical cores. [vd] Requesting 5 threads for decoding. [vd] Selected decoder: libdav1d - dav1d AV1 decoder by VideoLAN [vf] User filter list: [vf] (empty) [cplayer] Starting playback... [vd] Using software decoding. [vd] Decoder format: 1920x1080 yuv420p bt.709/bt.709/bt.1886/limited/auto CL=unknown crop=1920x1080+0+0 [vf] [in] 1920x1080 yuv420p bt.709/bt.709/bt.1886/limited/display CL=mpeg2/4/h264 crop=1920x1080+0+0 [vf] [userdeint] 1920x1080 yuv420p bt.709/bt.709/bt.1886/limited/display CL=mpeg2/4/h264 crop=1920x1080+0+0 [vf] [userdeint] (disabled) [vf] [autorotate] 1920x1080 yuv420p bt.709/bt.709/bt.1886/limited/display CL=mpeg2/4/h264 crop=1920x1080+0+0 [vf] [autorotate] (disabled) [vf] [convert] 1920x1080 yuv420p bt.709/bt.709/bt.1886/limited/display CL=mpeg2/4/h264 crop=1920x1080+0+0 [vf] [convert] (disabled) [vf] [out] 1920x1080 yuv420p bt.709/bt.709/bt.1886/limited/display CL=mpeg2/4/h264 crop=1920x1080+0+0 [osd/libass] libass API version: 0x1703000 [osd/libass] libass source: tarball: 0.17.3 [osd/libass] Shaper: FriBidi 1.0.15 (SIMPLE) HarfBuzz-ng 10.2.0 (COMPLEX) [osd/libass] Setting up fonts... [osd/libass] Using font provider fontconfig [osd/libass] Done. [cplayer] VO: [gpu] 1920x1080 yuv420p [cplayer] VO: Description: Shader-based GPU Renderer [vo/gpu] reconfig to 1920x1080 yuv420p bt.709/bt.709/bt.1886/limited/display CL=mpeg2/4/h264 crop=1920x1080+0+0 [vo/gpu] Resize: 1920x1025 [vo/gpu] Window size: 1920x1025 (Borders: l=0 t=0 r=0 b=0) [vo/gpu] Video source: 1920x1080 (1:1) [vo/gpu] Video display: (0, 0) 1920x1080 -> (49, 0) 1822x1025 [vo/gpu] Video scale: 0.948958/0.949074 [vo/gpu] OSD borders: l=49 t=0 r=49 b=0 [vo/gpu] Video borders: l=49 t=0 r=49 b=0 [vo/gpu] Reported display depth: 8 [vo/gpu] Texture for plane 0: 1920x1080 [vo/gpu] Texture for plane 1: 960x540 [vo/gpu] Texture for plane 2: 960x540 [vo/gpu] Testing FBO format rgba16f [vo/gpu] Using FBO format rgba16f. [vo/gpu] Dither to 8. [cplayer] first video frame after restart shown [vo/gpu] Resize: 1920x1025 [vo/gpu] Window size: 1920x1025 (Borders: l=0 t=0 r=0 b=0) [vo/gpu] Video source: 1920x1080 (1:1) [vo/gpu] Video display: (0, 0) 1920x1080 -> (49, 0) 1822x1025 [vo/gpu] Video scale: 0.948958/0.949074 [vo/gpu] OSD borders: l=49 t=0 r=49 b=0 [vo/gpu] Video borders: l=49 t=0 r=49 b=0 [vo/gpu] Reported display depth: 8 [vo/gpu/x11] Disabling screensaver. [cplayer] playback restart complete @ 0.000000, audio=eof, video=playing [cplayer] Set property: user-data/osc/margins={"b":0,"l":0,"t":0,"r":0} -> 1 [cplayer] Set property: user-data/osc/margins={"b":0,"l":0,"t":0,"r":0} -> 1 ... roberto@orangepizero3:~$ cat /etc/mpv/mpv.conf hwdec=drm drm-drmprime-video-plane=primary drm-draw-plane=overlay Another sanity check: Spoiler roberto@orangepizero3:~$ uname -a Linux orangepizero3 6.15.4-edge-sunxi64 #2 SMP Fri Jun 27 10:13:43 UTC 2025 aarch64 GNU/Linux roberto@orangepizero3:~$ apt list libav*|grep v4l2 WARNING: apt does not have a stable CLI interface. Use with caution in scripts. libavcodec-dev/trixie 7:7.1.1-1-v4l2request1 arm64 libavcodec-extra61-dbgsym/trixie 7:7.1.1-1-v4l2request1 arm64 libavcodec-extra61/trixie 7:7.1.1-1-v4l2request1 arm64 libavcodec-extra/trixie 7:7.1.1-1-v4l2request1 arm64 libavcodec61-dbgsym/trixie 7:7.1.1-1-v4l2request1 arm64 libavcodec61/trixie,now 7:7.1.1-1-v4l2request1 arm64 [installed,automatic] libavdevice-dev/trixie 7:7.1.1-1-v4l2request1 arm64 libavdevice61-dbgsym/trixie 7:7.1.1-1-v4l2request1 arm64 libavdevice61/trixie,now 7:7.1.1-1-v4l2request1 arm64 [installed,automatic] libavfilter-dev/trixie 7:7.1.1-1-v4l2request1 arm64 libavfilter-extra10-dbgsym/trixie 7:7.1.1-1-v4l2request1 arm64 libavfilter-extra10/trixie 7:7.1.1-1-v4l2request1 arm64 libavfilter-extra/trixie 7:7.1.1-1-v4l2request1 arm64 libavfilter10-dbgsym/trixie 7:7.1.1-1-v4l2request1 arm64 libavfilter10/trixie,now 7:7.1.1-1-v4l2request1 arm64 [installed,automatic] libavformat-dev/trixie 7:7.1.1-1-v4l2request1 arm64 libavformat-extra61-dbgsym/trixie 7:7.1.1-1-v4l2request1 arm64 libavformat-extra61/trixie 7:7.1.1-1-v4l2request1 arm64 libavformat-extra/trixie 7:7.1.1-1-v4l2request1 arm64 libavformat61-dbgsym/trixie 7:7.1.1-1-v4l2request1 arm64 libavformat61/trixie,now 7:7.1.1-1-v4l2request1 arm64 [installed,automatic] libavutil-dev/trixie 7:7.1.1-1-v4l2request1 arm64 libavutil59-dbgsym/trixie 7:7.1.1-1-v4l2request1 arm64 libavutil59/trixie,now 7:7.1.1-1-v4l2request1 arm64 [installed,automatic] Ryzer, did you turn the compositor off? Are you using an armbian-downloaded OS, or self built? What kernel version? DId you change anything in the linux menuconfig? I am recompiling again, having checked again that the new linux patches are taken.... how could I check that my current Linux kernel has the new v4l2, cedrus functions? Then I will try again with Bookworm Edited 6 hours ago by robertoj 0 Quote
robertoj Posted 5 hours ago Posted 5 hours ago (edited) I have tried again with trixie, ensuring that the kernel patches were taken... no difference. Then I build a Bookworm Armbian image, with linux 6.15.4. It wasn't visible wether the kernel was downloaded from armbian, or the last one was included in my OS image. Just for fun, I tried it with Bookworm's default ffmpeg-5.1.6, with xfce with compositor off... and I got a 1080p MP4 playing with 100% mpv log: Spoiler bookworm without compositor, linux 6.15.4, default ffmpeg roberto@orangepizero3:~$ DISPLAY=:0.0 mpv -v videofile.mp4 [cplayer] Command line options: '-v' 'videofile.mp4' [cplayer] mpv 0.35.1 Copyright © 2000-2023 mpv/MPlayer/mplayer2 projects [cplayer] built on UNKNOWN [cplayer] FFmpeg library versions: [cplayer] libavutil 57.28.100 [cplayer] libavcodec 59.37.100 [cplayer] libavformat 59.27.100 [cplayer] libswscale 6.7.100 [cplayer] libavfilter 8.44.100 [cplayer] libswresample 4.7.100 [cplayer] FFmpeg version: 5.1.6-0+deb12u1 [cplayer] [cplayer] Configuration: meson configure build -Dprefix=/usr -Dbuildtype=plain -Doptimization=plain [cplayer] List of enabled features: alsa av-channel-layout caca cdda cplayer cplugins cuda-hwaccel cuda-interop dmabuf-interop-gl dmabuf-interop-pl dmabuf-wayland drm drm-is-kms dvbin dvdnav egl egl-drm egl-helpers egl-x11 ffmpeg ffnvcodec gbm gl gl-wayland glibc-thread-name glob glob-posix gpl iconv jack javascript jpeg jpegxl lcms2 libarchive libass libavdevice libbluray libdl libm libmpv-shared libplacebo libplacebo-next librt linux-fstatfs lua52 manpage-build memfd_create noexecstack pipewire plain-gl posix pulse rubberband rubberband-3 sdl2 sdl2-audio sdl2-gamepad sdl2-video sixel spirv-cross stdatomic threads uchardet vaapi vaapi-drm vaapi-egl vaapi-libplacebo vaapi-wayland vaapi-x-egl vaapi-x11 vdpau vector vt.h vulkan wayland wayland_protocols_1_24 x11 xv zimg zlib [cplayer] Reading config file /etc/mpv/encoding-profiles.conf [cplayer] Applying profile 'default'... [cplayer] Reading config file /etc/mpv/mpv.conf [cplayer] Applying profile 'default'... [cplayer] Setting option 'hwdec' = 'drm' (flags = 4) [cplayer] Setting option 'drm-drmprime-video-plane' = 'primary' (flags = 4) [cplayer] Setting option 'drm-draw-plane' = 'overlay' (flags = 4) [cplayer] Setting option 'v' = '' (flags = 😎 [cplayer] Waiting for scripts... [osd/libass] libass API version: 0x1701000 [osd/libass] libass source: tarball: 0.17.1 [osd/libass] Shaper: FriBidi 1.0.8 (SIMPLE) HarfBuzz-ng 6.0.0 (COMPLEX) [osd/libass] Setting up fonts... [osd/libass] Using font provider fontconfig [osd/libass] Done. [cplayer] Set property: shared-script-properties -> 1 [cplayer] Set property: shared-script-properties -> 1 [cplayer] Done loading scripts. [cplayer] Running hook: ytdl_hook/on_load [ytdl_hook] ytdl:// hook [ytdl_hook] not a ytdl:// url [ifo_dvdnav] Opening videofile.mp4 [bdmv/bluray] Opening videofile.mp4 [file] Opening videofile.mp4 [demux] Trying demuxers for level=normal. [cplayer] Set property: shared-script-properties -> 1 [osd/libass] libass API version: 0x1701000 [osd/libass] libass source: tarball: 0.17.1 [osd/libass] Shaper: FriBidi 1.0.8 (SIMPLE) HarfBuzz-ng 6.0.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: videofile.mp4 [osd/libass] Using font provider fontconfig [osd/libass] Done. [find_files] Loading external files in . [cplayer] Set property: shared-script-properties -> 1 [cplayer] Running hook: ytdl_hook/on_preloaded [lavf] select track 0 [cplayer] (+) Video --vid=1 (*) (av1 1920x1080 30.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.0 [vo/gpu/x11] Display 0 (HDMI-1): [0, 0, 1920, 1080] @ 60.000000 FPS [vo/gpu/x11] Current display FPS: 60.000000 [vo/gpu/opengl] EGL_VERSION=1.4 [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 0x9, visual ID 0x21 [vo/gpu/x11] The XPresent extension was found. [vo/gpu/x11] XPresent disabled. [vo/gpu/opengl] GL_VERSION='3.1 Mesa 22.3.6' [vo/gpu/opengl] Detected desktop OpenGL 3.1. [vo/gpu/opengl] GL_VENDOR='Panfrost' [vo/gpu/opengl] GL_RENDERER='Mali-G31 (Panfrost)' [vo/gpu/opengl] GL_SHADING_LANGUAGE_VERSION='1.40' [vo/gpu/opengl] Loaded extension GL_ARB_sync. [vo/gpu/opengl] Loaded extension GL_ARB_invalidate_subdata. [vo/gpu/opengl] Loaded extension GL_ARB_get_program_binary. [vo/gpu/opengl] Loaded extension GL_ARB_buffer_storage. [vo/gpu/opengl] Loaded extension GL_ARB_shader_image_load_store. [vo/gpu/opengl] Loaded extension GL_ARB_shader_storage_buffer_object. [vo/gpu/opengl] Loaded extension GL_ARB_arrays_of_arrays. [vo/gpu/opengl] Loaded extension GL_ARB_debug_output. [vo/gpu/opengl] Loaded extension GL_KHR_debug. [vo/gpu] Testing FBO format rgba16f [vo/gpu] Using FBO format rgba16f. [vo/gpu] Disabling HDR peak computation (one or more of the following is not supported: compute shaders=0, SSBO=1). [vo/gpu] No advanced processing required. Enabling dumb mode. [vo/gpu] Assuming 60.000000 FPS for display sync. [vd] Container reported FPS: 30.000000 [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] Opening decoder libdav1d [vd] Unsupported hwdec: drm [vd] No hardware decoding available for this codec. [vd] Using software decoding. [vd] Detected 4 logical cores. [vd] Requesting 5 threads for decoding. [ffmpeg/video] libdav1d: libdav1d 1.0.0 [vd] Selected codec: libdav1d (dav1d AV1 decoder by VideoLAN) [vf] User filter list: [vf] (empty) [cplayer] Starting playback... [vd] Using software decoding. [vd] Decoder format: 1920x1080 yuv420p bt.709/bt.709/bt.1886/limited/auto CL=unknown [vf] [in] 1920x1080 yuv420p bt.709/bt.709/bt.1886/limited/display SP=1.000000 CL=mpeg2/4/h264 [vf] [userdeint] 1920x1080 yuv420p bt.709/bt.709/bt.1886/limited/display SP=1.000000 CL=mpeg2/4/h264 [vf] [userdeint] (disabled) [vf] [autorotate] 1920x1080 yuv420p bt.709/bt.709/bt.1886/limited/display SP=1.000000 CL=mpeg2/4/h264 [vf] [autorotate] (disabled) [vf] [convert] 1920x1080 yuv420p bt.709/bt.709/bt.1886/limited/display SP=1.000000 CL=mpeg2/4/h264 [vf] [convert] (disabled) [vf] [out] 1920x1080 yuv420p bt.709/bt.709/bt.1886/limited/display SP=1.000000 CL=mpeg2/4/h264 [cplayer] Set property: shared-script-properties -> 1 [cplayer] VO: [gpu] 1920x1080 yuv420p [cplayer] VO: Description: Shader-based GPU Renderer [vo/gpu] reconfig to 1920x1080 yuv420p bt.709/bt.709/bt.1886/limited/display SP=1.000000 CL=mpeg2/4/h264 [vo/gpu/x11] not waiting for MapNotify [vo/gpu] Resize: 1920x1025 [vo/gpu] Window size: 1920x1025 (Borders: l=0 t=0 r=0 b=0) [vo/gpu] Video source: 1920x1080 (1:1) [vo/gpu] Video display: (0, 0) 1920x1080 -> (49, 0) 1822x1025 [vo/gpu] Video scale: 0.948958/0.949074 [vo/gpu] OSD borders: l=49 t=0 r=49 b=0 [vo/gpu] Video borders: l=49 t=0 r=49 b=0 [vo/gpu] Reported display depth: 8 [vo/gpu] Texture for plane 0: 1920x1080 [vo/gpu] Texture for plane 1: 960x540 [vo/gpu] Texture for plane 2: 960x540 [vo/gpu] Testing FBO format rgba16f [vo/gpu] Using FBO format rgba16f. [vo/gpu] No advanced processing required. Enabling dumb mode. [vo/gpu] Resize: 1920x1025 [vo/gpu] Window size: 1920x1025 (Borders: l=0 t=0 r=0 b=0) [vo/gpu] Video source: 1920x1080 (1:1) [vo/gpu] Video display: (0, 0) 1920x1080 -> (49, 0) 1822x1025 [vo/gpu] Video scale: 0.948958/0.949074 [vo/gpu] OSD borders: l=49 t=0 r=49 b=0 [vo/gpu] Video borders: l=49 t=0 r=49 b=0 [vo/gpu] Reported display depth: 8 [cplayer] first video frame after restart shown [vo/gpu/x11] Disabling screensaver. [cplayer] playback restart complete @ 0.000000, audio=eof, video=playing [statusline] V: 00:00:00 / 00:04:49 (0%) [cplayer] Set property: shared-script-properties -> 1 [statusline] V: 00:00:08 / 00:04:49 (3%) Dropped: 47 [cplayer] Set property: fullscreen -> 1 [vo/gpu] Resize: 1920x1025 [vo/gpu] Window size: 1920x1025 (Borders: l=0 t=0 r=0 b=0) [vo/gpu] Video source: 1920x1080 (1:1) [vo/gpu] Video display: (0, 0) 1920x1080 -> (49, 0) 1822x1025 [vo/gpu] Video scale: 0.948958/0.949074 [vo/gpu] OSD borders: l=49 t=0 r=49 b=0 [vo/gpu] Video borders: l=49 t=0 r=49 b=0 [vo/gpu] Reported display depth: 8 [statusline] V: 00:00:08 / 00:04:49 (3%) Dropped: 47 [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 [cplayer] Set property: shared-script-properties -> 1 [statusline] V: 00:00:08 / 00:04:49 (3%) Dropped: 47 [cplayer] Set property: shared-script-properties -> 1 [statusline] V: 00:00:08 / 00:04:49 (3%) Dropped: 47 [cplayer] Set property: shared-script-properties -> 1 [statusline] V: 00:00:26 / 00:04:49 (9%) Dropped: 150 [cplayer] EOF code: 5 [vo/gpu/x11] Enabling screensaver. [cplayer] finished playback, success (reason 3) [cplayer] [cplayer] Exiting... (Quit) [cplayer] Set property: shared-script-properties -> 1 ... roberto@orangepizero3:~$ apt list ffmpeg Listing... Done ffmpeg/stable,stable-security,now 7:5.1.6-0+deb12u1 arm64 [installed] roberto@orangepizero3:~$ apt list libavcodec59 Listing... Done libavcodec59/stable,stable-security,now 7:5.1.6-0+deb12u1 arm64 [installed,automatic] Note that mpv still complains about unsupported hwdec: drm I repeated the test with compositor ON: killall xfwm4 && xfwm4 --compositor=on --display :0.0 & Same result: CPU 100%, but nice full FPS video Then I tried with the ffmpeg-x.x.x-v4l2 request Adding the repo, updating, and checking the update: Spoiler roberto@orangepizero3:~$ apt list --upgradable Listing... Done ffmpeg/bookworm 7:5.1.6-0+deb12u1-v4l2request1 arm64 [upgradable from: 7:5.1.6-0+deb12u1] libavcodec59/bookworm 7:5.1.6-0+deb12u1-v4l2request1 arm64 [upgradable from: 7:5.1.6-0+deb12u1] libavdevice59/bookworm 7:5.1.6-0+deb12u1-v4l2request1 arm64 [upgradable from: 7:5.1.6-0+deb12u1] libavfilter8/bookworm 7:5.1.6-0+deb12u1-v4l2request1 arm64 [upgradable from: 7:5.1.6-0+deb12u1] libavformat59/bookworm 7:5.1.6-0+deb12u1-v4l2request1 arm64 [upgradable from: 7:5.1.6-0+deb12u1] libavutil57/bookworm 7:5.1.6-0+deb12u1-v4l2request1 arm64 [upgradable from: 7:5.1.6-0+deb12u1] libpostproc56/bookworm 7:5.1.6-0+deb12u1-v4l2request1 arm64 [upgradable from: 7:5.1.6-0+deb12u1] libswresample4/bookworm 7:5.1.6-0+deb12u1-v4l2request1 arm64 [upgradable from: 7:5.1.6-0+deb12u1] libswscale6/bookworm 7:5.1.6-0+deb12u1-v4l2request1 arm64 [upgradable from: 7:5.1.6-0+deb12u1] roberto@orangepizero3:~$ sudo apt upgrade Reading package lists... Done Building dependency tree... Done Reading state information... Done Calculating upgrade... Done The following packages will be upgraded: ffmpeg libavcodec59 libavdevice59 libavfilter8 libavformat59 libavutil57 libpostproc56 libswresample4 libswscale6 9 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. Need to get 11.8 MB of archives. After this operation, 66.6 kB of additional disk space will be used. Do you want to continue? [Y/n] Y ... the 9 ffmpeg packages get installed with no problem Then I tried playing the mp4, I got no complaint about "unsupported hwdec: drm", but the CPU was still 100% For the first time, I get some video glitches when I resize, and repeated messages: Failed to create scanout resource DRM_IOCTL_MODE_CREATE_DUMB failed: Cannot allocate memory compositor=on or off doesn't make a difference for me. mpv log: Spoiler roberto@orangepizero3:~$ DISPLAY=:0.0 mpv -v videofile.mp4 [cplayer] Command line options: '-v' 'videofile.mp4' [cplayer] mpv 0.35.1 Copyright © 2000-2023 mpv/MPlayer/mplayer2 projects [cplayer] built on UNKNOWN [cplayer] FFmpeg library versions: [cplayer] libavutil 57.28.100 [cplayer] libavcodec 59.37.100 [cplayer] libavformat 59.27.100 [cplayer] libswscale 6.7.100 [cplayer] libavfilter 8.44.100 [cplayer] libswresample 4.7.100 [cplayer] FFmpeg version: 5.1.6-0+deb12u1 [cplayer] [cplayer] Configuration: meson configure build -Dprefix=/usr -Dbuildtype=plain -Doptimization=plain [cplayer] List of enabled features: alsa av-channel-layout caca cdda cplayer cplugins cuda-hwaccel cuda-interop dmabuf-interop-gl dmabuf-interop-pl dmabuf-wayland drm drm-is-kms dvbin dvdnav egl egl-drm egl-helpers egl-x11 ffmpeg ffnvcodec gbm gl gl-wayland glibc-thread-name glob glob-posix gpl iconv jack javascript jpeg jpegxl lcms2 libarchive libass libavdevice libbluray libdl libm libmpv-shared libplacebo libplacebo-next librt linux-fstatfs lua52 manpage-build memfd_create noexecstack pipewire plain-gl posix pulse rubberband rubberband-3 sdl2 sdl2-audio sdl2-gamepad sdl2-video sixel spirv-cross stdatomic threads uchardet vaapi vaapi-drm vaapi-egl vaapi-libplacebo vaapi-wayland vaapi-x-egl vaapi-x11 vdpau vector vt.h vulkan wayland wayland_protocols_1_24 x11 xv zimg zlib [cplayer] Reading config file /etc/mpv/encoding-profiles.conf [cplayer] Applying profile 'default'... [cplayer] Reading config file /etc/mpv/mpv.conf [cplayer] Applying profile 'default'... [cplayer] Setting option 'hwdec' = 'drm' (flags = 4) [cplayer] Setting option 'drm-drmprime-video-plane' = 'primary' (flags = 4) [cplayer] Setting option 'drm-draw-plane' = 'overlay' (flags = 4) [cplayer] Setting option 'v' = '' (flags = 😎 [cplayer] Waiting for scripts... [osd/libass] libass API version: 0x1701000 [osd/libass] libass source: tarball: 0.17.1 [osd/libass] Shaper: FriBidi 1.0.8 (SIMPLE) HarfBuzz-ng 6.0.0 (COMPLEX) [osd/libass] Setting up fonts... [osd/libass] Using font provider fontconfig [osd/libass] Done. [cplayer] Set property: shared-script-properties -> 1 [cplayer] Set property: shared-script-properties -> 1 [cplayer] Done loading scripts. [cplayer] Running hook: ytdl_hook/on_load [ytdl_hook] ytdl:// hook [ytdl_hook] not a ytdl:// url [ifo_dvdnav] Opening videofile.mp4 [bdmv/bluray] Opening videofile.mp4 [file] Opening videofile.mp4 [demux] Trying demuxers for level=normal. [cplayer] Set property: shared-script-properties -> 1 [osd/libass] libass API version: 0x1701000 [osd/libass] libass source: tarball: 0.17.1 [osd/libass] Shaper: FriBidi 1.0.8 (SIMPLE) HarfBuzz-ng 6.0.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: videofile.mp4 [osd/libass] Using font provider fontconfig [osd/libass] Done. [find_files] Loading external files in . [cplayer] Running hook: ytdl_hook/on_preloaded [lavf] select track 0 [cplayer] (+) Video --vid=1 (*) (av1 1920x1080 30.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.0 [vo/gpu/x11] Display 0 (HDMI-1): [0, 0, 1920, 1080] @ 60.000000 FPS [vo/gpu/x11] Current display FPS: 60.000000 [vo/gpu/opengl] EGL_VERSION=1.4 [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 0x9, visual ID 0x21 [vo/gpu/x11] The XPresent extension was found. [vo/gpu/x11] XPresent disabled. [vo/gpu/opengl] GL_VERSION='3.1 Mesa 22.3.6' [vo/gpu/opengl] Detected desktop OpenGL 3.1. [vo/gpu/opengl] GL_VENDOR='Panfrost' [vo/gpu/opengl] GL_RENDERER='Mali-G31 (Panfrost)' [vo/gpu/opengl] GL_SHADING_LANGUAGE_VERSION='1.40' [vo/gpu/opengl] Loaded extension GL_ARB_sync. [vo/gpu/opengl] Loaded extension GL_ARB_invalidate_subdata. [vo/gpu/opengl] Loaded extension GL_ARB_get_program_binary. [vo/gpu/opengl] Loaded extension GL_ARB_buffer_storage. [vo/gpu/opengl] Loaded extension GL_ARB_shader_image_load_store. [vo/gpu/opengl] Loaded extension GL_ARB_shader_storage_buffer_object. [vo/gpu/opengl] Loaded extension GL_ARB_arrays_of_arrays. [vo/gpu/opengl] Loaded extension GL_ARB_debug_output. [vo/gpu/opengl] Loaded extension GL_KHR_debug. [vo/gpu] Testing FBO format rgba16f [vo/gpu] Using FBO format rgba16f. [vo/gpu] Disabling HDR peak computation (one or more of the following is not supported: compute shaders=0, SSBO=1). [vo/gpu] No advanced processing required. Enabling dumb mode. [vo/gpu] Assuming 60.000000 FPS for display sync. [vd] Container reported FPS: 30.000000 [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] Opening decoder libdav1d [vd] No hardware decoding available for this codec. [vd] Using software decoding. [vd] Detected 4 logical cores. [vd] Requesting 5 threads for decoding. [ffmpeg/video] libdav1d: libdav1d 1.0.0 [vd] Selected codec: libdav1d (dav1d AV1 decoder by VideoLAN) [vf] User filter list: [vf] (empty) [cplayer] Starting playback... [cplayer] Set property: shared-script-properties -> 1 [vd] Using software decoding. [vd] Decoder format: 1920x1080 yuv420p bt.709/bt.709/bt.1886/limited/auto CL=unknown [vf] [in] 1920x1080 yuv420p bt.709/bt.709/bt.1886/limited/display SP=1.000000 CL=mpeg2/4/h264 [vf] [userdeint] 1920x1080 yuv420p bt.709/bt.709/bt.1886/limited/display SP=1.000000 CL=mpeg2/4/h264 [vf] [userdeint] (disabled) [vf] [autorotate] 1920x1080 yuv420p bt.709/bt.709/bt.1886/limited/display SP=1.000000 CL=mpeg2/4/h264 [vf] [autorotate] (disabled) [vf] [convert] 1920x1080 yuv420p bt.709/bt.709/bt.1886/limited/display SP=1.000000 CL=mpeg2/4/h264 [vf] [convert] (disabled) [vf] [out] 1920x1080 yuv420p bt.709/bt.709/bt.1886/limited/display SP=1.000000 CL=mpeg2/4/h264 [cplayer] Set property: shared-script-properties -> 1 [cplayer] VO: [gpu] 1920x1080 yuv420p [cplayer] VO: Description: Shader-based GPU Renderer [vo/gpu] reconfig to 1920x1080 yuv420p bt.709/bt.709/bt.1886/limited/display SP=1.000000 CL=mpeg2/4/h264 [vo/gpu/x11] not waiting for MapNotify [vo/gpu] Resize: 1920x1025 [vo/gpu] Window size: 1920x1025 (Borders: l=0 t=0 r=0 b=0) [vo/gpu] Video source: 1920x1080 (1:1) [vo/gpu] Video display: (0, 0) 1920x1080 -> (49, 0) 1822x1025 [vo/gpu] Video scale: 0.948958/0.949074 [vo/gpu] OSD borders: l=49 t=0 r=49 b=0 [vo/gpu] Video borders: l=49 t=0 r=49 b=0 [vo/gpu] Reported display depth: 8 [vo/gpu] Texture for plane 0: 1920x1080 [vo/gpu] Texture for plane 1: 960x540 [vo/gpu] Texture for plane 2: 960x540 [vo/gpu] Testing FBO format rgba16f [vo/gpu] Using FBO format rgba16f. [vo/gpu] No advanced processing required. Enabling dumb mode. [vo/gpu] Resize: 1920x1025 [vo/gpu] Window size: 1920x1025 (Borders: l=0 t=0 r=0 b=0) [vo/gpu] Video source: 1920x1080 (1:1) [vo/gpu] Video display: (0, 0) 1920x1080 -> (49, 0) 1822x1025 [vo/gpu] Video scale: 0.948958/0.949074 [vo/gpu] OSD borders: l=49 t=0 r=49 b=0 [vo/gpu] Video borders: l=49 t=0 r=49 b=0 [vo/gpu] Reported display depth: 8 [cplayer] first video frame after restart shown [cplayer] playback restart complete @ 0.000000, audio=eof, video=playing [statusline] V: 00:00:00 / 00:04:49 (0%) [vo/gpu/x11] Disabling screensaver. [cplayer] Set property: shared-script-properties -> 1 [statusline] V: 00:00:00 / 00:04:49 (0%) [cplayer] Set property: shared-script-properties -> 1 [statusline] V: 00:00:16 / 00:04:49 (6%) Dropped: 216 [cplayer] EOF code: 5 [vo/gpu/x11] Enabling screensaver. [vf] dropping frame due to pin disconnect [cplayer] finished playback, success (reason 3) [cplayer] [cplayer] Exiting... (Quit) [cplayer] Set property: shared-script-properties -> 1 Summary: Armbian Trixie (and the correspoinding ffmpeg 7.1.1) will always result in "unsupported hwdec: drm", with default ffmpeg, or ffmpeg-v4l2 request Armbian Bookworm (ffmpeg 5.1.6) will never complain about "unsupported hwdec: drm", with default ffmpeg or ffmpeg-v4l2request. Still 100% CPU Edited 4 hours ago by robertoj 0 Quote
usual user Posted 47 minutes ago Posted 47 minutes ago 4 hours ago, robertoj said: [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] Opening decoder libdav1d [vd] No hardware decoding available for this codec. Just out of curiosity, you are trying to play content that is encoded in AV1. Are you sure that your device is equipped with an AV1 decoder IP and that the kernel has the appropriate driver? 0 Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.