You are not logged in.

#1 2019-06-02 16:49:37

h1pp13p373
Member
Registered: 2019-04-29
Posts: 9

[SOLVED] 4k videos slow and choppy

Greetings!

I'm having some video challenges and hope for some advise.  Any 4k videos play slow and choppy with various applications, including vlc, mplayer, mpv, kdenlive, etc.  If I cut the size down with

ffmpeg -i videofile.mp4 -s 1600x900 -vcodec libx264 videofile.small.mp4

they play perfectly.  I guessed at maybe disk speed/issues, but moving the video to a higher speed solid state disk didn't change anything.

I started suspecting driver issues because 'vdpauinfo' seems to work but 'vainfo' does not.

$ vdpauinfo |head
display: :0.0   screen: 0
API version: 1
Information string: OpenGL/VAAPI backend for VDPAU

Video surface:

name   width height types
-------------------------------------------
420     4096  4096  NV12 YV12 UYVY YUYV Y8U8V8A8 V8U8Y8A8 
422     4096  4096  NV12 YV12 UYVY YUYV Y8U8V8A8 V8U8Y8A8 

$ vainfo 
vaInitialize failed with error code -1 (unknown libva error),exit

I'm on a Dell Latitude 5580 with an Intel SkyLake proc and an Intel HD graphics card and was able to enable the GuC and HuC firmware.  Arch was updated a few days ago and I think I have the required drivers installed.

$ uname -a
Linux sterling 5.1.5-arch1-2-ARCH #1 SMP PREEMPT Mon May 27 03:37:39 UTC 2019 x86_64 GNU/Linux
Jun02 12:39:22 hippie@sterling:/mnt/usbsata2/Videos/phantom/2019/May.26.2019 
$ pacman -Q linux
linux 5.1.5.arch1-2

$ gcc -march=native -Q --help=target|grep march
  -march=                               skylake
$ lspci | grep VGA
00:02.0 VGA compatible controller: Intel Corporation HD Graphics 620 (rev 02)

$ dmesg |grep -i huc
[    4.126557] [drm] HuC: Loaded firmware i915/kbl_huc_ver02_00_1810.bin (version 2.0)
[    4.145515] i915 0000:00:02.0: HuC enabled
$ dmesg |grep -i guc
[    0.000000] Command line: BOOT_IMAGE=/vmlinuz-linux root=/dev/mapper/vglocal00-root00 rw quiet i915.enable_guc=2
[    0.229564] Kernel command line: BOOT_IMAGE=/vmlinuz-linux root=/dev/mapper/vglocal00-root00 rw quiet i915.enable_guc=2
[    3.210807] Setting dangerous option enable_guc - tainting kernel
[    4.136205] [drm] GuC: Loaded firmware i915/kbl_guc_ver9_39.bin (version 9.39)
[    4.145511] i915 0000:00:02.0: GuC firmware version 9.39
[    4.145513] i915 0000:00:02.0: GuC submission disabled

$ pacman -Q mesa
mesa 19.0.5-1
$ pacman -Qs intel
local/intel-gmmlib 19.1.2-1
    Intel Graphics Memory Management Library
local/intel-media-driver 19.1.0-1
    Intel Media Driver for VAAPI — Broadwell+ iGPUs
local/intel-tbb 2019.7-1
    High level abstract threading library
local/intel-ucode 20190514.a-1
    Microcode update files for Intel CPUs
local/libva-utils 2.4.1-1
    Intel VA-API Media Applications and Scripts for libva
local/libva1-intel-driver 1.8.3-1
    VA-API implementation for Intel G45 and HD Graphics family
local/mesa 19.0.5-1
    An open-source implementation of the OpenGL specification
local/openipmi 2.0.27-1
    Full-function IPMI (Intelligent Platform Management Interface) system
local/vulkan-intel 19.0.5-1
    Intel's Vulkan mesa driver
local/xf86-video-intel 1:2.99.917+863+g6afed33b-1 (xorg-drivers)
    X.org Intel i810/i830/i915/945G/G965+ video drivers

