Jump to content

Recommended Posts

Posted (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 &" 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 by robertoj

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines