You are not logged in.

#1 2019-06-10 06:16:53

unInstance
Member
Registered: 2018-03-08
Posts: 17

Audio/Video desynchronisation

CPU: Intel Celeron N4100
Display chip: Intel HD Graphics 500

When I start playing video via mpv/vlc, a video is laggy. In mpv I see

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).

I don't know what exactly info you need so ask me to

Offline

#2 2019-06-10 08:22:12

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 77,432

Re: Audio/Video desynchronisation

Full output of

mpv -v someporn.mp4

Offline

#3 2019-06-10 10:20:40

unInstance
Member
Registered: 2018-03-08
Posts: 17

Re: Audio/Video desynchronisation

$ mpv -v Videos/VID_20190610_131047.mp4
[cplayer] Command line options: '-v' 'Videos/VID_20190610_131047.mp4'
[cplayer] mpv 0.29.1 Copyright © 2000-2018 mpv/MPlayer/mplayer2 projects
[cplayer]  built on Fri Apr 19 20:49:51 UTC 2019
[cplayer] ffmpeg library versions:
[cplayer]    libavutil       56.22.100
[cplayer]    libavcodec      58.35.100
[cplayer]    libavformat     58.20.100
[cplayer]    libswscale      5.3.100
[cplayer]    libavfilter     7.40.101
[cplayer]    libswresample   3.3.100
[cplayer] ffmpeg version: n4.1.3
[cplayer] 
[cplayer] Configuration: ./waf configure --prefix=/usr --confdir=/etc/mpv --enable-cdda --enable-dvb --enable-dvdnav --enable-libarchive --enable-libmpv-shared --enable-libsmbclient --enable-tv --enable-zsh-comp
[cplayer] List of enabled features: 52arch alsa asm atomics audio-input build-date caca cdda cplayer cplugins cuda-hwaccel debug-build drm drmprime dvbin dvdnav dvdread-common egl-drm egl-helpers egl-x11 fchmod ffmpeg ffnvcodec gbm gbm.h gl gl-wayland gl-x11 glibc-thread-name glob glob-posix gnuc gpl iconv jack jpeg lcms2 libaf libarchive libass libass-osd libav-any libavcodec libavdevice libbluray libdl libm libmpv-shared librt libsmbclient libv4l2 linux-fstatfs lua optimize oss-audio plain-gl posix posix-or-mingw posix-spawn posix-spawn-native pthreads pulse rubberband shaderc shaderc-shared stdatomic tv tv-v4l2 uchardet vaapi vaapi-drm vaapi-egl vaapi-glx vaapi-wayland vaapi-x-egl vaapi-x11 vdpau vdpau-gl-x11 videodev vt.h vulkan wayland wayland-protocols x11 xv zlib zsh-comp
[cplayer] Reading config file /etc/mpv/encoding-profiles.conf
[cplayer] Waiting for scripts...
[ytdl_hook] script-opts/ytdl_hook.conf not found. 
[ytdl_hook] lua-settings/ytdl_hook.conf not found. 
[stats] script-opts/stats.conf not found. 
[stats] lua-settings/stats.conf not found. 
[osc] script-opts/osc.conf not found. 
[osc] lua-settings/osc.conf not found. 
[cplayer] Done loading scripts.
[cplayer] Playing: Videos/VID_20190610_131047.mp4
[cplayer] Running hook: ytdl_hook/on_load
[ytdl_hook] ytdl:// hook 
[ytdl_hook] not a ytdl:// url 
[ifo] Opening Videos/VID_20190610_131047.mp4
[ifo_dvdnav] Opening Videos/VID_20190610_131047.mp4
[osd/libass] Shaper: FriBidi 0.19.7 (SIMPLE) HarfBuzz-ng 2.5.1 (COMPLEX)
[osd/libass] Setting up fonts...
[bdmv/bluray] Opening Videos/VID_20190610_131047.mp4
[file] Opening Videos/VID_20190610_131047.mp4
[demux] Trying demuxers for level=normal.
[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: Videos/VID_20190610_131047.mp4
[osd/libass] Using font provider fontconfig
[osd/libass] Done.
[find_files] Loading external files in Videos/
[cplayer] Running hook: ytdl_hook/on_preloaded
[lavf] select track 0
[lavf] select track 1
[cplayer]  (+) Video --vid=1 (*) (h264 1280x720 30.020fps)
[cplayer]  (+) Audio --aid=1 --alang=eng (*) (aac 2ch 48000Hz)
[vo/gpu] Probing for best GPU context.
[vo/gpu/opengl] Initializing GPU context 'x11probe'
[vo/gpu/x11] X11 opening display: :0
[vo/gpu/x11] X11 running at 1920x1080 (":0" => local display)
[vo/gpu/x11] Detected wm supports NetWM.
[vo/gpu/x11] Detected wm supports FULLSCREEN state.
[vo/gpu/x11] Display 0 (eDP1): [0, 0, 1920, 1080] @ 59.983766 FPS
[vo/gpu/x11] Current display FPS: 59.983766
[vo/gpu/opengl] GLX chose FB config with ID 0x9a
[vo/gpu/opengl] GLX chose visual with ID 0x111
[vo/gpu/opengl] Creating OpenGL 4.4 context...
[vo/gpu] GL_VERSION='4.5 (Core Profile) Mesa 19.0.6'
[vo/gpu] Detected desktop OpenGL 4.5.
[vo/gpu] GL_VENDOR='Intel Open Source Technology Center'
[vo/gpu] GL_RENDERER='Mesa DRI Intel(R) UHD Graphics 600 (Geminilake 2x6) '
[vo/gpu] GL_SHADING_LANGUAGE_VERSION='4.50'
[vo/gpu] Loaded extension GLX_SGI_swap_control.
[vo/gpu] Loaded extension GLX_MESA_swap_control.
[vo/gpu] Loaded extension GLX_SGI_video_sync.
[vo/gpu/opengl] No vdpau support found - probing more things.
[vo/gpu/x11] uninit ...
[vo/gpu/opengl] Initializing GPU context 'x11egl'
[vo/gpu/x11] X11 opening display: :0
[vo/gpu/x11] X11 running at 1920x1080 (":0" => local display)
[vo/gpu/x11] Detected wm supports NetWM.
[vo/gpu/x11] Detected wm supports FULLSCREEN state.
[vo/gpu/x11] Display 0 (eDP1): [0, 0, 1920, 1080] @ 59.983766 FPS
[vo/gpu/x11] Current display FPS: 59.983766
[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] chose visual 0x20
[vo/gpu/opengl] GL_VERSION='4.5 (Core Profile) Mesa 19.0.6'
[vo/gpu/opengl] Detected desktop OpenGL 4.5.
[vo/gpu/opengl] GL_VENDOR='Intel Open Source Technology Center'
[vo/gpu/opengl] GL_RENDERER='Mesa DRI Intel(R) UHD Graphics 600 (Geminilake 2x6) '
[vo/gpu/opengl] GL_SHADING_LANGUAGE_VERSION='4.50'
[vo/gpu] Testing FBO format rgba16f
[vo/gpu] Using FBO format rgba16f.
[vo/gpu] No advanced processing required. Enabling dumb mode.
[vo/gpu] Assuming 59.983766 FPS for display sync.
[vd] Container reported FPS: 30.020277
[vd] Codec list:
[vd]     h264 - H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10
[vd]     h264_v4l2m2m (h264) - V4L2 mem2mem H.264 decoder wrapper
[vd]     h264_cuvid (h264) - Nvidia CUVID H264 decoder
[vd] Opening decoder h264
[vd] No hardware decoding requested.
[vd] Using software decoding.
[vd] Detected 4 logical cores.
[vd] Requesting 5 threads for decoding.
[vd] Selected codec: h264 (H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10)
[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)
[cplayer] Starting playback...
[af] [in] 48000Hz stereo 2ch floatp
[af] [userspeed] 48000Hz stereo 2ch floatp
[af] [userspeed] (disabled)
[af] [convert] 48000Hz stereo 2ch floatp
[ao] Trying audio driver 'pulse'
[ao/pulse] requested format: 48000 Hz, stereo channels, floatp
[ao/pulse] Library version: 12.2.0
[ao/pulse] Proto: 32
[ao/pulse] Server proto: 4294967295
[ao/pulse] Channel layouts:
[ao/pulse]  - #fl
[ao/pulse]  - #fr
[ao/pulse]  - #fc
[ao/pulse]  - #lfe
[ao/pulse]  - #bl
[ao/pulse]  - #br
[ao/pulse]  - #flc
[ao/pulse]  - #frc
[ao/pulse]  - #bc
[ao/pulse]  - #sl
[ao/pulse]  - #sr
[ao/pulse]  - #tc
[ao/pulse]  - #tfl
[ao/pulse]  - #tfc
[ao/pulse]  - #tfr
[ao/pulse]  - #tbl
[ao/pulse]  - #tbc
[ao/pulse]  - #tbr
[ao/pulse] result: stereo
[ao/pulse] device buffer: 4800 samples.
[ao/pulse] using soft-buffer of 9600 samples.
[cplayer] AO: [pulse] 48000Hz stereo 2ch float
[cplayer] AO: Description: PulseAudio audio output
[autoconvert] inserting resampler
[swresample] format change, reinitializing resampler
[swresample] 48000Hz stereo floatp -> 48000Hz stereo float
[af] [out] 48000Hz stereo 2ch float
[vd] Decoder format: 1280x720 [0:1] yuv420p bt.601/bt.601-525/bt.1886/full/auto CL=mpeg2/4/h264 (auto 0.000000/0.000000/0.000000)
[vd] Using container aspect ratio.
[vf] [in] 1280x720 yuv420p bt.601/bt.601-525/bt.1886/full/display SP=1.000000 CL=mpeg2/4/h264 rot=270
[vf] [userdeint] 1280x720 yuv420p bt.601/bt.601-525/bt.1886/full/display SP=1.000000 CL=mpeg2/4/h264 rot=270
[vf] [userdeint] (disabled)
[vf] [autorotate] 1280x720 yuv420p bt.601/bt.601-525/bt.1886/full/display SP=1.000000 CL=mpeg2/4/h264 rot=270
[vf] [autorotate] (disabled)
[vf] [convert] 1280x720 yuv420p bt.601/bt.601-525/bt.1886/full/display SP=1.000000 CL=mpeg2/4/h264 rot=270
[vf] [convert] (disabled)
[vf] [out] 1280x720 yuv420p bt.601/bt.601-525/bt.1886/full/display SP=1.000000 CL=mpeg2/4/h264 rot=270
[cplayer] VO: [gpu] 1280x720 yuv420p
[cplayer] VO: Description: Shader-based GPU Renderer
[vo/gpu] reconfig to 1280x720 yuv420p bt.601/bt.601-525/bt.1886/full/display SP=1.000000 CL=mpeg2/4/h264 rot=270
[vo/gpu/x11] not waiting for MapNotify
[vo/gpu] Resize: 950x520
[vo/gpu] Window size: 950x520
[vo/gpu] Video source: 1280x720 (1:1)
[vo/gpu] Video display: (0, 0) 720x1280 -> (329, 0) 292x520
[vo/gpu] Video scale: 0.405556/0.406250
[vo/gpu] OSD borders: l=329 t=0 r=329 b=0
[vo/gpu] Video borders: l=329 t=0 r=329 b=0
[vo/gpu] Reported display depth: 8
[vo/gpu] Texture for plane 0: 1280x720
[vo/gpu] Texture for plane 1: 640x360
[vo/gpu] Texture for plane 2: 640x360
[vo/gpu] Testing FBO format rgba16f
[vo/gpu] Using FBO format rgba16f.
[vo/gpu] No advanced processing required. Enabling dumb mode.
[vo/gpu] DR enabled: yes
[osd/libass] fontselect: (sans-serif, 400, 0) -> /usr/share/fonts/noto/NotoSansArmenian-Medium.ttf, 0, NotoSansArmenian-Medium
[cplayer] first video frame after restart shown
[cplayer] starting audio playback
[cplayer] playback restart complete
[vo/gpu/x11] Disabling screensaver.
[statusline] AV: 00:00:01 / 00:00:08 (16%) A-V:  0.436 Dropped: 30
[osd/libass] Glyph 0x30 not found, selecting one more font for (sans-serif, 400, 0)
[osd/libass] fontselect: (sans-serif, 400, 0) -> /usr/share/fonts/adobe-source-code-pro/SourceCodePro-Medium.otf, 0, SourceCodePro-Medium
[osd/libass] fontselect: (mpv-osd-symbols, 400, 0) -> mpv-osd-symbols-Regular, 0, mpv-osd-symbols-Regular
[vo/gpu] Reallocating OSD texture to 1024x128.
[statusline] AV: 00:00:01 / 00:00:08 (19%) A-V:  0.489 Dropped: 34
[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] 
[statusline] AV: 00:00:06 / 00:00:08 (68%) A-V:  1.454 Dropped: 122
[lavf] EOF reached.
[statusline] AV: 00:00:06 / 00:00:08 (76%) A-V:  1.682 Dropped: 137
[af] filter input EOF
[af] filter output EOF
[statusline] AV: 00:00:06 / 00:00:08 (77%) A-V:  1.687 Dropped: 138
[cplayer] audio EOF reached
[statusline] AV: 00:00:08 / 00:00:08 (98%) A-V:  0.000 Dropped: 170
[vf] filter input EOF
[vf] filter output EOF
[statusline] AV: 00:00:08 / 00:00:08 (99%) A-V:  0.000 Dropped: 170
[cplayer] using demuxer frame duration for last frame
[cplayer] video EOF reached
[cplayer] EOF code: 1  
[ad] Uninit decoder.
[vo/gpu/x11] Enabling screensaver.
[vd] Uninit decoder.
[cplayer] finished playback, success (reason 0)
[cplayer] 
[cplayer] 
[cplayer] Exiting... (End of file)
[ytdl_hook] Exiting...
[stats] Exiting...
[osc] Exiting...
[ao/pulse] draining...
[vo/gpu/x11] uninit ...
-----------------------

Offline

#4 2019-06-10 11:20:32

unInstance
Member
Registered: 2018-03-08
Posts: 17

Re: Audio/Video desynchronisation

seth wrote:

Full output of

mpv -v someporn.mp4

Here is one form a fine playing video

$ mpv -v Downloads/720.mp4
[cplayer] Command line options: '-v' 'Downloads/720.mp4'
[cplayer] mpv 0.29.1 Copyright © 2000-2018 mpv/MPlayer/mplayer2 projects
[cplayer]  built on Fri Apr 19 20:49:51 UTC 2019
[cplayer] ffmpeg library versions:
[cplayer]    libavutil       56.22.100
[cplayer]    libavcodec      58.35.100
[cplayer]    libavformat     58.20.100
[cplayer]    libswscale      5.3.100
[cplayer]    libavfilter     7.40.101
[cplayer]    libswresample   3.3.100
[cplayer] ffmpeg version: n4.1.3
[cplayer] 
[cplayer] Configuration: ./waf configure --prefix=/usr --confdir=/etc/mpv --enable-cdda --enable-dvb --enable-dvdnav --enable-libarchive --enable-libmpv-shared --enable-libsmbclient --enable-tv --enable-zsh-comp
[cplayer] List of enabled features: 52arch alsa asm atomics audio-input build-date caca cdda cplayer cplugins cuda-hwaccel debug-build drm drmprime dvbin dvdnav dvdread-common egl-drm egl-helpers egl-x11 fchmod ffmpeg ffnvcodec gbm gbm.h gl gl-wayland gl-x11 glibc-thread-name glob glob-posix gnuc gpl iconv jack jpeg lcms2 libaf libarchive libass libass-osd libav-any libavcodec libavdevice libbluray libdl libm libmpv-shared librt libsmbclient libv4l2 linux-fstatfs lua optimize oss-audio plain-gl posix posix-or-mingw posix-spawn posix-spawn-native pthreads pulse rubberband shaderc shaderc-shared stdatomic tv tv-v4l2 uchardet vaapi vaapi-drm vaapi-egl vaapi-glx vaapi-wayland vaapi-x-egl vaapi-x11 vdpau vdpau-gl-x11 videodev vt.h vulkan wayland wayland-protocols x11 xv zlib zsh-comp
[cplayer] Reading config file /etc/mpv/encoding-profiles.conf
[cplayer] Waiting for scripts...
[ytdl_hook] script-opts/ytdl_hook.conf not found. 
[ytdl_hook] lua-settings/ytdl_hook.conf not found. 
[stats] script-opts/stats.conf not found. 
[stats] lua-settings/stats.conf not found. 
[osc] script-opts/osc.conf not found. 
[osc] lua-settings/osc.conf not found. 
[cplayer] Done loading scripts.
[cplayer] Playing: Downloads/720.mp4
[cplayer] Running hook: ytdl_hook/on_load
[ytdl_hook] ytdl:// hook 
[ytdl_hook] not a ytdl:// url 
[ifo] Opening Downloads/720.mp4
[ifo_dvdnav] Opening Downloads/720.mp4
[osd/libass] Shaper: FriBidi 0.19.7 (SIMPLE) HarfBuzz-ng 2.5.1 (COMPLEX)
[osd/libass] Setting up fonts...
[bdmv/bluray] Opening Downloads/720.mp4
[file] Opening Downloads/720.mp4
[demux] Trying demuxers for level=normal.
[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: Downloads/720.mp4
[find_files] Loading external files in Downloads/
[cplayer] Running hook: ytdl_hook/on_preloaded
[lavf] select track 0
[lavf] select track 1
[cplayer]  (+) Video --vid=1 (*) (h264 1280x534 25.000fps)
[cplayer]  (+) Audio --aid=1 --alang=rus (*) (aac 2ch 48000Hz)
[display-tags] File tags:
[display-tags]  Title: Призрачный гонщик / Ghost Rider (2007)
[vo/gpu] Probing for best GPU context.
[vo/gpu/opengl] Initializing GPU context 'x11probe'
[vo/gpu/x11] X11 opening display: :0
[vo/gpu/x11] X11 running at 1920x1080 (":0" => local display)
[vo/gpu/x11] Detected wm supports NetWM.
[vo/gpu/x11] Detected wm supports FULLSCREEN state.
[vo/gpu/x11] Display 0 (eDP1): [0, 0, 1920, 1080] @ 59.983766 FPS
[vo/gpu/x11] Current display FPS: 59.983766
[vo/gpu/opengl] GLX chose FB config with ID 0x9a
[vo/gpu/opengl] GLX chose visual with ID 0x111
[vo/gpu/opengl] Creating OpenGL 4.4 context...
[vo/gpu] GL_VERSION='4.5 (Core Profile) Mesa 19.0.6'
[vo/gpu] Detected desktop OpenGL 4.5.
[vo/gpu] GL_VENDOR='Intel Open Source Technology Center'
[vo/gpu] GL_RENDERER='Mesa DRI Intel(R) UHD Graphics 600 (Geminilake 2x6) '
[vo/gpu] GL_SHADING_LANGUAGE_VERSION='4.50'
[vo/gpu] Loaded extension GLX_SGI_swap_control.
[vo/gpu] Loaded extension GLX_MESA_swap_control.
[vo/gpu] Loaded extension GLX_SGI_video_sync.
[vo/gpu/opengl] No vdpau support found - probing more things.
[vo/gpu/x11] uninit ...
[vo/gpu/opengl] Initializing GPU context 'x11egl'
[vo/gpu/x11] X11 opening display: :0
[vo/gpu/x11] X11 running at 1920x1080 (":0" => local display)
[vo/gpu/x11] Detected wm supports NetWM.
[vo/gpu/x11] Detected wm supports FULLSCREEN state.
[vo/gpu/x11] Display 0 (eDP1): [0, 0, 1920, 1080] @ 59.983766 FPS
[vo/gpu/x11] Current display FPS: 59.983766
[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] chose visual 0x20
[vo/gpu/opengl] GL_VERSION='4.5 (Core Profile) Mesa 19.0.6'
[vo/gpu/opengl] Detected desktop OpenGL 4.5.
[vo/gpu/opengl] GL_VENDOR='Intel Open Source Technology Center'
[vo/gpu/opengl] GL_RENDERER='Mesa DRI Intel(R) UHD Graphics 600 (Geminilake 2x6) '
[vo/gpu/opengl] GL_SHADING_LANGUAGE_VERSION='4.50'
[vo/gpu] Testing FBO format rgba16f
[vo/gpu] Using FBO format rgba16f.
[vo/gpu] No advanced processing required. Enabling dumb mode.
[vo/gpu] Assuming 59.983766 FPS for display sync.
[vd] Container reported FPS: 25.000000
[vd] Codec list:
[vd]     h264 - H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10
[vd]     h264_v4l2m2m (h264) - V4L2 mem2mem H.264 decoder wrapper
[vd]     h264_cuvid (h264) - Nvidia CUVID H264 decoder
[vd] Opening decoder h264
[vd] No hardware decoding requested.
[vd] Using software decoding.
[vd] Detected 4 logical cores.
[vd] Requesting 5 threads for decoding.
[vd] Selected codec: h264 (H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10)
[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)
[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] Decoder format: 1280x534 [801:800] yuv420p bt.709/bt.709/bt.1886/limited/auto CL=mpeg2/4/h264 (auto 0.000000/0.000000/0.000000)
[vd] Using container aspect ratio.
[vf] [in] 1280x534 [801:800] yuv420p bt.709/bt.709/bt.1886/limited/display SP=1.000000 CL=mpeg2/4/h264
[vf] [userdeint] 1280x534 [801:800] yuv420p bt.709/bt.709/bt.1886/limited/display SP=1.000000 CL=mpeg2/4/h264
[vf] [userdeint] (disabled)
[vf] [autorotate] 1280x534 [801:800] yuv420p bt.709/bt.709/bt.1886/limited/display SP=1.000000 CL=mpeg2/4/h264
[vf] [autorotate] (disabled)
[vf] [convert] 1280x534 [801:800] yuv420p bt.709/bt.709/bt.1886/limited/display SP=1.000000 CL=mpeg2/4/h264
[vf] [convert] (disabled)
[vf] [out] 1280x534 [801:800] yuv420p bt.709/bt.709/bt.1886/limited/display SP=1.000000 CL=mpeg2/4/h264
[ao] Trying audio driver 'pulse'
[ao/pulse] requested format: 48000 Hz, stereo channels, floatp
[ao/pulse] Library version: 12.2.0
[ao/pulse] Proto: 32
[ao/pulse] Server proto: 4294967295
[ao/pulse] Channel layouts:
[ao/pulse]  - #fl
[ao/pulse]  - #fr
[ao/pulse]  - #fc
[ao/pulse]  - #lfe
[ao/pulse]  - #bl
[ao/pulse]  - #br
[ao/pulse]  - #flc
[ao/pulse]  - #frc
[ao/pulse]  - #bc
[ao/pulse]  - #sl
[ao/pulse]  - #sr
[ao/pulse]  - #tc
[ao/pulse]  - #tfl
[ao/pulse]  - #tfc
[ao/pulse]  - #tfr
[ao/pulse]  - #tbl
[ao/pulse]  - #tbc
[ao/pulse]  - #tbr
[ao/pulse] result: stereo
[ao/pulse] device buffer: 4800 samples.
[ao/pulse] using soft-buffer of 9600 samples.
[cplayer] AO: [pulse] 48000Hz stereo 2ch float
[cplayer] AO: Description: PulseAudio audio output
[cplayer] VO: [gpu] 1280x534 => 1281x534 yuv420p
[cplayer] VO: Description: Shader-based GPU Renderer
[vo/gpu] reconfig to 1280x534 [801:800] 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: 630x1050
[vo/gpu] Window size: 630x1050
[vo/gpu] Video source: 1280x534 (801:800)
[vo/gpu] Video display: (0, 0) 1280x534 -> (0, 394) 630x262
[vo/gpu] Video scale: 0.492188/0.490637
[vo/gpu] OSD borders: l=0 t=394 r=0 b=394
[vo/gpu] Video borders: l=0 t=394 r=0 b=394
[vo/gpu] Reported display depth: 8
[vo/gpu] Texture for plane 0: 1280x534
[vo/gpu] Texture for plane 1: 640x267
[vo/gpu] Texture for plane 2: 640x267
[vo/gpu] Testing FBO format rgba16f
[vo/gpu] Using FBO format rgba16f.
[vo/gpu] No advanced processing required. Enabling dumb mode.
[vo/gpu] DR enabled: yes
[osd/libass] fontselect: (sans-serif, 400, 0) -> /usr/share/fonts/noto/NotoSansArmenian-Medium.ttf, 0, NotoSansArmenian-Medium
[cplayer] first video frame after restart shown
[autoconvert] inserting resampler
[swresample] format change, reinitializing resampler
[swresample] 48000Hz stereo floatp -> 48000Hz stereo float
[af] [out] 48000Hz stereo 2ch float
[cplayer] starting audio playback
[cplayer] playback restart complete
[vo/gpu/x11] Disabling screensaver.
[statusline] AV: 00:00:00 / 02:03:25 (0%) A-V:  0.00[statusline] AV: 00:00:01 / 02:03:25 (0%) A-V:  0.00[statusline] AV: 00:00:02 / 02:03:25 (0%) A-V:  0.00[statusline] AV: 00:00:03 / 02:03:25 (0%) A-V:  0.00[statusline] AV: 00:00:04 / 02:03:25 (0%) A-V:  0.00[statusline] AV: 00:00:05 / 02:03:25 (0%) A-V:  0.00[statusline] AV: 00:00:06 / 02:03:25 (0%) A-V:  0.00[statusline] AV: 00:00:07 / 02:03:25 (0%) A-V:  0.00[statusline] AV: 00:00:08 / 02:03:25 (0%) A-V:  0.00[statusline] AV: 00:00:09 / 02:03:25 (0%) A-V:  0.00[statusline] AV: 00:00:10 / 02:03:25 (0%) A-V:  0.00[statusline] AV: 00:00:11 / 02:03:25 (0%) A-V:  0.00[statusline] AV: 00:00:12 / 02:03:25 (0%) A-V:  0.00[statusline] AV: 00:00:13 / 02:03:25 (0%) A-V:  0.00[statusline] AV: 00:00:14 / 02:03:25 (0%) A-V:  0.00[statusline] AV: 00:00:15 / 02:03:25 (0%) A-V:  0.00[statusline] AV: 00:00:16 / 02:03:25 (0%) A-V:  0.00[statusline] AV: 00:00:17 / 02:03:25 (0%) A-V:  0.000
[osd/libass] fontselect: (mpv-osd-symbols, 400, 0) -> mpv-osd-symbols-Regular, 0, mpv-osd-symbols-Regular
[osd/libass] Glyph 0x2013 not found, selecting one more font for (sans-serif, 400, 0)
[osd/libass] fontselect: (sans-serif, 400, 0) -> /usr/share/fonts/adobe-source-code-pro/SourceCodePro-Medium.otf, 0, SourceCodePro-Medium
[vo/gpu] Reallocating OSD texture to 1024x128.
[statusline] AV: 00:00:17 / 02:03:25 (0%) A-V:  0.00[statusline] AV: 00:00:18 / 02:03:25 (0%) A-V:  0.00[statusline] AV: 00:00:19 / 02:03:25 (0%) A-V:  0.00[statusline] AV: 00:00:20 / 02:03:25 (0%) A-V:  0.00[statusline] AV: 00:00:21 / 02:03:25 (0%) A-V:  0.00[statusline] AV: 00:00:22 / 02:03:25 (0%) A-V:  0.00[statusline] AV: 00:00:23 / 02:03:25 (0%) A-V:  0.00[statusline] AV: 00:00:24 / 02:03:25 (0%) A-V:  0.00[statusline] AV: 00:00:25 / 02:03:25 (0%) A-V:  0.00[statusline] AV: 00:00:26 / 02:03:25 (0%) A-V:  0.00[statusline] AV: 00:00:27 / 02:03:25 (0%) A-V:  0.000
[cplayer] EOF code: 5  
[vo/gpu/x11] Enabling screensaver.
[ad] Uninit decoder.
[vd] Uninit decoder.
[cplayer] finished playback, success (reason 3)
[cplayer] 
[cplayer] 
[cplayer] Exiting... (Quit)
[stats] Exiting...
[ytdl_hook] Exiting...
[osc] Exiting...
[ao/pulse] draining...
[vo/gpu/x11] uninit ...

Offline

#5 2019-06-10 12:07:02

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 77,432

Re: Audio/Video desynchronisation

The "bad" one is slightly bigger and has a 20% higher fps and you're not using HW decoding and the CPU isn't that great (though the video specs aren't excessive either)
If at least one of the cores runs at 100%, see https://wiki.archlinux.org/index.php/Ha … tion#Intel

Otherwise it seems the "bad" one is from a (smartphone?) camera, the "good" one some download. If that's a critical pattern (you've *only* issues w/ those cam videos, maybe even all of them) this might be an issue w/ the cam encoding and a remux eg. w/ mkvmerge) might "fix" that.

Offline

#6 2019-06-10 12:15:11

unInstance
Member
Registered: 2018-03-08
Posts: 17

Re: Audio/Video desynchronisation

Some videos from YouTube play fine and any other video is playing laggy.
https://www.youtube.com/watch?v=IrrUwuGoydY - this downloaded via savefrom.net is fine
and this same video downloaded via youtube-dl with archwiki config is bad

Offline

#7 2019-06-10 13:04:16

unInstance
Member
Registered: 2018-03-08
Posts: 17

Re: Audio/Video desynchronisation

Looks like my hardware is too weak because lower resolutions are ok.

Offline

#8 2019-06-10 13:38:55

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 77,432

Re: Audio/Video desynchronisation

You still could go for HW accelerated playback, see the link in comment #5

Offline

#9 2019-06-10 15:16:52

unInstance
Member
Registered: 2018-03-08
Posts: 17

Re: Audio/Video desynchronisation

I configured hw acceleration and I see output of vainfo. Videos in vlc are fine, in mpv are laggy so it looks like mpv doesn't see/use hw acceleration.

Offline

#10 2019-06-10 16:48:21

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 77,432

Re: Audio/Video desynchronisation

"--hwdec=vaapi"

Offline

#11 2021-07-16 21:00:10

TJM
Member
Registered: 2016-09-18
Posts: 118

Re: Audio/Video desynchronisation

I've encountered the same problem:

[tjm@ArchPad mpv]$ mpv -v --cache=yes --cache-on-disk=no --cache-pause=yes --vd-queue-enable=yes --ad-queue-enable=yes --ad-queue-max-bytes=128MiB --vd-queue-max-bytes=512MiB ./somevideo.webm 
[cplayer] Command line options: '-v' '--cache=yes' '--cache-on-disk=no' '--cache-pause=yes' '--vd-queue-enable=yes' '--ad-queue-enable=yes' '--ad-queue-max-bytes=128MiB' '--vd-queue-max-bytes=512MiB' './somevideo.webm'
[cplayer] mpv 0.33.1-dirty Copyright © 2000-2020 mpv/MPlayer/mplayer2 projects
[cplayer]  built on UNKNOWN
[cplayer] FFmpeg library versions:
[cplayer]    libavutil       56.70.100
[cplayer]    libavcodec      58.134.100
[cplayer]    libavformat     58.76.100
[cplayer]    libswscale      5.9.100
[cplayer]    libavfilter     7.110.100
[cplayer]    libswresample   3.9.100
[cplayer] FFmpeg version: n4.4
[cplayer] 
[cplayer] Configuration: /usr/bin/waf configure --prefix=/usr --confdir=/etc/mpv --enable-cdda --enable-dvb --enable-dvdnav --enable-libarchive --enable-libmpv-shared --disable-build-date
[cplayer] List of enabled features: 52arch alsa asm caca cdda cplayer cplugins cuda-hwaccel cuda-interop debug-build drm dvbin dvdnav egl egl-drm egl-helpers egl-x11 ffmpeg ffnvcodec gbm gbm.h gl gl-wayland glibc-thread-name glob glob-posix gpl iconv jack javascript jpeg lcms2 libarchive libass libavdevice libbluray libdl libm libmpv-shared libplacebo librt linux-fstatfs linux-input-event-codes lua memfd_create optimize plain-gl posix posix-or-mingw pthreads pulse rubberband shaderc shaderc-shared stdatomic uchardet vaapi vaapi-drm vaapi-egl vaapi-vulkan vaapi-wayland vaapi-x-egl vaapi-x11 vdpau vt.h vulkan wayland wayland-protocols x11 xv zimg zlib
[cplayer] Reading config file /etc/mpv/encoding-profiles.conf
[cplayer] Applying profile 'default'...
[cplayer] Reading config file /home/tjm/.config/mpv/mpv.conf
[cplayer] Applying profile 'default'...
[cplayer] Setting option 'sub-font-size' = '48' (flags = 4)
[cplayer] Setting option 'sub-font' = 'Noto Sans CJK SC' (flags = 4)
[cplayer] Setting option 'hwdec' = 'vdpau' (flags = 4)
[cplayer] Setting option 'v' = '' (flags = 8)
[cplayer] Setting option 'cache' = 'yes' (flags = 8)
[cplayer] Setting option 'cache-on-disk' = 'no' (flags = 8)
[cplayer] Setting option 'cache-pause' = 'yes' (flags = 8)
[cplayer] Setting option 'vd-queue-enable' = 'yes' (flags = 8)
[cplayer] Setting option 'ad-queue-enable' = 'yes' (flags = 8)
[cplayer] Setting option 'ad-queue-max-bytes' = '128MiB' (flags = 8)
[cplayer] Setting option 'vd-queue-max-bytes' = '512MiB' (flags = 8)
[cplayer] Waiting for scripts...
[osd/libass] libass API version: 0x1501000
[osd/libass] libass source: commit: 0.15.1-0-g5447214643eacef71776350e779adf4b6c07bb3b-dirty
[osd/libass] Shaper: FriBidi 1.0.10 (SIMPLE) HarfBuzz-ng 2.8.2 (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
[osd/libass] libass API version: 0x1501000
[osd/libass] libass source: commit: 0.15.1-0-g5447214643eacef71776350e779adf4b6c07bb3b-dirty
[osd/libass] Shaper: FriBidi 1.0.10 (SIMPLE) HarfBuzz-ng 2.8.2 (COMPLEX)
[osd/libass] Setting up fonts...
[osd/libass] Using font provider fontconfig
[osd/libass] Done.
[cplayer] Done loading scripts.
[cplayer] Running hook: ytdl_hook/on_load
[ytdl_hook] ytdl:// hook 
[ytdl_hook] not a ytdl:// url 
[ifo_dvdnav] Opening ./somevideo.webm
[bdmv/bluray] Opening ./somevideo.webm
[file] Opening ./somevideo.webm
[demux] Trying demuxers for level=normal.
[cplayer] Set property: shared-script-properties -> 1
[mkv] Deferring reading cues.
[mkv] All headers are parsed!
[demux] Detected file format: Matroska
[cplayer] Opening done: ./somevideo.webm
[find_files] Loading external files in ./
[cplayer] Running hook: ytdl_hook/on_preloaded
[mkv] select track 0
[mkv] select track 1
[cplayer]  (+) Video --vid=1 (*) (vp9 3840x2160 60.000fps)
[cplayer]  (+) Audio --aid=1 --alang=eng (*) (opus 2ch 48000Hz)
[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 (eDP-1-1): [0, 0, 1366, 768] @ 60.059067 FPS
[vo/gpu/x11] Current display FPS: 60.059067
[vo/gpu/opengl] EGL_VERSION=1.4
[vo/gpu/opengl] EGL_VENDOR=NVIDIA
[vo/gpu/opengl] EGL_CLIENT_APIS=
[vo/gpu/opengl] Trying to create Desktop OpenGL context.
[vo/gpu/opengl] Choosing visual EGL config 0x40, visual ID 0x2b
[vo/gpu/opengl] GL_VERSION='4.4.0 NVIDIA 390.143'
[vo/gpu/opengl] Detected desktop OpenGL 4.4.
[vo/gpu/opengl] GL_VENDOR='NVIDIA Corporation'
[vo/gpu/opengl] GL_RENDERER='GeForce GT 720M/PCIe/SSE2'
[vo/gpu/opengl] GL_SHADING_LANGUAGE_VERSION='4.40 NVIDIA via Cg compiler'
[vo/gpu] Testing FBO format rgba16f
[vo/gpu] Using FBO format rgba16f.
[vo/gpu] No advanced processing required. Enabling dumb mode.
[vo/gpu] Assuming 60.059067 FPS for display sync.
[vd] Container reported FPS: 60.000002
[vd] Codec list:
[vd]     vp9 - Google VP9
[vd]     vp9_v4l2m2m (vp9) - V4L2 mem2mem VP9 decoder wrapper
[vd]     libvpx-vp9 (vp9) - libvpx VP9
[vd]     vp9_cuvid (vp9) - Nvidia CUVID VP9 decoder
[vd]     vp9_qsv (vp9) - VP9 video (Intel Quick Sync Video acceleration)
[vd] Opening decoder vp9
[vd] Looking at hwdec vp9-vdpau...
[vo/gpu] Loading hwdec driver 'vaapi-egl'
[vo/gpu/vaapi-egl] VAAPI hwdec only works with OpenGL or Vulkan backends.
[vo/gpu] Loading failed.
[vo/gpu] Loading hwdec driver 'cuda-nvdec'
[vo/gpu] Loading hwdec driver 'drmprime-drm'
[vo/gpu/drmprime-drm] Failed to retrieve DRM fd from native display.
[vo/gpu] Loading failed.
[vd] Could not create device.
[vd] No hardware decoding available for this codec.
[vd] Using software decoding.
[vd] Detected 4 logical cores.
[vd] Requesting 5 threads for decoding.
[vd] Selected codec: vp9 (Google VP9)
[vf] User filter list:
[vf]   (empty)
[ad] Codec list:
[ad]     opus - Opus
[ad]     libopus (opus) - libopus Opus
[ad] Opening decoder opus
[ad] Requesting 1 threads for decoding.
[ad] Selected codec: opus (Opus)
[af] User filter list:
[af]   (empty)
[cplayer] Starting playback...
[cplayer] Set property: shared-script-properties -> 1
[af] [in] 48000Hz stereo 2ch floatp
[af] [userspeed] 48000Hz stereo 2ch floatp
[af] [userspeed] (disabled)
[af] [convert] 48000Hz stereo 2ch floatp
[ao] Trying audio driver 'pulse'
[ao/pulse] requested format: 48000 Hz, stereo channels, floatp
[ao/pulse] Library version: 14.2.0
[ao/pulse] Proto: 34
[ao/pulse] Server proto: 4294967295
[ao/pulse] Channel layouts:
[ao/pulse]  - #fl
[ao/pulse]  - #fr
[ao/pulse]  - #fc
[ao/pulse]  - #lfe
[ao/pulse]  - #bl
[ao/pulse]  - #br
[ao/pulse]  - #flc
[ao/pulse]  - #frc
[ao/pulse]  - #bc
[ao/pulse]  - #sl
[ao/pulse]  - #sr
[ao/pulse]  - #tc
[ao/pulse]  - #tfl
[ao/pulse]  - #tfc
[ao/pulse]  - #tfr
[ao/pulse]  - #tbl
[ao/pulse]  - #tbc
[ao/pulse]  - #tbr
[ao/pulse] result: stereo
[ao/pulse] device buffer: 4800 samples.
[ao/pulse] using soft-buffer of 9600 samples.
[cplayer] AO: [pulse] 48000Hz stereo 2ch float
[cplayer] AO: Description: PulseAudio audio output
[autoconvert] inserting resampler
[swresample] format change, reinitializing resampler
[swresample] 48000Hz stereo floatp -> 48000Hz stereo float
[af] [out] 48000Hz stereo 2ch float
[cplayer] Set property: shared-script-properties -> 1
[vd] Using software decoding.
[vd] Decoder format: 3840x2160 [0:1] yuv420p bt.709/auto/auto/limited/auto CL=unknown
[vd] Using container aspect ratio.
[vf] [in] 3840x2160 yuv420p bt.709/bt.709/bt.1886/limited/display SP=1.000000 CL=mpeg2/4/h264
[vf] [userdeint] 3840x2160 yuv420p bt.709/bt.709/bt.1886/limited/display SP=1.000000 CL=mpeg2/4/h264
[vf] [userdeint] (disabled)
[vf] [autorotate] 3840x2160 yuv420p bt.709/bt.709/bt.1886/limited/display SP=1.000000 CL=mpeg2/4/h264
[vf] [autorotate] (disabled)
[vf] [convert] 3840x2160 yuv420p bt.709/bt.709/bt.1886/limited/display SP=1.000000 CL=mpeg2/4/h264
[vf] [convert] (disabled)
[vf] [out] 3840x2160 yuv420p bt.709/bt.709/bt.1886/limited/display SP=1.000000 CL=mpeg2/4/h264
[cplayer] VO: [gpu] 3840x2160 yuv420p
[cplayer] VO: Description: Shader-based GPU Renderer
[vo/gpu] reconfig to 3840x2160 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: 679x729
[vo/gpu] Window size: 679x729 (Borders: l=0 t=0 r=0 b=0)
[vo/gpu] Video source: 3840x2160 (1:1)
[vo/gpu] Video display: (0, 0) 3840x2160 -> (0, 174) 679x381
[vo/gpu] Video scale: 0.176823/0.176389
[vo/gpu] OSD borders: l=0 t=174 r=0 b=174
[vo/gpu] Video borders: l=0 t=174 r=0 b=174
[vo/gpu] Reported display depth: 8
[vo/gpu] Texture for plane 0: 3840x2160
[vo/gpu] Texture for plane 1: 1920x1080
[vo/gpu] Texture for plane 2: 1920x1080
[vo/gpu] Testing FBO format rgba16f
[vo/gpu] Using FBO format rgba16f.
[vo/gpu] No advanced processing required. Enabling dumb mode.
[vo/gpu] DR enabled: yes
[cplayer] first video frame after restart shown
[cplayer] Set property: shared-script-properties -> 1
[cplayer] audio ready
[cplayer] delaying audio start 0.001000 vs. 0.000000, diff=0.001000
[cplayer] playback restart complete @ 0.000000, audio=ready, video=playing
[statusline] AV: 00:00:00 / 00:10:09 (0%) A-V:  0.000
[cplayer] starting audio playback
[ao/pulse] starting AO
[vo/gpu/x11] Disabling screensaver.
[statusline] AV: 00:00:02 / 00:10:09 (0%) A-V:  0.256 Dropped: 117
[cplayer] Set property: fullscreen -> 1
[statusline] AV: 00:00:02 / 00:10:09 (0%) A-V:  0.256 Dropped: 118
[vo/gpu] Resize: 679x729
[vo/gpu] Window size: 679x729 (Borders: l=0 t=0 r=0 b=0)
[vo/gpu] Video source: 3840x2160 (1:1)
[vo/gpu] Video display: (0, 0) 3840x2160 -> (0, 174) 679x381
[vo/gpu] Video scale: 0.176823/0.176389
[vo/gpu] OSD borders: l=0 t=174 r=0 b=174
[vo/gpu] Video borders: l=0 t=174 r=0 b=174
[vo/gpu] Reported display depth: 8
[cplayer] Set property: shared-script-properties -> 1
[statusline] AV: 00:00:02 / 00:10:09 (0%) A-V:  0.282 Dropped: 118
[vo/gpu] Resize: 1366x768
[vo/gpu] Window size: 1366x768 (Borders: l=0 t=0 r=0 b=0)
[vo/gpu] Video source: 3840x2160 (1:1)
[vo/gpu] Video display: (0, 0) 3840x2160 -> (0, 0) 1365x768
[vo/gpu] Video scale: 0.355469/0.355556
[vo/gpu] OSD borders: l=0 t=0 r=1 b=0
[vo/gpu] Video borders: l=0 t=0 r=1 b=0
[vo/gpu] Reported display depth: 8
[statusline] AV: 00:00:02 / 00:10:09 (0%) A-V:  0.304 Dropped: 119
[cplayer] Set property: shared-script-properties -> 1
[statusline] AV: 00:00:03 / 00:10:09 (1%) A-V:  0.402 Dropped: 163
[cplayer] Set property: fullscreen -> 1
[vo/gpu] Resize: 1366x768
[vo/gpu] Window size: 1366x768 (Borders: l=0 t=0 r=0 b=0)
[vo/gpu] Video source: 3840x2160 (1:1)
[vo/gpu] Video display: (0, 0) 3840x2160 -> (0, 0) 1365x768
[vo/gpu] Video scale: 0.355469/0.355556
[vo/gpu] OSD borders: l=0 t=0 r=1 b=0
[vo/gpu] Video borders: l=0 t=0 r=1 b=0
[vo/gpu] Reported display depth: 8
[cplayer] Set property: shared-script-properties -> 1
[vo/gpu] Resize: 679x729
[vo/gpu] Window size: 679x729 (Borders: l=0 t=0 r=0 b=0)
[vo/gpu] Video source: 3840x2160 (1:1)
[vo/gpu] Video display: (0, 0) 3840x2160 -> (0, 174) 679x381
[vo/gpu] Video scale: 0.176823/0.176389
[vo/gpu] OSD borders: l=0 t=174 r=0 b=174
[vo/gpu] Video borders: l=0 t=174 r=0 b=174
[vo/gpu] Reported display depth: 8
[cplayer] Set property: shared-script-properties -> 1
[statusline] AV: 00:00:03 / 00:10:09 (1%) A-V:  0.470 Dropped: 186
[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] 
[statusline] AV: 00:00:04 / 00:10:09 (1%) A-V:  1.191 Dropped: 237
[cplayer] Set property: fullscreen -> 1
[vo/gpu] Resize: 679x729
[vo/gpu] Window size: 679x729 (Borders: l=0 t=0 r=0 b=0)
[vo/gpu] Video source: 3840x2160 (1:1)
[vo/gpu] Video display: (0, 0) 3840x2160 -> (0, 174) 679x381
[vo/gpu] Video scale: 0.176823/0.176389
[vo/gpu] OSD borders: l=0 t=174 r=0 b=174
[vo/gpu] Video borders: l=0 t=174 r=0 b=174
[vo/gpu] Reported display depth: 8
[cplayer] Set property: shared-script-properties -> 1
[vo/gpu] Resize: 1366x768
[vo/gpu] Window size: 1366x768 (Borders: l=0 t=0 r=0 b=0)
[vo/gpu] Video source: 3840x2160 (1:1)
[vo/gpu] Video display: (0, 0) 3840x2160 -> (0, 0) 1365x768
[vo/gpu] Video scale: 0.355469/0.355556
[vo/gpu] OSD borders: l=0 t=0 r=1 b=0
[vo/gpu] Video borders: l=0 t=0 r=1 b=0
[vo/gpu] Reported display depth: 8
[statusline] AV: 00:00:04 / 00:10:09 (1%) A-V:  1.191 Dropped: 238
[cplayer] Set property: shared-script-properties -> 1
[statusline] AV: 00:00:05 / 00:10:09 (1%) A-V:  1.467 Dropped: 253
[cplayer] EOF code: 5  
[vo/gpu/x11] Enabling screensaver.
[cplayer] Forcefully terminating demuxers...
[vo/gpu] Resize: 1366x768
[vo/gpu] Window size: 1366x768 (Borders: l=0 t=0 r=0 b=0)
[vo/gpu] Video source: 3840x2160 (1:1)
[vo/gpu] Video display: (0, 0) 3840x2160 -> (0, 0) 1365x768
[vo/gpu] Video scale: 0.355469/0.355556
[vo/gpu] OSD borders: l=0 t=0 r=1 b=0
[vo/gpu] Video borders: l=0 t=0 r=1 b=0
[cplayer] Set property: fullscreen -> 1
[vo/gpu] Reported display depth: 8
[cplayer] Set property: shared-script-properties -> 1
[vo/gpu] Resize: 679x729
[vo/gpu] Window size: 679x729 (Borders: l=0 t=0 r=0 b=0)
[vo/gpu] Video source: 3840x2160 (1:1)
[vo/gpu] Video display: (0, 0) 3840x2160 -> (0, 174) 679x381
[vo/gpu] Video scale: 0.176823/0.176389
[vo/gpu] OSD borders: l=0 t=174 r=0 b=174
[vo/gpu] Video borders: l=0 t=174 r=0 b=174
[vo/gpu] Reported display depth: 8
[cplayer] Set property: shared-script-properties -> 1
[cplayer] finished playback, success (reason 3)
[cplayer] 
[cplayer] Exiting... (Quit)
[cplayer] Set property: shared-script-properties -> 1
[tjm@ArchPad mpv]$ 

After adding "--hwdec=vaapi":

[tjm@ArchPad mpv]$ mpv -v --hwdec=vaapi --cache=yes --cache-on-disk=no --cache-pause=yes --vd-queue-enable=yes --ad-queue-enable=yes --ad-queue-max-bytes=128MiB --vd-queue-max-bytes=512MiB ./somevideo.webm 
[cplayer] Command line options: '-v' '--hwdec=vaapi' '--cache=yes' '--cache-on-disk=no' '--cache-pause=yes' '--vd-queue-enable=yes' '--ad-queue-enable=yes' '--ad-queue-max-bytes=128MiB' '--vd-queue-max-bytes=512MiB' './somevideo.webm'
[cplayer] mpv 0.33.1-dirty Copyright © 2000-2020 mpv/MPlayer/mplayer2 projects
[cplayer]  built on UNKNOWN
[cplayer] FFmpeg library versions:
[cplayer]    libavutil       56.70.100
[cplayer]    libavcodec      58.134.100
[cplayer]    libavformat     58.76.100
[cplayer]    libswscale      5.9.100
[cplayer]    libavfilter     7.110.100
[cplayer]    libswresample   3.9.100
[cplayer] FFmpeg version: n4.4
[cplayer] 
[cplayer] Configuration: /usr/bin/waf configure --prefix=/usr --confdir=/etc/mpv --enable-cdda --enable-dvb --enable-dvdnav --enable-libarchive --enable-libmpv-shared --disable-build-date
[cplayer] List of enabled features: 52arch alsa asm caca cdda cplayer cplugins cuda-hwaccel cuda-interop debug-build drm dvbin dvdnav egl egl-drm egl-helpers egl-x11 ffmpeg ffnvcodec gbm gbm.h gl gl-wayland glibc-thread-name glob glob-posix gpl iconv jack javascript jpeg lcms2 libarchive libass libavdevice libbluray libdl libm libmpv-shared libplacebo librt linux-fstatfs linux-input-event-codes lua memfd_create optimize plain-gl posix posix-or-mingw pthreads pulse rubberband shaderc shaderc-shared stdatomic uchardet vaapi vaapi-drm vaapi-egl vaapi-vulkan vaapi-wayland vaapi-x-egl vaapi-x11 vdpau vt.h vulkan wayland wayland-protocols x11 xv zimg zlib
[cplayer] Reading config file /etc/mpv/encoding-profiles.conf
[cplayer] Applying profile 'default'...
[cplayer] Reading config file /home/tjm/.config/mpv/mpv.conf
[cplayer] Applying profile 'default'...
[cplayer] Setting option 'sub-font-size' = '48' (flags = 4)
[cplayer] Setting option 'sub-font' = 'Noto Sans CJK SC' (flags = 4)
[cplayer] Setting option 'hwdec' = 'vdpau' (flags = 4)
[cplayer] Setting option 'v' = '' (flags = 8)
[cplayer] Setting option 'hwdec' = 'vaapi' (flags = 8)
[cplayer] Setting option 'cache' = 'yes' (flags = 8)
[cplayer] Setting option 'cache-on-disk' = 'no' (flags = 8)
[cplayer] Setting option 'cache-pause' = 'yes' (flags = 8)
[cplayer] Setting option 'vd-queue-enable' = 'yes' (flags = 8)
[cplayer] Setting option 'ad-queue-enable' = 'yes' (flags = 8)
[cplayer] Setting option 'ad-queue-max-bytes' = '128MiB' (flags = 8)
[cplayer] Setting option 'vd-queue-max-bytes' = '512MiB' (flags = 8)
[cplayer] Waiting for scripts...
[osd/libass] libass API version: 0x1501000
[osd/libass] libass source: commit: 0.15.1-0-g5447214643eacef71776350e779adf4b6c07bb3b-dirty
[osd/libass] Shaper: FriBidi 1.0.10 (SIMPLE) HarfBuzz-ng 2.8.2 (COMPLEX)
[osd/libass] Setting up fonts...
[osd/libass] Using font provider fontconfig
[osd/libass] Done.
[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 ./somevideo.webm
[bdmv/bluray] Opening ./somevideo.webm
[file] Opening ./somevideo.webm
[demux] Trying demuxers for level=normal.
[mkv] Deferring reading cues.
[mkv] All headers are parsed!
[demux] Detected file format: Matroska
[cplayer] Opening done: ./somevideo.webm
[find_files] Loading external files in ./
[cplayer] Set property: shared-script-properties -> 1
[osd/libass] libass API version: 0x1501000
[osd/libass] libass source: commit: 0.15.1-0-g5447214643eacef71776350e779adf4b6c07bb3b-dirty
[osd/libass] Shaper: FriBidi 1.0.10 (SIMPLE) HarfBuzz-ng 2.8.2 (COMPLEX)
[osd/libass] Setting up fonts...
[osd/libass] Using font provider fontconfig
[osd/libass] Done.
[cplayer] Running hook: ytdl_hook/on_preloaded
[mkv] select track 0
[mkv] select track 1
[cplayer]  (+) Video --vid=1 (*) (vp9 3840x2160 60.000fps)
[cplayer]  (+) Audio --aid=1 --alang=eng (*) (opus 2ch 48000Hz)
[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 (eDP-1-1): [0, 0, 1366, 768] @ 60.059067 FPS
[vo/gpu/x11] Current display FPS: 60.059067
[vo/gpu/opengl] EGL_VERSION=1.4
[vo/gpu/opengl] EGL_VENDOR=NVIDIA
[vo/gpu/opengl] EGL_CLIENT_APIS=
[vo/gpu/opengl] Trying to create Desktop OpenGL context.
[vo/gpu/opengl] Choosing visual EGL config 0x40, visual ID 0x2b
[vo/gpu/opengl] GL_VERSION='4.4.0 NVIDIA 390.143'
[vo/gpu/opengl] Detected desktop OpenGL 4.4.
[vo/gpu/opengl] GL_VENDOR='NVIDIA Corporation'
[vo/gpu/opengl] GL_RENDERER='GeForce GT 720M/PCIe/SSE2'
[vo/gpu/opengl] GL_SHADING_LANGUAGE_VERSION='4.40 NVIDIA via Cg compiler'
[vo/gpu] Testing FBO format rgba16f
[vo/gpu] Using FBO format rgba16f.
[vo/gpu] No advanced processing required. Enabling dumb mode.
[vo/gpu] Assuming 60.059067 FPS for display sync.
[vd] Container reported FPS: 60.000002
[vd] Codec list:
[vd]     vp9 - Google VP9
[vd]     vp9_v4l2m2m (vp9) - V4L2 mem2mem VP9 decoder wrapper
[vd]     libvpx-vp9 (vp9) - libvpx VP9
[vd]     vp9_cuvid (vp9) - Nvidia CUVID VP9 decoder
[vd]     vp9_qsv (vp9) - VP9 video (Intel Quick Sync Video acceleration)
[vd] Opening decoder vp9
[vd] Looking at hwdec vp9-vaapi...
[vo/gpu] Loading hwdec driver 'vaapi-egl'
[vo/gpu/vaapi-egl] VAAPI hwdec only works with OpenGL or Vulkan backends.
[vo/gpu] Loading failed.
[vo/gpu] Loading hwdec driver 'cuda-nvdec'
[vo/gpu] Loading hwdec driver 'drmprime-drm'
[vo/gpu/drmprime-drm] Failed to retrieve DRM fd from native display.
[vo/gpu] Loading failed.
[vd] Could not create device.
[vd] No hardware decoding available for this codec.
[vd] Using software decoding.
[vd] Detected 4 logical cores.
[vd] Requesting 5 threads for decoding.
[vd] Selected codec: vp9 (Google VP9)
[vf] User filter list:
[vf]   (empty)
[ad] Codec list:
[ad]     opus - Opus
[ad]     libopus (opus) - libopus Opus
[ad] Opening decoder opus
[ad] Requesting 1 threads for decoding.
[ad] Selected codec: opus (Opus)
[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
[ao] Trying audio driver 'pulse'
[ao/pulse] requested format: 48000 Hz, stereo channels, floatp
[ao/pulse] Library version: 14.2.0
[ao/pulse] Proto: 34
[ao/pulse] Server proto: 4294967295
[ao/pulse] Channel layouts:
[ao/pulse]  - #fl
[ao/pulse]  - #fr
[ao/pulse]  - #fc
[ao/pulse]  - #lfe
[ao/pulse]  - #bl
[ao/pulse]  - #br
[ao/pulse]  - #flc
[ao/pulse]  - #frc
[ao/pulse]  - #bc
[ao/pulse]  - #sl
[ao/pulse]  - #sr
[ao/pulse]  - #tc
[ao/pulse]  - #tfl
[ao/pulse]  - #tfc
[ao/pulse]  - #tfr
[ao/pulse]  - #tbl
[ao/pulse]  - #tbc
[ao/pulse]  - #tbr
[ao/pulse] result: stereo
[ao/pulse] device buffer: 4800 samples.
[ao/pulse] using soft-buffer of 9600 samples.
[cplayer] AO: [pulse] 48000Hz stereo 2ch float
[cplayer] AO: Description: PulseAudio audio output
[autoconvert] inserting resampler
[swresample] format change, reinitializing resampler
[swresample] 48000Hz stereo floatp -> 48000Hz stereo float
[af] [out] 48000Hz stereo 2ch float
[cplayer] Set property: shared-script-properties -> 1
[cplayer] Set property: shared-script-properties -> 1
[vd] Using software decoding.
[vd] Decoder format: 3840x2160 [0:1] yuv420p bt.709/auto/auto/limited/auto CL=unknown
[vd] Using container aspect ratio.
[vf] [in] 3840x2160 yuv420p bt.709/bt.709/bt.1886/limited/display SP=1.000000 CL=mpeg2/4/h264
[vf] [userdeint] 3840x2160 yuv420p bt.709/bt.709/bt.1886/limited/display SP=1.000000 CL=mpeg2/4/h264
[vf] [userdeint] (disabled)
[vf] [autorotate] 3840x2160 yuv420p bt.709/bt.709/bt.1886/limited/display SP=1.000000 CL=mpeg2/4/h264
[vf] [autorotate] (disabled)
[vf] [convert] 3840x2160 yuv420p bt.709/bt.709/bt.1886/limited/display SP=1.000000 CL=mpeg2/4/h264
[vf] [convert] (disabled)
[vf] [out] 3840x2160 yuv420p bt.709/bt.709/bt.1886/limited/display SP=1.000000 CL=mpeg2/4/h264
[cplayer] VO: [gpu] 3840x2160 yuv420p
[cplayer] VO: Description: Shader-based GPU Renderer
[vo/gpu] reconfig to 3840x2160 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: 679x729
[vo/gpu] Window size: 679x729 (Borders: l=0 t=0 r=0 b=0)
[vo/gpu] Video source: 3840x2160 (1:1)
[vo/gpu] Video display: (0, 0) 3840x2160 -> (0, 174) 679x381
[vo/gpu] Video scale: 0.176823/0.176389
[vo/gpu] OSD borders: l=0 t=174 r=0 b=174
[vo/gpu] Video borders: l=0 t=174 r=0 b=174
[vo/gpu] Reported display depth: 8
[vo/gpu] Texture for plane 0: 3840x2160
[vo/gpu] Texture for plane 1: 1920x1080
[vo/gpu] Texture for plane 2: 1920x1080
[vo/gpu] Testing FBO format rgba16f
[vo/gpu] Using FBO format rgba16f.
[vo/gpu] No advanced processing required. Enabling dumb mode.
[vo/gpu] DR enabled: yes
[cplayer] first video frame after restart shown
[cplayer] audio ready
[cplayer] delaying audio start 0.001000 vs. 0.000000, diff=0.001000
[cplayer] playback restart complete @ 0.000000, audio=ready, video=playing
[statusline] AV: 00:00:00 / 00:10:09 (0%) A-V:  0.000
[cplayer] starting audio playback
[ao/pulse] starting AO
[cplayer] Set property: shared-script-properties -> 1
[vo/gpu/x11] Disabling screensaver.
[statusline] AV: 00:00:00 / 00:10:09 (0%) A-V:  0.171 Dropped: 24
[cplayer] Set property: fullscreen -> 1
[vo/gpu] Resize: 679x729
[vo/gpu] Window size: 679x729 (Borders: l=0 t=0 r=0 b=0)
[vo/gpu] Video source: 3840x2160 (1:1)
[vo/gpu] Video display: (0, 0) 3840x2160 -> (0, 174) 679x381
[vo/gpu] Video scale: 0.176823/0.176389
[vo/gpu] OSD borders: l=0 t=174 r=0 b=174
[vo/gpu] Video borders: l=0 t=174 r=0 b=174
[vo/gpu] Reported display depth: 8
[cplayer] Set property: shared-script-properties -> 1
[vo/gpu] Resize: 1366x768
[vo/gpu] Window size: 1366x768 (Borders: l=0 t=0 r=0 b=0)
[vo/gpu] Video source: 3840x2160 (1:1)
[vo/gpu] Video display: (0, 0) 3840x2160 -> (0, 0) 1365x768
[vo/gpu] Video scale: 0.355469/0.355556
[vo/gpu] OSD borders: l=0 t=0 r=1 b=0
[vo/gpu] Video borders: l=0 t=0 r=1 b=0
[vo/gpu] Reported display depth: 8
[statusline] AV: 00:00:00 / 00:10:09 (0%) A-V:  0.171 Dropped: 24
[cplayer] Set property: shared-script-properties -> 1
[statusline] AV: 00:00:01 / 00:10:09 (0%) A-V:  0.356 Dropped: 65
[cplayer] Set property: fullscreen -> 1
[vo/gpu] Resize: 1366x768
[vo/gpu] Window size: 1366x768 (Borders: l=0 t=0 r=0 b=0)
[vo/gpu] Video source: 3840x2160 (1:1)
[vo/gpu] Video display: (0, 0) 3840x2160 -> (0, 0) 1365x768
[vo/gpu] Video scale: 0.355469/0.355556
[vo/gpu] OSD borders: l=0 t=0 r=1 b=0
[vo/gpu] Video borders: l=0 t=0 r=1 b=0
[vo/gpu] Reported display depth: 8
[statusline] AV: 00:00:01 / 00:10:09 (0%) A-V:  0.349 Dropped: 66
[cplayer] Set property: shared-script-properties -> 1
[vo/gpu] Resize: 679x729
[vo/gpu] Window size: 679x729 (Borders: l=0 t=0 r=0 b=0)
[vo/gpu] Video source: 3840x2160 (1:1)
[vo/gpu] Video display: (0, 0) 3840x2160 -> (0, 174) 679x381
[vo/gpu] Video scale: 0.176823/0.176389
[vo/gpu] OSD borders: l=0 t=174 r=0 b=174
[vo/gpu] Video borders: l=0 t=174 r=0 b=174
[vo/gpu] Reported display depth: 8
[statusline] AV: 00:00:01 / 00:10:09 (0%) A-V:  0.342 Dropped: 67
[cplayer] Set property: shared-script-properties -> 1
[statusline] AV: 00:00:01 / 00:10:09 (0%) A-V:  0.420 Dropped: 89
[vo/gpu] Resize: 679x729
[vo/gpu] Window size: 679x729 (Borders: l=0 t=0 r=0 b=0)
[vo/gpu] Video source: 3840x2160 (1:1)
[vo/gpu] Video display: (0, 0) 3840x2160 -> (0, 174) 679x381
[vo/gpu] Video scale: 0.176823/0.176389
[vo/gpu] OSD borders: l=0 t=174 r=0 b=174
[vo/gpu] Video borders: l=0 t=174 r=0 b=174
[vo/gpu] Reported display depth: 8
[cplayer] Set property: fullscreen -> 1
[cplayer] Set property: shared-script-properties -> 1
[vo/gpu] Resize: 1366x768
[vo/gpu] Window size: 1366x768 (Borders: l=0 t=0 r=0 b=0)
[vo/gpu] Video source: 3840x2160 (1:1)
[vo/gpu] Video display: (0, 0) 3840x2160 -> (0, 0) 1365x768
[vo/gpu] Video scale: 0.355469/0.355556
[vo/gpu] OSD borders: l=0 t=0 r=1 b=0
[vo/gpu] Video borders: l=0 t=0 r=1 b=0
[vo/gpu] Reported display depth: 8
[cplayer] Set property: shared-script-properties -> 1
[statusline] AV: 00:00:01 / 00:10:09 (0%) A-V:  0.486 Dropped: 90
[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] 
[statusline] AV: 00:00:04 / 00:10:09 (1%) A-V:  0.930 Dropped: 212
[vo/gpu] Resize: 1366x768
[vo/gpu] Window size: 1366x768 (Borders: l=0 t=0 r=0 b=0)
[vo/gpu] Video source: 3840x2160 (1:1)
[vo/gpu] Video display: (0, 0) 3840x2160 -> (0, 0) 1365x768
[vo/gpu] Video scale: 0.355469/0.355556
[vo/gpu] OSD borders: l=0 t=0 r=1 b=0
[vo/gpu] Video borders: l=0 t=0 r=1 b=0
[cplayer] Set property: fullscreen -> 1
[vo/gpu] Reported display depth: 8
[cplayer] Set property: shared-script-properties -> 1
[statusline] AV: 00:00:04 / 00:10:09 (1%) A-V:  0.939 Dropped: 213
[vo/gpu] Resize: 679x729
[vo/gpu] Window size: 679x729 (Borders: l=0 t=0 r=0 b=0)
[vo/gpu] Video source: 3840x2160 (1:1)
[vo/gpu] Video display: (0, 0) 3840x2160 -> (0, 174) 679x381
[vo/gpu] Video scale: 0.176823/0.176389
[vo/gpu] OSD borders: l=0 t=174 r=0 b=174
[vo/gpu] Video borders: l=0 t=174 r=0 b=174
[vo/gpu] Reported display depth: 8
[statusline] AV: 00:00:04 / 00:10:09 (1%) A-V:  0.926 Dropped: 214
[cplayer] Set property: shared-script-properties -> 1
[statusline] AV: 00:00:07 / 00:10:09 (1%) A-V:  2.655 Dropped: 363
[cplayer] Set property: fullscreen -> 1
[vo/gpu] Resize: 679x729
[vo/gpu] Window size: 679x729 (Borders: l=0 t=0 r=0 b=0)
[vo/gpu] Video source: 3840x2160 (1:1)
[vo/gpu] Video display: (0, 0) 3840x2160 -> (0, 174) 679x381
[vo/gpu] Video scale: 0.176823/0.176389
[vo/gpu] OSD borders: l=0 t=174 r=0 b=174
[vo/gpu] Video borders: l=0 t=174 r=0 b=174
[vo/gpu] Reported display depth: 8
[statusline] AV: 00:00:07 / 00:10:09 (1%) A-V:  2.726 Dropped: 363
[cplayer] Set property: shared-script-properties -> 1
[vo/gpu] Resize: 1366x768
[vo/gpu] Window size: 1366x768 (Borders: l=0 t=0 r=0 b=0)
[vo/gpu] Video source: 3840x2160 (1:1)
[vo/gpu] Video display: (0, 0) 3840x2160 -> (0, 0) 1365x768
[vo/gpu] Video scale: 0.355469/0.355556
[vo/gpu] OSD borders: l=0 t=0 r=1 b=0
[vo/gpu] Video borders: l=0 t=0 r=1 b=0
[vo/gpu] Reported display depth: 8
[statusline] AV: 00:00:07 / 00:10:09 (1%) A-V:  2.727 Dropped: 363
[cplayer] Set property: shared-script-properties -> 1
[statusline] AV: 00:00:08 / 00:10:09 (1%) A-V:  3.549 Dropped: 419
[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
[tjm@ArchPad mpv]$ 

Last edited by TJM (2021-07-16 21:03:59)

Offline

#12 2021-07-16 21:18:52

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 77,432

Re: Audio/Video desynchronisation

[vo/gpu/opengl] GL_VENDOR='NVIDIA Corporation'
[vo/gpu/opengl] GL_RENDERER='GeForce GT 720M/PCIe/SSE2'
[vo/gpu/opengl] GL_SHADING_LANGUAGE_VERSION='4.40 NVIDIA via Cg compiler'

Please don't necrobump.
You've an nvidia chip, so you want to use vdpau instead of vaapi, maybe "--vo=vdpau --hwdec=vdpau" and also "--ytdl-raw-options='format="mp4,best[height<=768]"'" because the GT720m has no hardware decoder for vp9

Edit: and you can put those into ~/.config/mpv/something.conf - check "man mpv"
Edit #2: that's actually a local file, so ytdl-raw-options won't do anything (it's for youtube videos) - you cannot decode that video in HW and 4k VP9 might reasonably too much for your (undisclosed) CPU

Last edited by seth (2021-07-16 21:24:28)

Offline

Board footer

Powered by FluxBB