Bug 48887 - Тормозит при просмотре 4k
Summary: Тормозит при просмотре 4k
Status: CLOSED FIXED
Alias: None
Product: Sisyphus
Classification: Development
Component: mpv (show other bugs)
Version: unstable
Hardware: x86_64 Linux
: P5 normal
Assignee: Konstantin A Lepikhov (L.A. Kostis)
QA Contact: qa-sisyphus
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-12-21 01:18 MSK by Aleksandr Shamaraev
Modified: 2023-12-27 17:58 MSK (History)
3 users (show)

See Also:


Attachments
вывод в файл команды (11.63 KB, text/plain)
2023-12-23 13:51 MSK, Aleksandr Shamaraev
no flags Details
vulkaninfo (1.73 KB, text/plain)
2023-12-23 13:54 MSK, Aleksandr Shamaraev
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Aleksandr Shamaraev 2023-12-21 01:18:25 MSK
Доброго времени суток.
$ mpv --version
mpv 0.37.0 Copyright © 2000-2023 mpv/MPlayer/mplayer2 projects
 built on Dec 15 2023 13:57:02
libplacebo version: v6.338.1
FFmpeg version: 6.0.1-alt1
FFmpeg library versions:
   libavutil       58.2.100
   libavcodec      60.3.100
   libavformat     60.3.100
   libswscale      7.1.100
   libavfilter     9.3.100
   libswresample   4.10.100

