You are not logged in.
I have been facing this for a while. I get choppy video playback if use mpv --hwdec or just vlc . But it only happens for 1080p and above. If I use CPU (by removing --hwdec option) then all videos play fine. Here is the output from both the players after enabling the verbose option:
vainfo
[arnuld@arch64 ~ ]$ vainfo
Trying display: wayland
Trying display: x11
vainfo: VA-API version: 1.18 (libva 2.18.2)
vainfo: Driver version: Mesa Gallium driver 23.1.3 for AMD Radeon RX Vega (vega10, LLVM 15.0.7, DRM 3.52, 6.3.9-arch1-1)
vainfo: Supported profile and entrypoints
VAProfileMPEG2Simple : VAEntrypointVLD
VAProfileMPEG2Main : VAEntrypointVLD
VAProfileVC1Simple : VAEntrypointVLD
VAProfileVC1Main : VAEntrypointVLD
VAProfileVC1Advanced : VAEntrypointVLD
VAProfileH264ConstrainedBaseline: VAEntrypointVLD
VAProfileH264ConstrainedBaseline: VAEntrypointEncSlice
VAProfileH264Main : VAEntrypointVLD
VAProfileH264Main : VAEntrypointEncSlice
VAProfileH264High : VAEntrypointVLD
VAProfileH264High : VAEntrypointEncSlice
VAProfileHEVCMain : VAEntrypointVLD
VAProfileHEVCMain : VAEntrypointEncSlice
VAProfileHEVCMain10 : VAEntrypointVLD
VAProfileNone : VAEntrypointVideoProc
vlc -v
VLC media player 3.0.18 Vetinari (revision 3.0.13-8-g41878ff4f2)
[000055aed2767550] main libvlc warning: cannot load module `/usr/lib/vlc/plugins/stream_filter/libaribcam_plugin.so' (libaribb25.so.0: cannot open shared object file: No such file or directory)
[000055aed2767550] main libvlc warning: cannot load module `/usr/lib/vlc/plugins/codec/libsdl_image_plugin.so' (libSDL_image-1.2.so.0: cannot open shared object file: No such file or directory)
[000055aed2767550] main libvlc warning: cannot load module `/usr/lib/vlc/plugins/access/liblive555_plugin.so' (libliveMedia.so.107: cannot open shared object file: No such file or directory)
[000055aed2767550] main libvlc warning: cannot load module `/usr/lib/vlc/plugins/visualization/libgoom_plugin.so' (libgoom2.so.0: cannot open shared object file: No such file or directory)
[000055aed2767550] main libvlc: Running vlc with the default interface. Use 'cvlc' to use vlc without interface.
[00007fd3c0d03950] faad decoder warning: decoded zero sample
[00007fd3a4006c10] gl gl: Initialized libplacebo v5.229.2 (API v229)
[00007fd3c0c88c10] avcodec decoder: Using Mesa Gallium driver 23.1.3 for AMD Radeon RX Vega (vega10, LLVM 15.0.7, DRM 3.52, 6.3.9-arch1-1) for hardware decoding
[hevc @ 0x7fd3c0c2ed80] Using deprecated struct vaapi_context in decode.
[000055aed28423e0] pulse audio output warning: starting late (-19338 us)
mpv --hwdec -v
Everytime the chopping happens, then this shows up on the terminal
[vo/gpu] Reallocating OSD texture to 512x512.
[statusline] AV: 00:00:03 / 01:00:04 (0%) A-V: 0.000
[vo/gpu] Reallocating OSD texture to 1024x128.
[statusline] AV: 00:00:14 / 01:00:04 (0%) A-V: 0.000
[vo/gpu] Reallocating OSD texture to 1024x256.
[statusline] AV: 00:00:16 / 01:00:04 (0%) A-V: 0.000
Full mpv log is here (I have changed the video filename of course)
[cplayer] Command line options: '--hwdec' '-v' 'Video.mkv'
[cplayer] mpv 0.35.1-dirty Copyright © 2000-2023 mpv/MPlayer/mplayer2 projects
[cplayer] built on Fri Apr 21 07:11:25 2023
[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] FFmpeg version: n6.0
[cplayer]
[cplayer] Configuration: meson configure build -Dprefix=/usr -Dbuildtype=plain -Doptimization=plain
[cplayer] List of enabled features: alsa av-channel-layout build-date 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 luajit manpage-build memfd_create noexecstack pipewire plain-gl posix pulse rubberband rubberband-3 shaderc 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] Setting option 'hwdec' = '' (flags = 8)
[cplayer] Setting option 'v' = '' (flags = 8)
[cplayer] Waiting for scripts...
[osd/libass] libass API version: 0x1701000
[osd/libass] libass source: commit: 0.17.1-0-ge8ad72accd3a84268275a9385beb701c9284e5b3-dirty
[osd/libass] Shaper: FriBidi 1.0.12 (SIMPLE) HarfBuzz-ng 7.3.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
[cplayer] Set property: shared-script-properties -> 1
[ifo_dvdnav] Opening Video.mkv
[bdmv/bluray] Video.mkv
[file] Opening Video.mkv
[cplayer] Set property: shared-script-properties -> 1
[demux] Trying demuxers for level=normal.
[osd/libass] libass API version: 0x1701000
[osd/libass] libass source: commit: 0.17.1-0-ge8ad72accd3a84268275a9385beb701c9284e5b3-dirty
[osd/libass] Shaper: FriBidi 1.0.12 (SIMPLE) HarfBuzz-ng 7.3.0 (COMPLEX)
[osd/libass] Setting up fonts...
[mkv] New edition 0
[mkv] Seeking to 1382049925 to read header element 0x1c53bb6b.
[file] stream level seek from 131072 to 1382049925
[mkv] Parsing cues...
[mkv] Seeking to 1382115287 to read header element 0x1254c367.
[file] stream level seek from 1382116301 to 8476
[mkv] All headers are parsed!
[demux] Detected file format: Matroska
[cplayer] Opening done: Video.mkv
[osd/libass] Using font provider fontconfig
[osd/libass] Done.
[find_files] Loading external files in .
[ifo_dvdnav] Opening Video.srt
[bdmv/bluray] Opening Video.srt
[file] Opening Video.srt
[demux] Trying demuxers for level=normal.
[lavf] Found 'srt' at score=100 size=2048.
[lavf] Data has a BOM, assuming utf-8 as charset.
[lavf] avformat_find_stream_info() finished after 68846 bytes.
[lavf] demuxer read all data; closing stream
[demux] Detected file format: srt (libavformat)
[cplayer] Running hook: ytdl_hook/on_preloaded
[mkv] select track 0
[mkv] select track 1
[lavf] select track 0
[cplayer] (+) Video --vid=1 (*) (hevc 1920x800 23.976fps)
[cplayer] (+) Audio --aid=1 --alang=eng (*) (f) 'Main Audio' (aac 6ch 48000Hz)
[cplayer] Subs --sid=1 --slang=eng 'English (SDH)' (hdmv_pgs_subtitle)
[cplayer] (+) Subs --sid=2 'Video.srt' (subrip) (external)
[display-tags] File tags:
[display-tags] Title: My Video
[vo/gpu] Probing for best GPU context.
[vo/gpu/opengl] Initializing GPU context 'wayland'
[vo/gpu/opengl] Initializing GPU context 'x11egl'
[vo/gpu/x11] X11 opening display: :0
[vo/gpu/x11] Display 0 (DisplayPort-1): [0, 0, 2560, 1440] @ 144.000162 FPS
[vo/gpu/x11] Current display FPS: 144.000162
[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 0x11, visual ID 0x21
[vo/gpu/x11] The XPresent extension was found.
[vo/gpu/x11] XPresent enabled.
[vo/gpu/opengl] GL_VERSION='4.6 (Core Profile) Mesa 23.1.3'
[vo/gpu/opengl] Detected desktop OpenGL 4.6.
[vo/gpu/opengl] GL_VENDOR='AMD'
[vo/gpu/opengl] GL_RENDERER='AMD Radeon RX Vega (vega10, LLVM 15.0.7, DRM 3.52, 6.3.9-arch1-1)'
[vo/gpu/opengl] GL_SHADING_LANGUAGE_VERSION='4.60'
[vo/gpu/opengl] Loaded extension GL_NV_vdpau_interop.
[vo/gpu/opengl] Loaded extension GL_KHR_debug.
[vo/gpu] Testing FBO format rgba16f
[vo/gpu] Using FBO format rgba16f.
[vo/gpu] No advanced processing required. Enabling dumb mode.
[vo/gpu] Assuming 144.000162 FPS for display sync.
[vd] Container reported FPS: 23.976024
[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-nvdec...
[vo/gpu] Loading hwdec drivers for format: 'cuda'
[vo/gpu] Loading hwdec driver 'cuda'
Cannot load libcuda.so.1
[vo/gpu/cuda] Failed to load CUDA symbols
[vo/gpu] Loading failed.
[vd] Could not create device.
[vd] Looking at hwdec hevc-vaapi...
[vo/gpu] Loading hwdec drivers for format: 'vaapi'
[vo/gpu] Loading hwdec driver 'vaapi'
[vo/gpu/vaapi] using EGL dmabuf interop
[vo/gpu/vaapi] Trying to open a x11 VA display...
[vo/gpu/vaapi/vaapi] Initialized VAAPI: version 1.18
[vo/gpu/vaapi] Going to probe surface formats (may log bogus errors)...
[vo/gpu/vaapi] Done probing surface formats.
[vd] Trying hardware decoding via hevc-vaapi.
[vd] Selected codec: hevc (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 (AAC (Advanced Audio Coding))
[af] User filter list:
[af] (empty)
[sub/ass] libass API version: 0x1701000
[sub/ass] libass source: commit: 0.17.1-0-ge8ad72accd3a84268275a9385beb701c9284e5b3-dirty
[sub/ass] Shaper: FriBidi 1.0.12 (SIMPLE) HarfBuzz-ng 7.3.0 (COMPLEX)
[sub/ass] Setting up fonts...
[sub/ass] Using font provider fontconfig
[sub/ass] Done.
[cplayer] Starting playback...
[vd] Pixel formats supported by decoder: vaapi vdpau cuda yuv420p10le
[vd] Codec profile: Main 10 (0x2)
[vd] Requesting pixfmt 'vaapi' from decoder.
[vd] Using hardware decoding (vaapi).
[vd] Decoder format: 1920x800 [0:1] vaapi[p010] auto/auto/auto/limited/auto CL=mpeg2/4/h264
[vd] Using container aspect ratio.
[vf] [in] 1920x800 vaapi[p010] bt.709/bt.709/bt.1886/limited/display SP=1.000000 CL=mpeg2/4/h264
[vf] [userdeint] 1920x800 vaapi[p010] bt.709/bt.709/bt.1886/limited/display SP=1.000000 CL=mpeg2/4/h264
[vf] [userdeint] (disabled)
[vf] [autorotate] 1920x800 vaapi[p010] bt.709/bt.709/bt.1886/limited/display SP=1.000000 CL=mpeg2/4/h264
[vf] [autorotate] (disabled)
[vf] [convert] 1920x800 vaapi[p010] bt.709/bt.709/bt.1886/limited/display SP=1.000000 CL=mpeg2/4/h264
[vf] [convert] (disabled)
[vf] [out] 1920x800 vaapi[p010] bt.709/bt.709/bt.1886/limited/display SP=1.000000 CL=mpeg2/4/h264
[af] [in] 48000Hz 5.1 6ch floatp
[af] [userspeed] 48000Hz 5.1 6ch floatp
[af] [userspeed] (disabled)
[af] [convert] 48000Hz 5.1 6ch floatp
[ao] Trying audio driver 'pipewire'
[ao/pipewire] requested format: 48000 Hz, 5.1 channels, floatp
[ao/pipewire] Headers version: 0.3.70
[ao/pipewire] Library version: 0.3.72
[ao/pipewire] Core user: arnuld
[ao/pipewire] Core host: arch64
[ao/pipewire] Core version: 0.3.71
[ao/pipewire] Core name: pipewire-0
[ao/pipewire] device buffer: 960 samples.
[ao/pipewire] using soft-buffer of 9600 samples.
[cplayer] AO: [pipewire] 48000Hz 5.1 6ch floatp
[cplayer] AO: Description: PipeWire audio output
[af] [convert] (disabled)
[af] [out] 48000Hz 5.1 6ch floatp
[cplayer] VO: [gpu] 1920x800 vaapi[p010]
[cplayer] VO: Description: Shader-based GPU Renderer
[vo/gpu] reconfig to 1920x800 vaapi[p010] 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: 1920x800
[vo/gpu] Window size: 1920x800 (Borders: l=0 t=0 r=0 b=0)
[vo/gpu] Video source: 1920x800 (1:1)
[vo/gpu] Video display: (0, 0) 1920x800 -> (0, 0) 1920x800
[vo/gpu] Video scale: 1.000000/1.000000
[vo/gpu] OSD borders: l=0 t=0 r=0 b=0
[vo/gpu] Video borders: l=0 t=0 r=0 b=0
[vo/gpu] Reported display depth: 8
[vo/gpu] Testing FBO format rgba16f
[vo/gpu] Using FBO format rgba16f.
[vo/gpu] No advanced processing required. Enabling dumb mode.
[lavf] queuing seek to 0.000000
[lavf] execute seek (to 0.000000 flags 0)
[lavf] seek done
[lavf] EOF reached.
[cplayer] first video frame after restart shown
[cplayer] audio ready
[cplayer] delaying audio start 0.020000 vs. 0.000000, diff=0.020000
[cplayer] playback restart complete @ 0.000000, audio=ready, video=playing
[statusline] AV: 00:00:00 / 01:00:04 (0%) A-V: 0.000
[cplayer] starting audio playback
[cplayer] Set property: shared-script-properties -> 1
[cplayer] Set property: shared-script-properties -> 1
[vo/gpu/x11] Disabling screensaver.
[statusline] AV: 00:00:01 / 01:00:04 (0%) A-V: 0.000
[sub/ass] fontselect: (sans-serif, 400, 0) -> /usr/share/fonts/noto/NotoSans-Regular.ttf, 0, NotoSans-Regular
[sub/ass] fontselect: (sans-serif, 400, 100) -> /usr/share/fonts/noto/NotoSans-Italic.ttf, 0, NotoSans-Italic
[vo/gpu] Reallocating OSD texture to 512x512.
[statusline] AV: 00:00:03 / 01:00:04 (0%) A-V: 0.000
[vo/gpu] Reallocating OSD texture to 1024x128.
[statusline] AV: 00:00:14 / 01:00:04 (0%) A-V: 0.000
[vo/gpu] Reallocating OSD texture to 1024x256.
[statusline] AV: 00:00:16 / 01:00:04 (0%) A-V: 0.000
[cplayer] Set property: shared-script-properties -> 1
[statusline] AV: 00:00:16 / 01:00:04 (0%) A-V: 0.000
[osd/libass] fontselect: (sans-serif, 400, 0) -> /usr/share/fonts/noto/NotoSans-Regular.ttf, 0, NotoSans-Regular
[osd/libass] fontselect: (mpv-osd-symbols, 400, 0) -> mpv-osd-symbols-Regular, 0, mpv-osd-symbols-Regular
[vo/gpu] Reallocating OSD texture to 2048x256.
[statusline] AV: 00:00:17 / 01:00:04 (0%) A-V: 0.000
[cplayer] Set property: shared-script-properties -> 1
[statusline] AV: 00:01:25 / 01:00:04 (2%) A-V: 0.000
[sub/ass] Glyph 0x266A not found, selecting one more font for (sans-serif, 400, 100)
[sub/ass] fontselect: (sans-serif, 400, 100) -> /usr/share/fonts/TTF/DejaVuSans-Oblique.ttf, 0, DejaVuSans-Oblique
[statusline] AV: 00:02:01 / 01:00:04 (3%) A-V: 0.000
[cplayer] EOF code: 5
[cplayer] finished playback, success (reason 3)
[cplayer]
[cplayer] Exiting... (Quit)
[cplayer] Set property: shared-script-properties -> 1
[vo/gpu/x11] Enabling screensaver.
Offline
Does it also happen w/o (any!) subtitles?
Offline