$ ls /usr/lib/dri
i915_dri.so  iHD_drv_video.so   nouveau_dri.so        nouveau_vieux_dri.so  r300_dri.so  r600_drv_video.so  radeonsi_dri.so        swrast_dri.so      vmwgfx_dri.so
i965_dri.so  kms_swrast_dri.so  nouveau_drv_video.so  r200_dri.so           r600_dri.so  radeon_dri.so      radeonsi_drv_video.so  virtio_gpu_dri.so

$ ls /usr/lib/libva1/dri/
i965_drv_video.so

Thanks!

Last edited by h1pp13p373 (2019-06-03 16:51:07)

Offline

#2 2019-06-02 17:10:54

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 21,707

Re: [SOLVED] 4k videos slow and choppy

install libva-intel-driver (libva1-intel-driver is a compatibility option for proprietary software that cannot easily be relinked, like steam) or set up your environment properly so that the intel-media-driver is used: https://wiki.archlinux.org/index.php/Ha … ing_VA-API

Offline

#3 2019-06-02 21:29:27

h1pp13p373
Member
Registered: 2019-04-29
Posts: 9

Re: [SOLVED] 4k videos slow and choppy

Thanks V1del!

I installed libva-intel-driver and set the env variable and still no dice.  Videos are still choppy and vainfo errors.  (I also rebooted)

$ pacman -Q libva-intel-driver
libva-intel-driver 2.3.0-2

$ echo $LIBVA_DRIVER_NAME
/usr/lib/dri/iHD_drv_video.so

$ vainfo 
vaInitialize failed with error code -1 (unknown libva error),exit

Offline

#4 2019-06-02 22:06:14

h1pp13p373
Member
Registered: 2019-04-29
Posts: 9

Re: [SOLVED] 4k videos slow and choppy

I just noticed 'vainfo' does return as root, but videos still choppy.

# vainfo 
error: XDG_RUNTIME_DIR not set in the environment.
error: can't connect to X server!
vainfo: VA-API version: 1.4 (libva 2.4.1)
vainfo: Driver version: Intel i965 driver for Intel(R) Kaby Lake - 2.3.0
vainfo: Supported profile and entrypoints
      VAProfileMPEG2Simple            : VAEntrypointVLD
      VAProfileMPEG2Simple            : VAEntrypointEncSlice
      VAProfileMPEG2Main              : VAEntrypointVLD
      VAProfileMPEG2Main              : VAEntrypointEncSlice
      VAProfileH264ConstrainedBaseline: VAEntrypointVLD
      VAProfileH264ConstrainedBaseline: VAEntrypointEncSlice
      VAProfileH264ConstrainedBaseline: VAEntrypointEncSliceLP
      VAProfileH264Main               : VAEntrypointVLD
      VAProfileH264Main               : VAEntrypointEncSlice
      VAProfileH264Main               : VAEntrypointEncSliceLP
      VAProfileH264High               : VAEntrypointVLD
      VAProfileH264High               : VAEntrypointEncSlice
      VAProfileH264High               : VAEntrypointEncSliceLP
      VAProfileH264MultiviewHigh      : VAEntrypointVLD
      VAProfileH264MultiviewHigh      : VAEntrypointEncSlice
      VAProfileH264StereoHigh         : VAEntrypointVLD
      VAProfileH264StereoHigh         : VAEntrypointEncSlice
      VAProfileVC1Simple              : VAEntrypointVLD
      VAProfileVC1Main                : VAEntrypointVLD
      VAProfileVC1Advanced            : VAEntrypointVLD
      VAProfileNone                   : VAEntrypointVideoProc
      VAProfileJPEGBaseline           : VAEntrypointVLD
      VAProfileJPEGBaseline           : VAEntrypointEncPicture
      VAProfileVP8Version0_3          : VAEntrypointVLD
      VAProfileVP8Version0_3          : VAEntrypointEncSlice
      VAProfileHEVCMain               : VAEntrypointVLD
      VAProfileHEVCMain               : VAEntrypointEncSlice
      VAProfileHEVCMain10             : VAEntrypointVLD
      VAProfileHEVCMain10             : VAEntrypointEncSlice
      VAProfileVP9Profile0            : VAEntrypointVLD
      VAProfileVP9Profile0            : VAEntrypointEncSlice
      VAProfileVP9Profile2            : VAEntrypointVLD