протормаживает при просмотре видео 4к, то есть видео идет когда нормально, а когда заметно с тормозами, при этом только картинка, звук не тормозит. 
характеристики видео:
контейнер - Quicktime
размеры - 3840 × 1608
видеокодек - H.265 (Main Profile)
битрейт видео - 7570 кбит/с
частота кадров - 25,00 кадров в секунду
аудиокодек - MPEG-4 AAC
битрейд - 125 кбит/с
частота - 48000 Гц
Comment 1 Konstantin A Lepikhov (L.A. Kostis) 2023-12-23 13:12:59 MSK
(In reply to Бешеный Кролик from comment #0)
> Доброго времени суток.
> $ mpv --version
> mpv 0.37.0 Copyright © 2000-2023 mpv/MPlayer/mplayer2 projects
>  built on Dec 15 2023 13:57:02
> libplacebo version: v6.338.1
> FFmpeg version: 6.0.1-alt1
> FFmpeg library versions:
>    libavutil       58.2.100
>    libavcodec      60.3.100
>    libavformat     60.3.100
>    libswscale      7.1.100
>    libavfilter     9.3.100
>    libswresample   4.10.100
> 
> протормаживает при просмотре видео 4к, то есть видео идет когда нормально, а
> когда заметно с тормозами, при этом только картинка, звук не тормозит. 
> характеристики видео:
> контейнер - Quicktime
> размеры - 3840 × 1608
> видеокодек - H.265 (Main Profile)
> битрейт видео - 7570 кбит/с
> частота кадров - 25,00 кадров в секунду
> аудиокодек - MPEG-4 AAC
> битрейд - 125 кбит/с
> частота - 48000 Гц

наверное, стоит показать вывод mpv -v <файл который тормозит> + вывод команд vainfo, glxinfo -B и vulkaninfo --summary
Comment 2 Aleksandr Shamaraev 2023-12-23 13:51:08 MSK
Created attachment 15257 [details]
вывод в файл команды
Comment 3 Aleksandr Shamaraev 2023-12-23 13:54:43 MSK
Created attachment 15258 [details]
vulkaninfo
Comment 4 Aleksandr Shamaraev 2023-12-23 13:57:09 MSK
$ mpv -v FBS\ NF\ 75\ \(4K\ HEVC\).mp4 --> mpv-v.txt
[cplayer] 
[cplayer] Audio/Video desynchronisation detected! Possible reasons include too slow
[cplayer] hardware, temporary CPU spikes, broken drivers, and broken files. Audio
[cplayer] position will not match to the video (see A-V status field).
[cplayer] Consider trying `--profile=fast` and/or `--hwdec=auto-safe` as they may help.
[cplayer] 

$ vainfo
bash: vainfo: команда не найдена

$ glxinfo -B
name of display: :0
display: :0  screen: 0
direct rendering: Yes
Extended renderer info (GLX_MESA_query_renderer):
    Vendor: AMD (0x1002)
    Device: AMD Radeon Vega 8 Graphics (radeonsi, raven, LLVM 17.0.3, DRM 3.54, 6.6.8-un-def-alt1) (0x15d8)
    Version: 23.3.1
    Accelerated: yes
    Video memory: 1024MB
    Unified memory: no
    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
Memory info (GL_ATI_meminfo):
    VBO free memory - total: 580 MB, largest block: 580 MB
    VBO free aux. memory - total: 3322 MB, largest block: 3322 MB
    Texture free memory - total: 580 MB, largest block: 580 MB
    Texture free aux. memory - total: 3322 MB, largest block: 3322 MB
    Renderbuffer free memory - total: 580 MB, largest block: 580 MB
    Renderbuffer free aux. memory - total: 3322 MB, largest block: 3322 MB
Memory info (GL_NVX_gpu_memory_info):
    Dedicated video memory: 1024 MB
    Total available memory: 4460 MB
    Currently available dedicated video memory: 580 MB
OpenGL vendor string: AMD
OpenGL renderer string: AMD Radeon Vega 8 Graphics (radeonsi, raven, LLVM 17.0.3, DRM 3.54, 6.6.8-un-def-alt1)
OpenGL core profile version string: 4.6 (Core Profile) Mesa 23.3.1
OpenGL core profile shading language version string: 4.60
OpenGL core profile context flags: (none)
OpenGL core profile profile mask: core profile

OpenGL version string: 4.6 (Compatibility Profile) Mesa 23.3.1
OpenGL shading language version string: 4.60
OpenGL context flags: (none)
OpenGL profile mask: compatibility profile

OpenGL ES profile version string: OpenGL ES 3.2 Mesa 23.3.1
OpenGL ES profile shading language version string: OpenGL ES GLSL ES 3.20
Comment 5 Aleksandr Shamaraev 2023-12-23 13:57:57 MSK
Справедливости ради на celluloid и на vlc протормаживаний нет
Comment 6 Aleksandr Shamaraev 2023-12-23 13:59:00 MSK
на vlc только идет зеленая полоса по горизонту вверху
ну это я тут описал
https://bugzilla.altlinux.org/48888
Comment 7 Aleksandr Shamaraev 2023-12-23 14:01:19 MSK
Вот так не тормозит

$ mpv --profile=fast FBS\ NF\ 75\ \(4K\ HEVC\).mp4
 (+) Video --vid=1 (*) (hevc 3840x1608 25.000fps)
 (+) Audio --aid=1 --alang=eng (*) (aac 2ch 48000Hz)
AO: [pipewire] 48000Hz stereo 2ch floatp
VO: [gpu] 3840x1608 yuv420p
Exiting... (Quit)
Comment 8 Aleksandr Shamaraev 2023-12-23 14:06:24 MSK
$ vulkaninfo --summary
WARNING: [Loader Message] Code 0 : loader_scanned_icd_add: Driver /usr/lib64/libvulkan_nouveau.so supports Vulkan 1.3, but only supports loader interface version 4. Interface version 5 or newer required to support this version of Vulkan (Policy #LDP_DRIVER_7)
WARNING: [Loader Message] Code 0 : terminator_CreateInstance: Failed to CreateInstance in ICD 2.  Skipping ICD.
WARNING: [Loader Message] Code 0 : terminator_CreateInstance: Manifest ICD for "/usr/lib64/libvulkan_nouveau.so" contained a 1.1 or greater API version, but vkEnumerateInstanceVersion returned 1.0, treating as a 1.0 ICD
==========
VULKANINFO
==========

Vulkan Instance Version: 1.3.268


Instance Extensions: count = 23
-------------------------------
VK_EXT_acquire_drm_display             : extension revision 1
VK_EXT_acquire_xlib_display            : extension revision 1
VK_EXT_debug_report                    : extension revision 10
VK_EXT_debug_utils                     : extension revision 2
VK_EXT_direct_mode_display             : extension revision 1
VK_EXT_display_surface_counter         : extension revision 1
VK_EXT_surface_maintenance1            : extension revision 1
VK_EXT_swapchain_colorspace            : extension revision 4
VK_KHR_device_group_creation           : extension revision 1
VK_KHR_display                         : extension revision 23
VK_KHR_external_fence_capabilities     : extension revision 1
VK_KHR_external_memory_capabilities    : extension revision 1
VK_KHR_external_semaphore_capabilities : extension revision 1
VK_KHR_get_display_properties2         : extension revision 1
VK_KHR_get_physical_device_properties2 : extension revision 2
VK_KHR_get_surface_capabilities2       : extension revision 1
VK_KHR_portability_enumeration         : extension revision 1
VK_KHR_surface                         : extension revision 25
VK_KHR_surface_protected_capabilities  : extension revision 1
VK_KHR_wayland_surface                 : extension revision 6
VK_KHR_xcb_surface                     : extension revision 6
VK_KHR_xlib_surface                    : extension revision 6
VK_LUNARG_direct_driver_loading        : extension revision 1

Instance Layers: count = 6
--------------------------
VK_LAYER_MESA_device_select       Linux device selection layer 1.3.211  version 1
VK_LAYER_MESA_overlay             Mesa Overlay layer           1.3.211  version 1
VK_LAYER_VALVE_steam_fossilize_32 Steam Pipeline Caching Layer 1.3.207  version 1
VK_LAYER_VALVE_steam_fossilize_64 Steam Pipeline Caching Layer 1.3.207  version 1
VK_LAYER_VALVE_steam_overlay_32   Steam Overlay Layer          1.3.207  version 1
VK_LAYER_VALVE_steam_overlay_64   Steam Overlay Layer          1.3.207  version 1

Devices:
========
GPU0:
	apiVersion         = 1.3.267
	driverVersion      = 23.3.1
	vendorID           = 0x1002
	deviceID           = 0x15d8
	deviceType         = PHYSICAL_DEVICE_TYPE_INTEGRATED_GPU
	deviceName         = AMD Radeon Vega 8 Graphics (RADV RAVEN)
	driverID           = DRIVER_ID_MESA_RADV
	driverName         = radv
	driverInfo         = Mesa 23.3.1
	conformanceVersion = 1.2.7.1
	deviceUUID         = 00000000-0300-0000-0000-000000000000
	driverUUID         = 414d442d-4d45-5341-2d44-525600000000
GPU1:
	apiVersion         = 1.3.267
	driverVersion      = 0.0.1
	vendorID           = 0x10005
	deviceID           = 0x0000
	deviceType         = PHYSICAL_DEVICE_TYPE_CPU
	deviceName         = llvmpipe (LLVM 17.0.3, 256 bits)
	driverID           = DRIVER_ID_MESA_LLVMPIPE
	driverName         = llvmpipe
	driverInfo         = Mesa 23.3.1 (LLVM 17.0.3)
	conformanceVersion = 1.3.1.1
	deviceUUID         = 6d657361-3233-2e33-2e31-000000000000
	driverUUID         = 6c6c766d-7069-7065-5555-494400000000
Comment 9 Konstantin A Lepikhov (L.A. Kostis) 2023-12-23 17:51:17 MSK
Если посмотреть на лог запуска mpv то сразу очевидно почему все тормозит:
...
vd] Container reported FPS: 25.000000
[vd] Codec list:
[vd]     hevc - HEVC (High Efficiency Video Coding)
[vd]     hevc_qsv (hevc) - HEVC video (Intel Quick Sync Video acceleration)
[vd]     hevc_v4l2m2m (hevc) - V4L2 mem2mem HEVC decoder wrapper
[vd]     hevc_cuvid (hevc) - Nvidia CUVID HEVC decoder
[vd] Opening decoder hevc
[vd] No hardware decoding requested.
[vd] Using software decoding.
...

используется программное декодирование вместо аппаратного.

Советую проверить со след. настройками mpv:

$ cat ~/.config/mpv/mpv.conf
..
hwdec=vaapi
vo=gpu-next

Должно включиться аппаратное ускорение.
Comment 10 Aleksandr Shamaraev 2023-12-24 03:04:46 MSK
Создал файл настроек, как Вы сказали, изначально его там не было, прописал сохранил, видео также протормаживает. При запуске выдает
$ mpv FBS\ NF\ 75\ \(4K\ HEVC\).mp4 
 (+) Video --vid=1 (*) (hevc 3840x1608 25.000fps)
 (+) Audio --aid=1 --alang=eng (*) (aac 2ch 48000Hz)
Using hardware decoding (vaapi).
AO: [pipewire] 48000Hz stereo 2ch floatp
VO: [gpu-next] 3840x1608 vaapi[nv12]

Audio/Video desynchronisation detected! Possible reasons include too slow
hardware, temporary CPU spikes, broken drivers, and broken files. Audio
position will not match to the video (see A-V status field).
Consider trying `--profile=fast` and/or `--hwdec=auto-safe` as they may help.

Exiting... (Quit)

если запустить с профилем то все ок, ничего не тормозит и нет десинхронизации.

$ mpv FBS\ NF\ 75\ \(4K\ HEVC\).mp4 
 (+) Video --vid=1 (*) (hevc 3840x1608 25.000fps)
 (+) Audio --aid=1 --alang=eng (*) (aac 2ch 48000Hz)
Using hardware decoding (vaapi).
AO: [pipewire] 48000Hz stereo 2ch floatp
VO: [gpu-next] 3840x1608 vaapi[nv12]

Audio/Video desynchronisation detected! Possible reasons include too slow
hardware, temporary CPU spikes, broken drivers, and broken files. Audio
position will not match to the video (see A-V status field).
Consider trying `--profile=fast` and/or `--hwdec=auto-safe` as they may help.

Exiting... (Quit)
Comment 11 Aleksandr Shamaraev 2023-12-24 03:06:34 MSK
второе не то вставилось, извините

$ mpv --profile=fast FBS\ NF\ 75\ \(4K\ HEVC\).mp4
 (+) Video --vid=1 (*) (hevc 3840x1608 25.000fps)
 (+) Audio --aid=1 --alang=eng (*) (aac 2ch 48000Hz)
Using hardware decoding (vaapi).
AO: [pipewire] 48000Hz stereo 2ch floatp
VO: [gpu-next] 3840x1608 vaapi[nv12]
Exiting... (Quit)
Comment 12 Konstantin A Lepikhov (L.A. Kostis) 2023-12-25 01:34:51 MSK
(In reply to Бешеный Кролик from comment #10)
> Создал файл настроек, как Вы сказали, изначально его там не было, прописал
> сохранил, видео также протормаживает. При запуске выдает
> $ mpv FBS\ NF\ 75\ \(4K\ HEVC\).mp4 
>  (+) Video --vid=1 (*) (hevc 3840x1608 25.000fps)
>  (+) Audio --aid=1 --alang=eng (*) (aac 2ch 48000Hz)
> Using hardware decoding (vaapi).
> AO: [pipewire] 48000Hz stereo 2ch floatp
> VO: [gpu-next] 3840x1608 vaapi[nv12]
> 
> Audio/Video desynchronisation detected! Possible reasons include too slow
> hardware, temporary CPU spikes, broken drivers, and broken files. Audio
> position will not match to the video (see A-V status field).
> Consider trying `--profile=fast` and/or `--hwdec=auto-safe` as they may help.
> 
> Exiting... (Quit)
> 
> если запустить с профилем то все ок, ничего не тормозит и нет
> десинхронизации.
> 
> $ mpv FBS\ NF\ 75\ \(4K\ HEVC\).mp4 
>  (+) Video --vid=1 (*) (hevc 3840x1608 25.000fps)
>  (+) Audio --aid=1 --alang=eng (*) (aac 2ch 48000Hz)
> Using hardware decoding (vaapi).
> AO: [pipewire] 48000Hz stereo 2ch floatp
> VO: [gpu-next] 3840x1608 vaapi[nv12]
> 
> Audio/Video desynchronisation detected! Possible reasons include too slow
> hardware, temporary CPU spikes, broken drivers, and broken files. Audio
> position will not match to the video (see A-V status field).
> Consider trying `--profile=fast` and/or `--hwdec=auto-safe` as they may help.
> 
> Exiting... (Quit)

Приложите, пожалуйста, подробный вывод (-v) запуска mpv с новыми настройками с первыми секундами запуска (чтобы было видно тайминги).

Насчет тормозов - вы ничего не уточнили про носитель, с которого видео играется, что это вообще такое и какая у него скорость чтения.
Comment 13 Aleksandr Shamaraev 2023-12-25 03:03:53 MSK
$ mpv -v FBS\ NF\ 75\ \(4K\ HEVC\).mp4 
[cplayer] Command line options: '-v' 'FBS NF 75 (4K HEVC).mp4'
[cplayer] mpv 0.37.0 Copyright © 2000-2023 mpv/MPlayer/mplayer2 projects
[cplayer]  built on Dec 15 2023 13:57:02
[cplayer] libplacebo version: v6.338.1
[cplayer] FFmpeg version: 6.0.1-alt1
[cplayer] FFmpeg library versions:
[cplayer]    libavutil       58.2.100
[cplayer]    libavcodec      60.3.100
[cplayer]    libavformat     60.3.100
[cplayer]    libswscale      7.1.100
[cplayer]    libavfilter     9.3.100
[cplayer]    libswresample   4.10.100
[cplayer] 
[cplayer] Configuration: -Doptimization=2 -Dpulse=enabled -Dxv=enabled -Dvaapi=enabled -Dalsa=enabled -Dgl-x11=enabled -Dlua=enabled -Dlibbluray=enabled -Ddvdnav=enabled -Dlibmpv=true -Djack=enabled -Dvulkan=enabled -Dsdl2=enabled -Dvapoursynth=enabled -Dpipewire=enabled -Dprefix=/usr -Dbindir=/usr/bin -Ddatadir=/usr/share -Dincludedir=/usr/include -Dinfodir=/usr/share/info -Dlibdir=/usr/lib64 -Dlibexecdir=/usr/lib -Dlocaledir=/usr/share/locale -Dlocalstatedir=/var -Dmandir=/usr/share/man -Dsbindir=/usr/sbin -Dsharedstatedir=/var/lib -Dsysconfdir=/etc -Dwrap_mode=nodownload
[cplayer] List of enabled features: alsa av-channel-layout avif-muxer build-date cplugins cuda-hwaccel cuda-interop debug dmabuf-interop-gl dmabuf-wayland drm dvdnav egl egl-drm egl-helpers egl-wayland egl-x11 ffmpeg ffnvcodec gbm gl gl-x11 glibc-thread-name glob glob-posix gpl iconv jack jpeg jpegxl lavu-uuid lcms2 libarchive libass libavdevice libbluray libdl libm libplacebo librt linux-fstatfs lua manpage-build memfd-create noexecstack pipewire posix posix-shm ppoll pulse sdl2 sdl2-audio sdl2-gamepad sdl2-video shaderc sixel threads uchardet vaapi vaapi-drm vaapi-wayland vaapi-x11 vapoursynth vdpau vdpau-gl-x11 vector vk-khr-display vt.h vulkan 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 /home/aleksandr/.config/mpv/mpv.conf
[ifo_dvdnav] Opening /home/aleksandr/.config/mpv/mpv.conf
[bdmv/bluray] Opening /home/aleksandr/.config/mpv/mpv.conf
[file] Opening /home/aleksandr/.config/mpv/mpv.conf
[cplayer] Applying profile 'default'...
[cplayer] Setting option 'hwdec' = 'vaapi' (flags = 4)
[cplayer] Setting option 'vo' = 'gpu-next' (flags = 4)
[cplayer] Setting option 'v' = '' (flags = 8)
[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: ytdl_hook/on_load
[ytdl_hook] ytdl:// hook 
[ytdl_hook] not a ytdl:// url 
[cplayer] Running hook: ytdl_hook/on_load
[ytdl_hook] playlist hook 
[cplayer] Set property: user-data/osc/margins={"b":0,"l":0,"t":0,"r":0} -> 1
[ifo_dvdnav] Opening FBS NF 75 (4K HEVC).mp4
[bdmv/bluray] Opening FBS NF 75 (4K HEVC).mp4
[file] Opening FBS NF 75 (4K HEVC).mp4
[demux] Trying demuxers for level=normal.
[cplayer] Set property: user-data/osc/margins={"b":0,"l":0,"t":0,"r":0} -> 1
[osd/libass] libass API version: 0x1701000
[osd/libass] libass source: tarball: 0.17.1
[osd/libass] Shaper: FriBidi 1.0.12 (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.
[osd/libass] Using font provider fontconfig
[osd/libass] Done.
[demux] Detected file format: mov,mp4,m4a,3gp,3g2,mj2 (libavformat)
[cplayer] Opening done: FBS NF 75 (4K HEVC).mp4
[find_files] Loading external files in .
[cplayer] Running hook: ytdl_hook/on_preloaded
[lavf] select track 0
[lavf] select track 1
[cplayer]  (+) Video --vid=1 (*) (hevc 3840x1608 25.000fps)
[cplayer]  (+) Audio --aid=1 --alang=eng (*) (aac 2ch 48000Hz)
[vo/gpu-next] Probing for best GPU context.
[vo/gpu-next/opengl] Initializing GPU context 'wayland'
[vo/gpu-next/opengl] Initializing GPU context 'x11egl'
[vo/gpu-next/x11] X11 opening display: :0
[vo/gpu-next/x11] Assuming DPI scale 2 for prescaling. This can be disabled with --hidpi-window-scale=no.
[vo/gpu-next/x11] Display 0 (eDP): [0, 0, 1920, 1080] @ 60.007852 FPS
[vo/gpu-next/x11] Current display FPS: 60.007852
[vo/gpu-next/opengl] EGL_VERSION=1.5
[vo/gpu-next/opengl] EGL_VENDOR=Mesa Project
[vo/gpu-next/opengl] EGL_CLIENT_APIS=OpenGL OpenGL_ES 
[vo/gpu-next/opengl] Trying to create Desktop OpenGL context.
[vo/gpu-next/opengl] Choosing visual EGL config 0x11, visual ID 0x21
[vo/gpu-next/x11] The XPresent extension was found.
[vo/gpu-next/x11] XPresent enabled.
[vo/gpu-next/opengl] GL_VERSION='4.6 (Core Profile) Mesa 23.3.1'
[vo/gpu-next/opengl] Detected desktop OpenGL 4.6.
[vo/gpu-next/opengl] GL_VENDOR='AMD'
[vo/gpu-next/opengl] GL_RENDERER='AMD Radeon Vega 8 Graphics (radeonsi, raven, LLVM 17.0.3, DRM 3.54, 6.6.8-un-def-alt1)'
[vo/gpu-next/opengl] GL_SHADING_LANGUAGE_VERSION='4.60'
[vo/gpu-next/opengl] Loaded extension GL_NV_vdpau_interop.
[vo/gpu-next/opengl] Loaded extension GL_KHR_debug.
[vo/gpu-next/libplacebo] Initialized libplacebo v6.338.1 (API v338)
[vo/gpu-next/libplacebo] Detected OpenGL version strings:
[vo/gpu-next/libplacebo]     GL_VERSION:  4.6 (Core Profile) Mesa 23.3.1
[vo/gpu-next/libplacebo]     GL_VENDOR:   AMD
[vo/gpu-next/libplacebo]     GL_RENDERER: AMD Radeon Vega 8 Graphics (radeonsi, raven, LLVM 17.0.3, DRM 3.54, 6.6.8-un-def-alt1)
[vo/gpu-next/libplacebo]     GL_SHADING_LANGUAGE_VERSION: 4.60
[vo/gpu-next/libplacebo] GPU information:
[vo/gpu-next/libplacebo]     GLSL version: 460
[vo/gpu-next/libplacebo]       max_shmem_size:            65536
[vo/gpu-next/libplacebo]       max_group_threads:         1024
[vo/gpu-next/libplacebo]       max_group_size[0]:         1024
[vo/gpu-next/libplacebo]       max_group_size[1]:         1024
[vo/gpu-next/libplacebo]       max_group_size[2]:         1024
[vo/gpu-next/libplacebo]       subgroup_size:             0
[vo/gpu-next/libplacebo]       min_gather_offset:         -32
[vo/gpu-next/libplacebo]       max_gather_offset:         31
[vo/gpu-next/libplacebo]     Limits:
[vo/gpu-next/libplacebo]       thread_safe:               0
[vo/gpu-next/libplacebo]       callbacks:                 1
[vo/gpu-next/libplacebo]       max_buf_size:              18446744073709551615
[vo/gpu-next/libplacebo]       max_ubo_size:              900871168
[vo/gpu-next/libplacebo]       max_ssbo_size:             900871168
[vo/gpu-next/libplacebo]       max_vbo_size:              18446744073709551615
[vo/gpu-next/libplacebo]       max_mapped_size:           18446744073709551615
[vo/gpu-next/libplacebo]       max_buffer_texels:         0
[vo/gpu-next/libplacebo]       align_host_ptr:            4096
[vo/gpu-next/libplacebo]       host_cached:               1
[vo/gpu-next/libplacebo]       max_tex_1d_dim:            16384
[vo/gpu-next/libplacebo]       max_tex_2d_dim:            16384
[vo/gpu-next/libplacebo]       max_tex_3d_dim:            2048
[vo/gpu-next/libplacebo]       blittable_1d_3d:           0
[vo/gpu-next/libplacebo]       buf_transfer:              1
[vo/gpu-next/libplacebo]       align_tex_xfer_pitch:      4
[vo/gpu-next/libplacebo]       align_tex_xfer_offset:     32
[vo/gpu-next/libplacebo]       max_variable_comps:        16384
[vo/gpu-next/libplacebo]       max_constants:             0
[vo/gpu-next/libplacebo]       max_pushc_size:            0
[vo/gpu-next/libplacebo]       align_vertex_stride:       1
[vo/gpu-next/libplacebo]       max_dispatch[0]:           2147483646
[vo/gpu-next/libplacebo]       max_dispatch[1]:           65535
[vo/gpu-next/libplacebo]       max_dispatch[2]:           65535
[vo/gpu-next/libplacebo]       fragment_queues:           1
[vo/gpu-next/libplacebo]       compute_queues:            1
[vo/gpu-next/libplacebo]     External API interop:
[vo/gpu-next/libplacebo]       UUID: 00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00
[vo/gpu-next/libplacebo]       PCI: 0000:00:00:0
[vo/gpu-next/libplacebo]       buf export caps: 0x0
[vo/gpu-next/libplacebo]       buf import caps: 0x10
[vo/gpu-next/libplacebo]       tex export caps: 0x8
[vo/gpu-next/libplacebo]       tex import caps: 0x8
[vo/gpu-next/libplacebo]       sync export caps: 0x0
[vo/gpu-next/libplacebo]       sync import caps: 0x0
[vo/gpu-next] Assuming 60.007852 FPS for display sync.
[vd] Container reported FPS: 25.000000
[vd] Codec list:
[vd]     hevc - HEVC (High Efficiency Video Coding)
[vd]     hevc_qsv (hevc) - HEVC video (Intel Quick Sync Video acceleration)
[vd]     hevc_v4l2m2m (hevc) - V4L2 mem2mem HEVC decoder wrapper
[vd]     hevc_cuvid (hevc) - Nvidia CUVID HEVC decoder
[vd] Opening decoder hevc
[vd] Looking at hwdec hevc-vaapi...
[vo/gpu-next] Loading hwdec drivers for format: 'vaapi'
[vo/gpu-next] Loading hwdec driver 'vaapi'
[vo/gpu-next/vaapi] using EGL dmabuf interop
[vo/gpu-next/vaapi] Trying to open a x11 VA display...
[vo/gpu-next/vaapi/vaapi] Initialized VAAPI: version 1.20
[vo/gpu-next/vaapi] Going to probe surface formats (may log bogus errors)...
[vo/gpu-next/vaapi] Done probing surface formats.
[vd] Trying hardware decoding via hevc-vaapi.
[vd] Selected codec: HEVC (High Efficiency Video Coding)
[vf] User filter list:
[vf]   (empty)
[ad] Codec list:
[ad]     aac - AAC (Advanced Audio Coding)
[ad]     aac_fixed (aac) - AAC (Advanced Audio Coding)
[ad] Opening decoder aac
[ad] Requesting 1 threads for decoding.
[ad] Selected codec: AAC (Advanced Audio Coding)
[af] User filter list:
[af]   (empty)
[cplayer] Starting playback...
[af] [in] 48000Hz stereo 2ch floatp
[af] [userspeed] 48000Hz stereo 2ch floatp
[af] [userspeed] (disabled)
[af] [convert] 48000Hz stereo 2ch floatp
[vd] Pixel formats supported by decoder: vaapi vdpau cuda yuv420p
[vd] Codec profile: Main (0x1)
[vd] Requesting pixfmt 'vaapi' from decoder.
[vd] Using hardware decoding (vaapi).
[vd] Decoder format: 3840x1608 vaapi[nv12] bt.709/bt.709/bt.1886/limited/auto CL=mpeg2/4/h264 crop=3840x1608+0+0
[vf] [in] 3840x1608 vaapi[nv12] bt.709/bt.709/bt.1886/limited/display CL=mpeg2/4/h264 crop=3840x1608+0+0
[vf] [userdeint] 3840x1608 vaapi[nv12] bt.709/bt.709/bt.1886/limited/display CL=mpeg2/4/h264 crop=3840x1608+0+0
[vf] [userdeint] (disabled)
[vf] [autorotate] 3840x1608 vaapi[nv12] bt.709/bt.709/bt.1886/limited/display CL=mpeg2/4/h264 crop=3840x1608+0+0
[vf] [autorotate] (disabled)
[vf] [convert] 3840x1608 vaapi[nv12] bt.709/bt.709/bt.1886/limited/display CL=mpeg2/4/h264 crop=3840x1608+0+0
[vo/gpu-next] Loading hwdec drivers for format: 'vaapi'
[vf] [out] 3840x1608 vaapi[nv12] bt.709/bt.709/bt.1886/limited/display CL=mpeg2/4/h264 crop=3840x1608+0+0
[osd/libass] libass API version: 0x1701000
[osd/libass] libass source: tarball: 0.17.1
[osd/libass] Shaper: FriBidi 1.0.12 (SIMPLE) HarfBuzz-ng 8.3.0 (COMPLEX)
[osd/libass] Setting up fonts...
[osd/libass] Using font provider fontconfig
[osd/libass] Done.
[ao] Trying audio driver 'pipewire'
[ao/pipewire] requested format: 48000 Hz, stereo channels, floatp
[ao/pipewire] Headers version: 1.0.0
[ao/pipewire] Library version: 1.0.0
[ao/pipewire] Core user: aleksandr
[ao/pipewire] Core host: ximper
[ao/pipewire] Core version: 1.0.0
[ao/pipewire] Core name: pipewire-0
[ao/pipewire] using soft-buffer of 9600 samples.
[cplayer] AO: [pipewire] 48000Hz stereo 2ch floatp
[cplayer] AO: Description: PipeWire audio output
[af] [convert] (disabled)
[af] [out] 48000Hz stereo 2ch floatp
[cplayer] VO: [gpu-next] 3840x1608 vaapi[nv12]
[cplayer] VO: Description: Video output based on libplacebo
[vo/gpu-next] reconfig to 3840x1608 vaapi[nv12] bt.709/bt.709/bt.1886/limited/display CL=mpeg2/4/h264 crop=3840x1608+0+0
[vo/gpu-next/x11] not waiting for MapNotify
[vo/gpu-next] Window size: 7680x3216 (Borders: l=0 t=0 r=0 b=0)
[vo/gpu-next] Video source: 3840x1608 (1:1)
[vo/gpu-next] Video display: (0, 0) 3840x1608 -> (0, 0) 7680x3216
[vo/gpu-next] Video scale: 2.000000/2.000000
[vo/gpu-next] OSD borders: l=0 t=0 r=0 b=0
[vo/gpu-next] Video borders: l=0 t=0 r=0 b=0
[vo/gpu-next/libplacebo] Dithering to 8 bit depth
[cplayer] first video frame after restart shown
[cplayer] audio ready
[cplayer] delaying audio start 0.000000 vs. 0.000000, diff=0.000000
[cplayer] playback restart complete @ 0.000000, audio=ready, video=playing
[vo/gpu-next] Window size: 1920x1012 (Borders: l=0 t=0 r=0 b=0)
[vo/gpu-next] Video source: 3840x1608 (1:1)
[vo/gpu-next] Video display: (0, 0) 3840x1608 -> (0, 104) 1920x804
[vo/gpu-next] Video scale: 0.500000/0.500000
[vo/gpu-next] OSD borders: l=0 t=104 r=0 b=104
[vo/gpu-next] Video borders: l=0 t=104 r=0 b=104
[cplayer] starting audio playback
[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
[vo/gpu-next] Window size: 1920x1012 (Borders: l=0 t=0 r=0 b=0)
[vo/gpu-next] Video source: 3840x1608 (1:1)
[vo/gpu-next] Video display: (0, 0) 3840x1608 -> (0, 104) 1920x804
[vo/gpu-next] Video scale: 0.500000/0.500000
[vo/gpu-next] OSD borders: l=0 t=104 r=0 b=104
[vo/gpu-next] Video borders: l=0 t=104 r=0 b=104
[vo/gpu-next/x11] Disabling screensaver.
[vo/gpu-next/libplacebo] Detected fps ratio 0.0000 below threshold 0.0100, disabling interpolation
[vo/gpu-next/libplacebo] Estimated source FPS: 25.000, display FPS: 25.000
[vo/gpu-next/libplacebo] Detected fps ratio 0.5000 exceeds threshold 0.0100, re-enabling interpolation
[vo/gpu-next/libplacebo] Estimated source FPS: 25.000, display FPS: 12.500
[vo/gpu-next/libplacebo] Detected fps ratio 0.0000 below threshold 0.0100, disabling interpolation
[vo/gpu-next/libplacebo] Estimated source FPS: 25.000, display FPS: 25.000
[cplayer] Set property: user-data/osc/margins={"b":0,"l":0,"t":0,"r":0} -> 1
[osd/libass] fontselect: (sans-serif, 400, 0) -> /usr/share/fonts/ttf/dejavu/DejaVuSans.ttf, 0, DejaVuSans
[osd/libass] fontselect: (mpv-osd-symbols, 400, 0) -> mpv-osd-symbols-Regular, 0, mpv-osd-symbols-Regular
[cplayer] Set property: user-data/osc/margins={"b":0,"l":0,"t":0,"r":0} -> 1
[vo/gpu-next/libplacebo] Estimated source FPS: 25.000, display FPS: 8.333
[vo/gpu-next/libplacebo] Estimated source FPS: 25.000, display FPS: 25.000
[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
[vo/gpu-next/libplacebo] Estimated source FPS: 25.000, display FPS: 8.333
[vo/gpu-next/libplacebo] Estimated source FPS: 25.000, display FPS: 25.000
[cplayer] EOF code: 5  
[cplayer] finished playback, success (reason 3)
[cplayer] Exiting... (Quit)
[vo/gpu-next/x11] Enabling screensaver.
Comment 14 Aleksandr Shamaraev 2023-12-25 03:09:51 MSK
> Насчет тормозов - вы ничего не уточнили про носитель, с которого видео
> играется, что это вообще такое и какая у него скорость чтения.

Диск 512 GB — SAMSUNG MZVLB512HAJQ-00000 [EXA7301Q] (/dev/nvme0n1)
Размер фрагмента 10,0 МиБ (10 485 760 байт)
Средняя скорость чтения 2,6 ГБ/с (100 фрагментов)
Среднее время доступа 0,07 мс (1000 фрагментов)

Тормоза наблюдаются только при проигрывании mpv, при проигрывании celluloid и vlc тормозов нет
Comment 15 Konstantin A Lepikhov (L.A. Kostis) 2023-12-25 13:50:42 MSK
(In reply to Бешеный Кролик from comment #14)
> > Насчет тормозов - вы ничего не уточнили про носитель, с которого видео
> > играется, что это вообще такое и какая у него скорость чтения.
> 
> Диск 512 GB — SAMSUNG MZVLB512HAJQ-00000 [EXA7301Q] (/dev/nvme0n1)
> Размер фрагмента 10,0 МиБ (10 485 760 байт)
> Средняя скорость чтения 2,6 ГБ/с (100 фрагментов)
> Среднее время доступа 0,07 мс (1000 фрагментов)
> 
> Тормоза наблюдаются только при проигрывании mpv, при проигрывании celluloid
> и vlc тормозов нет

понятно, т.е. скорость носителя тут ни при чем. Я тут посмотрел коммиты в mpv, на самом деле --profile=fast не так уж и плох и если у вас с ним все работает, то можете его использовать как профиль по-умолчанию:

https://github.com/mpv-player/mpv/commit/703f1588803eaa428e09c0e5547b26c0fff476a7

Можете попробовать еще gpu-api=vulkan вместо opengl:

hwdec=vaapi
vo=gpu-next
gpu-api=vulkan
Comment 16 Aleksandr Shamaraev 2023-12-25 14:21:30 MSK
Добрый день!
Методом тыка выяснил такую вещь.
Тормоза и выход уведомления
Audio/Video desynchronisation detected! Possible reasons include too slow
hardware, temporary CPU spikes, broken drivers, and broken files. Audio
position will not match to the video (see A-V status field).
Consider trying `--profile=fast` and/or `--hwdec=auto-safe` as they may help.

Возникают при просмотре 4К тогда, когда смотришь от батареи, без подключенного внешнего питания. В данной ситуации если использовать --profile=fast проблема уходит. 

Если подключить к ноутбуку внешнее питание и запустить видео, тормозов нет.

Эксперимента ради, я удалил файл mpv.conf, несколько раз перепроверял... 
Без питания есть тормоза, с питанием нет.

Я не знаю, из-за чего это возникает.... что скажем так является причиной... не факт получается что проблема в mpv, хотя странно почему другие проигрыватели играют нормально
Comment 17 Konstantin A Lepikhov (L.A. Kostis) 2023-12-25 14:53:38 MSK
(In reply to Бешеный Кролик from comment #16)
> Добрый день!
> Методом тыка выяснил такую вещь.
> Тормоза и выход уведомления
> Audio/Video desynchronisation detected! Possible reasons include too slow
> hardware, temporary CPU spikes, broken drivers, and broken files. Audio
> position will not match to the video (see A-V status field).
> Consider trying `--profile=fast` and/or `--hwdec=auto-safe` as they may help.
> 
> Возникают при просмотре 4К тогда, когда смотришь от батареи, без
> подключенного внешнего питания. В данной ситуации если использовать
> --profile=fast проблема уходит. 
> 
> Если подключить к ноутбуку внешнее питание и запустить видео, тормозов нет.
> 
> Эксперимента ради, я удалил файл mpv.conf, несколько раз перепроверял... 
> Без питания есть тормоза, с питанием нет.
> 
> Я не знаю, из-за чего это возникает.... что скажем так является причиной...
> не факт получается что проблема в mpv, хотя странно почему другие
> проигрыватели играют нормально

тогда это может быть связано с частотой GPU/CPU при переключении на батарею. Попробуйте посмотреть эти показания через nvtop/corectl когда тормозит и когда нет.

Можно тогда через corectl поиграть с профилями для CPU/GPU и посмотреть влияют ли они на скорость воспроизведения.
Comment 18 Aleksandr Shamaraev 2023-12-26 06:58:06 MSK
Без внешнего питания
загрузка GPU в среднем 98% 304 mib mem 30% загрузка cpu бегает от 68 до 344 %

С внешним питанием
загрузка gpu стабильно в среднем 66% 305mib mem 30% загрузка cpu стабильно в среднем 100%
Comment 19 Aleksandr Shamaraev 2023-12-26 06:58:41 MSK
смотрел через nvtop
Comment 20 Konstantin A Lepikhov (L.A. Kostis) 2023-12-26 19:02:26 MSK
(In reply to Бешеный Кролик from comment #18)
> Без внешнего питания
> загрузка GPU в среднем 98% 304 mib mem 30% загрузка cpu бегает от 68 до 344 %
> 
> С внешним питанием
> загрузка gpu стабильно в среднем 66% 305mib mem 30% загрузка cpu стабильно в
> среднем 100%

Не, это другое. Посмотрите на частоты и режим работы GPU (он может быть performance или ondemand например). В mpv активно используются 3D функции в vo=gpu или vo=gpu-next и частота GPU там может влиять на производительность. Аналогично с CPU.
Comment 21 Aleksandr Shamaraev 2023-12-27 02:27:16 MSK
Доброго времени суток!

Методом научного тыка выяснил, что сообщение о десинхронизации при проигрывании без питания 

Audio/Video desynchronisation detected! Possible reasons include too slow
hardware, temporary CPU spikes, broken drivers, and broken files. Audio
position will not match to the video (see A-V status field).
Consider trying `--profile=fast` and/or `--hwdec=auto-safe` as they may help.

Выходит на сессии Xorg, при запуске без питания на сессии Wayland такого сообщения нет.

Фактически на сессии Wayland наблюдаются чуть-чуть иногда протомаживания, но смотреть впринципи можно, при применении --profile=fast на wayland все отлично плавно работает, как на Xorg

По ссылке скриншоты графиков 

https://disk.yandex.ru/d/ZEMqd27w6y77YA

сейчас еще скину на wayland mpv -v
Comment 22 Aleksandr Shamaraev 2023-12-27 02:30:25 MSK
$ mpv -v FBS\ NF\ 75\ \(4K\ HEVC\).mp4 
[cplayer] Command line options: '-v' 'FBS NF 75 (4K HEVC).mp4'
[cplayer] mpv 0.37.0 Copyright © 2000-2023 mpv/MPlayer/mplayer2 projects
[cplayer]  built on Dec 15 2023 13:57:02
[cplayer] libplacebo version: v6.338.1
[cplayer] FFmpeg version: 6.0.1-alt1
[cplayer] FFmpeg library versions:
[cplayer]    libavutil       58.2.100
[cplayer]    libavcodec      60.3.100
[cplayer]    libavformat     60.3.100
[cplayer]    libswscale      7.1.100
[cplayer]    libavfilter     9.3.100
[cplayer]    libswresample   4.10.100
[cplayer] 
[cplayer] Configuration: -Doptimization=2 -Dpulse=enabled -Dxv=enabled -Dvaapi=enabled -Dalsa=enabled -Dgl-x11=enabled -Dlua=enabled -Dlibbluray=enabled -Ddvdnav=enabled -Dlibmpv=true -Djack=enabled -Dvulkan=enabled -Dsdl2=enabled -Dvapoursynth=enabled -Dpipewire=enabled -Dprefix=/usr -Dbindir=/usr/bin -Ddatadir=/usr/share -Dincludedir=/usr/include -Dinfodir=/usr/share/info -Dlibdir=/usr/lib64 -Dlibexecdir=/usr/lib -Dlocaledir=/usr/share/locale -Dlocalstatedir=/var -Dmandir=/usr/share/man -Dsbindir=/usr/sbin -Dsharedstatedir=/var/lib -Dsysconfdir=/etc -Dwrap_mode=nodownload
[cplayer] List of enabled features: alsa av-channel-layout avif-muxer build-date cplugins cuda-hwaccel cuda-interop debug dmabuf-interop-gl dmabuf-wayland drm dvdnav egl egl-drm egl-helpers egl-wayland egl-x11 ffmpeg ffnvcodec gbm gl gl-x11 glibc-thread-name glob glob-posix gpl iconv jack jpeg jpegxl lavu-uuid lcms2 libarchive libass libavdevice libbluray libdl libm libplacebo librt linux-fstatfs lua manpage-build memfd-create noexecstack pipewire posix posix-shm ppoll pulse sdl2 sdl2-audio sdl2-gamepad sdl2-video shaderc sixel threads uchardet vaapi vaapi-drm vaapi-wayland vaapi-x11 vapoursynth vdpau vdpau-gl-x11 vector vk-khr-display vt.h vulkan 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] Setting option 'v' = '' (flags = 8)
[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: ytdl_hook/on_load
[ytdl_hook] ytdl:// hook 
[ytdl_hook] not a ytdl:// url 
[cplayer] Running hook: ytdl_hook/on_load
[ytdl_hook] playlist hook 
[cplayer] Set property: user-data/osc/margins={"b":0,"l":0,"t":0,"r":0} -> 1
[ifo_dvdnav] Opening FBS NF 75 (4K HEVC).mp4
[bdmv/bluray] Opening FBS NF 75 (4K HEVC).mp4
[file] Opening FBS NF 75 (4K HEVC).mp4
[demux] Trying demuxers for level=normal.
[cplayer] Set property: user-data/osc/margins={"b":0,"l":0,"t":0,"r":0} -> 1
[osd/libass] libass API version: 0x1701000
[osd/libass] libass source: tarball: 0.17.1
[osd/libass] Shaper: FriBidi 1.0.12 (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: FBS NF 75 (4K HEVC).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
[lavf] select track 1
[cplayer]  (+) Video --vid=1 (*) (hevc 3840x1608 25.000fps)
[cplayer]  (+) Audio --aid=1 --alang=eng (*) (aac 2ch 48000Hz)
[vo/gpu] Probing for best GPU context.
[vo/gpu/opengl] Initializing GPU context 'wayland'
[vo/gpu/wayland] Registered for protocol wl_compositor
[vo/gpu/wayland] Registered for protocol wl_shm
[vo/gpu/wayland] Registered for protocol wl_output
[vo/gpu/wayland] Registered for protocol wl_data_device_manager
[vo/gpu/wayland] Registered for protocol wl_subcompositor
[vo/gpu/wayland] Registered for protocol xdg_wm_base
[vo/gpu/wayland] Registered for protocol wp_viewporter
[vo/gpu/wayland] Registered for protocol wp_fractional_scale_manager_v1
[vo/gpu/wayland] Registered for protocol wl_seat
[vo/gpu/wayland] Registered for protocol zwp_linux_dmabuf_v1
[vo/gpu/wayland] Registered for protocol wp_single_pixel_buffer_manager_v1
[vo/gpu/wayland] Registered for protocol wp_presentation
[vo/gpu/wayland] Registered for protocol zwp_idle_inhibit_manager_v1
[vo/gpu/wayland] Compositor doesn't support the wp_content_type_manager_v1 protocol!
[vo/gpu/wayland] Compositor doesn't support the zxdg_decoration_manager_v1 protocol!
[vo/gpu/wayland] Registered output CMN 0x1404 (0x4):
[vo/gpu/wayland] 	x: 0px, y: 0px
[vo/gpu/wayland] 	w: 1920px (310mm), h: 1080px (170mm)
[vo/gpu/wayland] 	scale: 1
[vo/gpu/wayland] 	Hz: 60.007000
[vo/gpu/opengl] EGL_VERSION=1.5
[vo/gpu/opengl] EGL_VENDOR=Mesa Project
[vo/gpu/opengl] EGL_CLIENT_APIS=OpenGL OpenGL_ES 
[vo/gpu/opengl] Trying to create Desktop OpenGL context.
[vo/gpu/wayland] GL_VERSION='4.6 (Core Profile) Mesa 23.3.1'
[vo/gpu/wayland] Detected desktop OpenGL 4.6.
[vo/gpu/wayland] GL_VENDOR='AMD'
[vo/gpu/wayland] GL_RENDERER='AMD Radeon Vega 8 Graphics (radeonsi, raven, LLVM 17.0.3, DRM 3.54, 6.6.8-un-def-alt1)'
[vo/gpu/wayland] GL_SHADING_LANGUAGE_VERSION='4.60'
[vo/gpu/wayland] Loaded extension GL_NV_vdpau_interop.
[vo/gpu/wayland] Loaded extension GL_KHR_debug.
[vo/gpu] Testing FBO format rgba16f
[vo/gpu] Using FBO format rgba16f.
[vo/gpu] Resize: 0x0
[vo/gpu] Assuming 60.007000 FPS for display sync.
[vd] Container reported FPS: 25.000000
[vd] Codec list:
[vd]     hevc - HEVC (High Efficiency Video Coding)
[vd]     hevc_qsv (hevc) - HEVC video (Intel Quick Sync Video acceleration)
[vd]     hevc_v4l2m2m (hevc) - V4L2 mem2mem HEVC decoder wrapper
[vd]     hevc_cuvid (hevc) - Nvidia CUVID HEVC decoder
[vd] Opening decoder hevc
[vd] No hardware decoding requested.
[vd] Using software decoding.
[vd] Detected 8 logical cores.
[vd] Requesting 9 threads for decoding.
[vd] Selected codec: HEVC (High Efficiency Video Coding)
[vf] User filter list:
[vf]   (empty)
[ad] Codec list:
[ad]     aac - AAC (Advanced Audio Coding)
[ad]     aac_fixed (aac) - AAC (Advanced Audio Coding)
[ad] Opening decoder aac
[ad] Requesting 1 threads for decoding.
[ad] Selected codec: AAC (Advanced Audio Coding)
[af] User filter list:
[af]   (empty)
[cplayer] Starting playback...
[af] [in] 48000Hz stereo 2ch floatp
[af] [userspeed] 48000Hz stereo 2ch floatp
[af] [userspeed] (disabled)
[af] [convert] 48000Hz stereo 2ch floatp
[vd] Using software decoding.
[vd] Decoder format: 3840x1608 yuv420p bt.709/bt.709/bt.1886/limited/auto CL=mpeg2/4/h264 crop=3840x1608+0+0
[vf] [in] 3840x1608 yuv420p bt.709/bt.709/bt.1886/limited/display CL=mpeg2/4/h264 crop=3840x1608+0+0
[vf] [userdeint] 3840x1608 yuv420p bt.709/bt.709/bt.1886/limited/display CL=mpeg2/4/h264 crop=3840x1608+0+0
[vf] [userdeint] (disabled)
[vf] [autorotate] 3840x1608 yuv420p bt.709/bt.709/bt.1886/limited/display CL=mpeg2/4/h264 crop=3840x1608+0+0
[vf] [autorotate] (disabled)
[vf] [convert] 3840x1608 yuv420p bt.709/bt.709/bt.1886/limited/display CL=mpeg2/4/h264 crop=3840x1608+0+0
[vf] [convert] (disabled)
[vf] [out] 3840x1608 yuv420p bt.709/bt.709/bt.1886/limited/display CL=mpeg2/4/h264 crop=3840x1608+0+0
[osd/libass] libass API version: 0x1701000
[osd/libass] libass source: tarball: 0.17.1
[osd/libass] Shaper: FriBidi 1.0.12 (SIMPLE) HarfBuzz-ng 8.3.0 (COMPLEX)
[osd/libass] Setting up fonts...
[osd/libass] Using font provider fontconfig
[osd/libass] Done.
[ao] Trying audio driver 'pipewire'
[ao/pipewire] requested format: 48000 Hz, stereo channels, floatp
[ao/pipewire] Headers version: 1.0.0
[ao/pipewire] Library version: 1.0.0
[ao/pipewire] Core user: aleksandr
[ao/pipewire] Core host: ximper
[ao/pipewire] Core version: 1.0.0
[ao/pipewire] Core name: pipewire-0
[ao/pipewire] using soft-buffer of 9600 samples.
[cplayer] AO: [pipewire] 48000Hz stereo 2ch floatp
[cplayer] AO: Description: PipeWire audio output
[af] [convert] (disabled)
[af] [out] 48000Hz stereo 2ch floatp
[cplayer] VO: [gpu] 3840x1608 yuv420p
[cplayer] VO: Description: Shader-based GPU Renderer
[vo/gpu] reconfig to 3840x1608 yuv420p bt.709/bt.709/bt.1886/limited/display CL=mpeg2/4/h264 crop=3840x1608+0+0
[vo/gpu/wayland] Reconfiguring!
[vo/gpu] Resize: 3840x1608
[vo/gpu] Window size: 3840x1608 (Borders: l=0 t=0 r=0 b=0)
[vo/gpu] Video source: 3840x1608 (1:1)
[vo/gpu] Video display: (0, 0) 3840x1608 -> (0, 0) 3840x1608
[vo/gpu] Video scale: 1.000000/1.000000
[vo/gpu] OSD borders: l=0 t=0 r=0 b=0
[vo/gpu] Video borders: l=0 t=0 r=0 b=0
[vo/gpu] Texture for plane 0: 3840x1608
[vo/gpu] Texture for plane 1: 1920x804
[vo/gpu] Texture for plane 2: 1920x804
[vo/gpu] Testing FBO format rgba16f
[vo/gpu] Using FBO format rgba16f.
[vo/gpu/wayland] Handling resize on the egl side
[vo/gpu] Resize: 1920x1048
[vo/gpu] Window size: 1920x1048 (Borders: l=0 t=0 r=0 b=0)
[vo/gpu] Video source: 3840x1608 (1:1)
[vo/gpu] Video display: (0, 0) 3840x1608 -> (0, 122) 1920x804
[vo/gpu] Video scale: 0.500000/0.500000
[vo/gpu] OSD borders: l=0 t=122 r=0 b=122
[vo/gpu] Video borders: l=0 t=122 r=0 b=122
[vo/gpu] Reported display depth: 10
[vo/gpu] DR enabled: yes
[vo/gpu] Dither to 10.
[vo/gpu/wayland] Obtained preferred scale, 1.000000, from the compositor.
[cplayer] first video frame after restart shown
[vo/gpu/wayland] Handling resize on the egl side
[vo/gpu] Resize: 1920x1048
[vo/gpu] Window size: 1920x1048 (Borders: l=0 t=0 r=0 b=0)
[vo/gpu] Video source: 3840x1608 (1:1)
[vo/gpu] Video display: (0, 0) 3840x1608 -> (0, 122) 1920x804
[vo/gpu] Video scale: 0.500000/0.500000
[vo/gpu] OSD borders: l=0 t=122 r=0 b=122
[vo/gpu] Video borders: l=0 t=122 r=0 b=122
[vo/gpu] Reported display depth: 10
[vo/gpu/wayland] Given DND offer with mime type text/plain;charset=utf-8
[vo/gpu/wayland] Received a new DND offer. Releasing the previous offer.
[vo/gpu/wayland] Surface entered output CMN 0x1404 (0x4), scale = 1.000000, refresh rate = 60.007000 Hz
[vo/gpu] Resize: 1920x1048
[vo/gpu] Window size: 1920x1048 (Borders: l=0 t=0 r=0 b=0)
[vo/gpu] Video source: 3840x1608 (1:1)
[vo/gpu] Video display: (0, 0) 3840x1608 -> (0, 122) 1920x804
[vo/gpu] Video scale: 0.500000/0.500000
[vo/gpu] OSD borders: l=0 t=122 r=0 b=122
[vo/gpu] Video borders: l=0 t=122 r=0 b=122
[vo/gpu] Reported display depth: 10
[cplayer] audio ready
[cplayer] delaying audio start 0.000000 vs. 0.000000, diff=0.000000
[cplayer] playback restart complete @ 0.000000, audio=ready, video=playing
[cplayer] Set property: user-data/osc/margins={"b":0,"l":0,"t":0,"r":0} -> 1
[cplayer] starting audio playback
[vo/gpu/wayland] Enabling idle inhibitor
[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] fontselect: (sans-serif, 400, 0) -> /usr/share/fonts/ttf/dejavu/DejaVuSans.ttf, 0, DejaVuSans
[osd/libass] fontselect: (mpv-osd-symbols, 400, 0) -> mpv-osd-symbols-Regular, 0, mpv-osd-symbols-Regular
[vo/gpu] Reallocating OSD texture to 2048x512.
[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
[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
[cplayer] EOF code: 5  
[vo/gpu/wayland] Disabling the idle inhibitor
[cplayer] finished playback, success (reason 3)
[cplayer] Exiting... (Quit)
[vo/gpu/wayland] Deregistering output CMN 0x1404 (0x4)
Comment 23 Konstantin A Lepikhov (L.A. Kostis) 2023-12-27 11:25:52 MSK
У вас опять используется программное декодирование вместо аппаратного:
...
[vd] Opening decoder hevc
[vd] No hardware decoding requested.
[vd] Using software decoding.
[vd] Detected 8 logical cores.
[vd] Requesting 9 threads for decoding.
[vd] Selected codec: HEVC (High Efficiency Video Coding)

Решите сначала эту проблему через hwdec=vaapi, а потом уже экспериментируйте с vo. Для wayland рекомендую использовать --vo=dmabuf-wayland.

И графики только подтверждают, что у вас ENC не используется, поэтому такая высокая нагрузка на GPU. Попробуйте включить vaapi и проверить графики снова, там должна появиться строка ENC (аппаратное декодирование видеопотока).
Comment 24 Aleksandr Shamaraev 2023-12-27 11:42:52 MSK
Добрый день!

Прописал в mpv.config
hwdec=vaapi
vo=dmabuf-wayland

Проблема ушла. Сейчас под wayland без внешнего питания 4к показывает плавно и без каких либо протормаживаний.

Большое спасибо.

С уважением