Offline

#5 2019-06-03 07:37:08

seth
Member
Registered: 2012-09-03
Posts: 51,143

Re: [SOLVED] 4k videos slow and choppy

How about checking what is actually used for playback:

mpv -v hiresporn.mp4

Offline

#6 2019-06-03 07:41:50

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 21,707

Re: [SOLVED] 4k videos slow and choppy

That environment variable is incorrect, if you actually intend to set it set it to just iHD

Offline

#7 2019-06-03 15:43:16

h1pp13p373
Member
Registered: 2019-04-29
Posts: 9

Re: [SOLVED] 4k videos slow and choppy

LMFAO... I see what ya did there, seth.  smile   

I've set the variable properly now and still get a choppy video.  'mpv -v' is pretty slick though.  To me, it looks like it's using OpenGL, but I did notice this part:

[vd] No hardware decoding requested.
[vd] Using software decoding.

I'm not sure if hw decoding should be requested for that card.  Here's the full output:

$ echo $LIBVA_DRIVER_NAME
iHD
[cplayer] Command line options: '-v' 'DJI_0123.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: DJI_0123.MP4
[cplayer] Running hook: ytdl_hook/on_load
[ytdl_hook] ytdl:// hook 
[ytdl_hook] not a ytdl:// url 
[ifo] Opening DJI_0123.MP4
[ifo_dvdnav] Opening DJI_0123.MP4
[osd/libass] Shaper: FriBidi 0.19.7 (SIMPLE) HarfBuzz-ng 2.5.0 (COMPLEX)
[osd/libass] Setting up fonts...
[bdmv/bluray] Opening DJI_0123.MP4
[file] Opening DJI_0123.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: DJI_0123.MP4
[find_files] Loading external files in .
[cplayer] Running hook: ytdl_hook/on_preloaded
[lavf] select track 0
[cplayer]  (+) Video --vid=1 (*) (h264 4096x2160 59.940fps)
[display-tags] File tags:
[display-tags]  Comment: DE=D-Cinelike, Mode=P
[osd/libass] Using font provider fontconfig
[osd/libass] Done.
[vo/gpu] Probing for best GPU context.
[vo/gpu/opengl] Initializing GPU context 'x11probe'
[vo/gpu/x11] X11 opening display: :0.0
[vo/gpu/x11] X11 running at 1920x1080 (":0.0" => local display)
[vo/gpu/x11] Detected wm supports NetWM.
[vo/gpu/x11] Detected wm supports FULLSCREEN state.
[vo/gpu/x11] Detected wm supports ABOVE state.
[vo/gpu/x11] Detected wm supports BELOW state.
[vo/gpu/x11] Display 0 (eDP1): [0, 0, 1366, 768] @ 59.998545 FPS
[vo/gpu/x11] Display 1 (HDMI1): [0, 0, 1920, 1080] @ 60.000000 FPS
[vo/gpu/x11] Current display FPS: 59.998545
[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.5'
[vo/gpu] Detected desktop OpenGL 4.5.
[vo/gpu] GL_VENDOR='Intel Open Source Technology Center'
[vo/gpu] GL_RENDERER='Mesa DRI Intel(R) HD Graphics 620 (Kaby Lake GT2) '
[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.0
[vo/gpu/x11] X11 running at 1920x1080 (":0.0" => local display)
[vo/gpu/x11] Detected wm supports NetWM.
[vo/gpu/x11] Detected wm supports FULLSCREEN state.
[vo/gpu/x11] Detected wm supports ABOVE state.
[vo/gpu/x11] Detected wm supports BELOW state.
[vo/gpu/x11] Display 0 (eDP1): [0, 0, 1366, 768] @ 59.998545 FPS
[vo/gpu/x11] Display 1 (HDMI1): [0, 0, 1920, 1080] @ 60.000000 FPS
[vo/gpu/x11] Current display FPS: 59.998545
[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.5'
[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) HD Graphics 620 (Kaby Lake GT2) '
[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.998545 FPS for display sync.
[vd] Container reported FPS: 59.940060
[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)
[cplayer] Starting playback...
[vd] Decoder format: 4096x2160 yuv420p bt.709/bt.709/bt.1886/limited/auto CL=mpeg2/4/h264 (auto 0.000000/0.000000/0.000000)
[vf] [in] 4096x2160 yuv420p bt.709/bt.709/bt.1886/limited/display SP=1.000000 CL=mpeg2/4/h264
[vf] [userdeint] 4096x2160 yuv420p bt.709/bt.709/bt.1886/limited/display SP=1.000000 CL=mpeg2/4/h264
[vf] [userdeint] (disabled)
[vf] [autorotate] 4096x2160 yuv420p bt.709/bt.709/bt.1886/limited/display SP=1.000000 CL=mpeg2/4/h264
[vf] [autorotate] (disabled)
[vf] [convert] 4096x2160 yuv420p bt.709/bt.709/bt.1886/limited/display SP=1.000000 CL=mpeg2/4/h264
[vf] [convert] (disabled)
[vf] [out] 4096x2160 yuv420p bt.709/bt.709/bt.1886/limited/display SP=1.000000 CL=mpeg2/4/h264
[cplayer] VO: [gpu] 4096x2160 yuv420p
[cplayer] VO: Description: Shader-based GPU Renderer
[vo/gpu] reconfig to 4096x2160 yuv420p bt.709/bt.709/bt.1886/limited/display SP=1.000000 CL=mpeg2/4/h264
[vo/gpu] Resize: 1916x1010
[vo/gpu] Window size: 1916x1010
[vo/gpu] Video source: 4096x2160 (1:1)
[vo/gpu] Video display: (0, 0) 4096x2160 -> (0, 0) 1915x1010
[vo/gpu] Video scale: 0.467529/0.467593
[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
[vo/gpu] Texture for plane 0: 4096x2160
[vo/gpu] Texture for plane 1: 2048x1080
[vo/gpu] Texture for plane 2: 2048x1080
[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/TTF/DejaVuSans.ttf, 0, DejaVuSans
[cplayer] first video frame after restart shown
[cplayer] playback restart complete
[vo/gpu/x11] Disabling screensaver.
[cplayer] EOF code: 5  
[vd] Uninit decoder.
[vo/gpu/x11] Enabling screensaver.
[cplayer] finished playback, success (reason 3)
[cplayer] 
[cplayer] 
[cplayer] Exiting... (Quit)
[ytdl_hook] Exiting...
[stats] Exiting...
[osc] Exiting...
[vo/gpu/x11] uninit ...

Offline

#8 2019-06-03 15:50:40

seth
Member
Registered: 2012-09-03
Posts: 51,143

Re: [SOLVED] 4k videos slow and choppy

mpv --hwdec=vaapi -v hiresfamilyentertainment.mp4
mpv --hwdec=vaapi-copy -v hiresfamilyentertainment.mp4

Offline

#9 2019-06-03 15:52:23

h1pp13p373
Member
Registered: 2019-04-29
Posts: 9

Re: [SOLVED] 4k videos slow and choppy

Sorry, forgot to add that fixing the variable to iHD also fixed vainfo, just not the choppy playback.

$ vainfo
vainfo: VA-API version: 1.4 (libva 2.4.1)
vainfo: Driver version: Intel iHD driver - 1.0.0
vainfo: Supported profile and entrypoints
      VAProfileNone                   : VAEntrypointVideoProc
      VAProfileNone                   : VAEntrypointStats
      VAProfileMPEG2Simple            : VAEntrypointVLD
      VAProfileMPEG2Simple            : VAEntrypointEncSlice
      VAProfileMPEG2Main              : VAEntrypointVLD
      VAProfileMPEG2Main              : VAEntrypointEncSlice
      VAProfileH264Main               : VAEntrypointVLD
      VAProfileH264Main               : VAEntrypointEncSlice
      VAProfileH264Main               : VAEntrypointFEI
      VAProfileH264Main               : VAEntrypointEncSliceLP
      VAProfileH264High               : VAEntrypointVLD
      VAProfileH264High               : VAEntrypointEncSlice
      VAProfileH264High               : VAEntrypointFEI
      VAProfileH264High               : VAEntrypointEncSliceLP
      VAProfileVC1Simple              : VAEntrypointVLD
      VAProfileVC1Main                : VAEntrypointVLD
      VAProfileVC1Advanced            : VAEntrypointVLD
      VAProfileJPEGBaseline           : VAEntrypointVLD
      VAProfileJPEGBaseline           : VAEntrypointEncPicture
      VAProfileH264ConstrainedBaseline: VAEntrypointVLD
      VAProfileH264ConstrainedBaseline: VAEntrypointEncSlice
      VAProfileH264ConstrainedBaseline: VAEntrypointFEI
      VAProfileH264ConstrainedBaseline: VAEntrypointEncSliceLP
      VAProfileVP8Version0_3          : VAEntrypointVLD
      VAProfileVP8Version0_3          : VAEntrypointEncSlice
      VAProfileHEVCMain               : VAEntrypointVLD
      VAProfileHEVCMain               : VAEntrypointEncSlice
      VAProfileHEVCMain               : VAEntrypointFEI
      VAProfileHEVCMain10             : VAEntrypointVLD
      VAProfileHEVCMain10             : VAEntrypointEncSlice
      VAProfileVP9Profile0            : VAEntrypointVLD
      VAProfileVP9Profile2            : VAEntrypointVLD

Offline

#10 2019-06-03 15:57:49

h1pp13p373
Member
Registered: 2019-04-29
Posts: 9

Re: [SOLVED] 4k videos slow and choppy

Seth, you ROCK!  'mpv --hwdec=vaapi -v' did the trick..  now my hiresfamilyentertainment can be played nice and smooth!

Much appreciate the help Seth and V1del!

[vd] Using hardware decoding (vaapi).
[cplayer] Command line options: '--hwdec=vaapi' '-v' 'DJI_0123.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: DJI_0123.MP4
[cplayer] Running hook: ytdl_hook/on_load
[ytdl_hook] ytdl:// hook 
[ytdl_hook] not a ytdl:// url 
[ifo] Opening DJI_0123.MP4
[ifo_dvdnav] Opening DJI_0123.MP4
[osd/libass] Shaper: FriBidi 0.19.7 (SIMPLE) HarfBuzz-ng 2.5.0 (COMPLEX)
[osd/libass] Setting up fonts...
[bdmv/bluray] Opening DJI_0123.MP4
[file] Opening DJI_0123.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: DJI_0123.MP4
[osd/libass] Using font provider fontconfig
[osd/libass] Done.
[find_files] Loading external files in .
[cplayer] Running hook: ytdl_hook/on_preloaded
[lavf] select track 0
[cplayer]  (+) Video --vid=1 (*) (h264 4096x2160 59.940fps)
[display-tags] File tags:
[display-tags]  Comment: DE=D-Cinelike, Mode=P
[vo/gpu] Probing for best GPU context.
[vo/gpu/opengl] Initializing GPU context 'x11probe'
[vo/gpu/x11] X11 opening display: :0.0
[vo/gpu/x11] X11 running at 1920x1080 (":0.0" => local display)
[vo/gpu/x11] Detected wm supports NetWM.
[vo/gpu/x11] Detected wm supports FULLSCREEN state.
[vo/gpu/x11] Detected wm supports ABOVE state.
[vo/gpu/x11] Detected wm supports BELOW state.
[vo/gpu/x11] Display 0 (eDP1): [0, 0, 1366, 768] @ 59.998545 FPS
[vo/gpu/x11] Display 1 (HDMI1): [0, 0, 1920, 1080] @ 60.000000 FPS
[vo/gpu/x11] Current display FPS: 59.998545
[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.5'
[vo/gpu] Detected desktop OpenGL 4.5.
[vo/gpu] GL_VENDOR='Intel Open Source Technology Center'
[vo/gpu] GL_RENDERER='Mesa DRI Intel(R) HD Graphics 620 (Kaby Lake GT2) '
[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.0
[vo/gpu/x11] X11 running at 1920x1080 (":0.0" => local display)
[vo/gpu/x11] Detected wm supports NetWM.
[vo/gpu/x11] Detected wm supports FULLSCREEN state.
[vo/gpu/x11] Detected wm supports ABOVE state.
[vo/gpu/x11] Detected wm supports BELOW state.
[vo/gpu/x11] Display 0 (eDP1): [0, 0, 1366, 768] @ 59.998545 FPS
[vo/gpu/x11] Display 1 (HDMI1): [0, 0, 1920, 1080] @ 60.000000 FPS
[vo/gpu/x11] Current display FPS: 59.998545
[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.5'
[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) HD Graphics 620 (Kaby Lake GT2) '
[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.998545 FPS for display sync.
[vd] Container reported FPS: 59.940060
[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] Looking at hwdec h264-vaapi...
[vo/gpu] Loading hwdec driver 'vaapi-egl'
[vo/gpu/vaapi-egl] Trying to open a x11 VA display...
[vo/gpu/vaapi-egl/vaapi] libva: VA-API version 1.4.0
[vo/gpu/vaapi-egl/vaapi] libva: va_getDriverName() returns 0
[vo/gpu/vaapi-egl/vaapi] libva: User requested driver 'iHD'
[vo/gpu/vaapi-egl/vaapi] libva: Trying to open /usr/lib/dri/iHD_drv_video.so
[vo/gpu/vaapi-egl/vaapi] libva: Found init function __vaDriverInit_1_4
[vo/gpu/vaapi-egl/vaapi] libva: va_openDriver() returns 0
[vo/gpu/vaapi-egl/vaapi] Initialized VAAPI: version 1.4
[vo/gpu/vaapi-egl] using VAAPI EGL interop
[vo/gpu/vaapi-egl] vaAcquireSurfaceHandle() failed (invalid VASurfaceID)
[vo/gpu/vaapi-egl] vaAcquireSurfaceHandle() failed (invalid VASurfaceID)
[vo/gpu/vaapi-egl] vaAcquireSurfaceHandle() failed (invalid VASurfaceID)
[vo/gpu/vaapi-egl] vaAcquireSurfaceHandle() failed (invalid VASurfaceID)
[vo/gpu/vaapi-egl] vaAcquireSurfaceHandle() failed (invalid VASurfaceID)
[vo/gpu/vaapi-egl] vaAcquireSurfaceHandle() failed (invalid VASurfaceID)
[vo/gpu/vaapi-egl] vaAcquireSurfaceHandle() failed (invalid VASurfaceID)
[vo/gpu/vaapi-egl] vaAcquireSurfaceHandle() failed (invalid VASurfaceID)
[vo/gpu/vaapi-egl] vaAcquireSurfaceHandle() failed (invalid VASurfaceID)
[vo/gpu/vaapi-egl] vaAcquireSurfaceHandle() failed (invalid VASurfaceID)
[vo/gpu/vaapi-egl] Supported formats:
[vo/gpu/vaapi-egl]  rgba
[vo/gpu/vaapi-egl]  nv12
[vo/gpu/vaapi-egl]  yuv420p
[vo/gpu/vaapi-egl]  yuv420p
[vo/gpu/vaapi-egl]  yuv420p
[vo/gpu/vaapi-egl]  gray
[vo/gpu/vaapi-egl]  p010
[vo/gpu] Loading hwdec driver 'cuda-nvdec'
[vo/gpu/cuda-nvdec] Failed to load CUDA symbols
[vo/gpu] Loading failed.
[vo/gpu] Loading hwdec driver 'vdpau-glx'
[vo/gpu] Loading failed.
[vo/gpu] Loading hwdec driver 'drmprime-drm'
[vo/gpu/drmprime-drm] Failed to retrieve DRM fd from native display.
[vo/gpu] Loading failed.
[vd] Trying hardware decoding via h264-vaapi.
[vd] Selected codec: h264 (H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10)
[vf] User filter list:
[vf]   (empty)
[cplayer] Starting playback...
[vd] Pixel formats supported by decoder: vdpau cuda vaapi_vld yuv420p
[vd] Codec profile: High (0x64)
[vd] Requesting pixfmt 'vaapi_vld' from decoder.
[vd] Using hardware decoding (vaapi).
[vd] Decoder format: 4096x2160 vaapi[nv12] bt.709/bt.709/bt.1886/limited/auto CL=mpeg2/4/h264 (auto 0.000000/0.000000/0.000000)
[vf] [in] 4096x2160 vaapi[nv12] bt.709/bt.709/bt.1886/limited/display SP=1.000000 CL=mpeg2/4/h264
[vf] [userdeint] 4096x2160 vaapi[nv12] bt.709/bt.709/bt.1886/limited/display SP=1.000000 CL=mpeg2/4/h264
[vf] [userdeint] (disabled)
[vf] [autorotate] 4096x2160 vaapi[nv12] bt.709/bt.709/bt.1886/limited/display SP=1.000000 CL=mpeg2/4/h264
[vf] [autorotate] (disabled)
[vf] [convert] 4096x2160 vaapi[nv12] bt.709/bt.709/bt.1886/limited/display SP=1.000000 CL=mpeg2/4/h264
[vf] [convert] (disabled)
[vf] [out] 4096x2160 vaapi[nv12] bt.709/bt.709/bt.1886/limited/display SP=1.000000 CL=mpeg2/4/h264
[cplayer] VO: [gpu] 4096x2160 vaapi[nv12]
[cplayer] VO: Description: Shader-based GPU Renderer
[vo/gpu] reconfig to 4096x2160 vaapi[nv12] 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: 1916x1010
[vo/gpu] Window size: 1916x1010
[vo/gpu] Video source: 4096x2160 (1:1)
[vo/gpu] Video display: (0, 0) 4096x2160 -> (0, 0) 1915x1010
[vo/gpu] Video scale: 0.467529/0.467593
[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
[vo/gpu] Testing FBO format rgba16f
[vo/gpu] Using FBO format rgba16f.
[vo/gpu] No advanced processing required. Enabling dumb mode.
[osd/libass] fontselect: (sans-serif, 400, 0) -> /usr/share/fonts/TTF/DejaVuSans.ttf, 0, DejaVuSans
[cplayer] first video frame after restart shown
[cplayer] playback restart complete
[vo/gpu/x11] Disabling screensaver.
[cplayer] EOF code: 5  
[vd] Uninit decoder.
[cplayer] finished playback, success (reason 3)
[cplayer] 
[cplayer] 
[cplayer] Exiting... (Quit)
[ytdl_hook] Exiting...
[stats] Exiting...
[osc] Exiting...
[vo/gpu/x11] Enabling screensaver.
[vo/gpu/x11] uninit ...

Offline

#11 2019-06-03 16:43:00

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 21,707

Re: [SOLVED] 4k videos slow and choppy

Glad to hear, please mark as [SOLVED] by editing the title in your first post.

https://wiki.archlinux.org/index.php/Co … ow_to_post

Offline

#12 2019-06-03 18:22:13

nomorewindows
Member
Registered: 2010-04-03
Posts: 3,362

Re: [SOLVED] 4k videos slow and choppy

4k videos play well on a 4k monitor, but if it's anything less it doesn't shove that bus through that hole big enough for a car.


I may have to CONSOLE you about your usage of ridiculously easy graphical interfaces...
Look ma, no mouse.

Offline

Board footer

Powered by FluxBB