You are not logged in.

#1 2025-03-25 03:14:42

sonichy
Member
Registered: 2023-08-15
Posts: 22

Video CPU usage high

B85 + i3-4130
Video 1080P
mpv: 40%
Edge: 70%
Firefox:  90%

Other Linux system cpu usage is about half.

Offline

#2 2025-03-25 08:51:57

Xephon
Member
Registered: 2024-12-22
Posts: 132

Re: Video CPU usage high

Provide the outputs of

vainfo
pacman -Q | grep -E 'libva|intel'

Offline

#3 2025-04-08 13:42:46

sonichy
Member
Registered: 2023-08-15
Posts: 22

Re: Video CPU usage high

After sudo pacman -S libva-intel-driver libvdpau-va-gl, seems better.

vainfo:
Trying display: wayland
Trying display: x11
vainfo: VA-API version: 1.22 (libva 2.22.0)
vainfo: Driver version: Intel i965 driver for Intel(R) Haswell - 2.4.1
vainfo: Supported profile and entrypoints
      VAProfileMPEG2Simple            :    VAEntrypointVLD
      VAProfileMPEG2Simple            :    VAEntrypointEncSlice
      VAProfileMPEG2Main              :    VAEntrypointVLD
      VAProfileMPEG2Main              :    VAEntrypointEncSlice
      VAProfileH264ConstrainedBaseline:    VAEntrypointVLD
      VAProfileH264ConstrainedBaseline:    VAEntrypointEncSlice
      VAProfileH264Main               :    VAEntrypointVLD
      VAProfileH264Main               :    VAEntrypointEncSlice
      VAProfileH264High               :    VAEntrypointVLD
      VAProfileH264High               :    VAEntrypointEncSlice
      VAProfileH264MultiviewHigh      :    VAEntrypointVLD
      VAProfileH264MultiviewHigh      :    VAEntrypointEncSlice
      VAProfileH264StereoHigh         :    VAEntrypointVLD
      VAProfileH264StereoHigh         :    VAEntrypointEncSlice
      VAProfileVC1Simple              :    VAEntrypointVLD
      VAProfileVC1Main                :    VAEntrypointVLD
      VAProfileVC1Advanced            :    VAEntrypointVLD
      VAProfileNone                   :    VAEntrypointVideoProc
      VAProfileJPEGBaseline           :    VAEntrypointVLD


pacman -Q | grep -E 'libva|intel':
intel-ucode 20250211-1
libva 2.22.0-1
libva-intel-driver 2.4.1-3
libva-utils 2.22.0-1

Last edited by sonichy (2025-04-08 14:13:38)

Offline

#4 2025-04-08 14:17:29

Xephon
Member
Registered: 2024-12-22
Posts: 132

Re: Video CPU usage high

Post output of

ls -l /dev/dri/renderD*

According to vainfo your iGPU only supports MPEG2, H264 and VC1 codecs.
For a browser you might need an extension like h264ify.

For mpv try --hwdec=auto option

Offline

#5 2025-04-09 13:40:17

sonichy
Member
Registered: 2023-08-15
Posts: 22

Re: Video CPU usage high

ls -l /dev/dri/renderD*
crw-rw-rw- 1 root render 226, 128  4月 9日 16:41 /dev/dri/renderD128

https://www.bilibili.com/, cpu is higher.

Last edited by sonichy (2025-04-09 13:44:21)

Offline

#6 2025-04-09 16:02:15

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

Re: Video CPU usage high

[BiliBili] Extracting URL: https://www.bilibili.com/video/BV1XadxYGEpB/?spm_id_from=333.1007.tianma.2-3-6.click
[BiliBili] 1XadxYGEpB: Downloading webpage
[BiliBili] BV1XadxYGEpB: Extracting videos in anthology
[BiliBili] BV1XadxYGEpB: Downloading wbi sign
[BiliBili] BV1XadxYGEpB: Downloading video formats for cid 29307439049
[BiliBili] Format(s) 1080P 高码率  are missing; you have to become a premium member to download them. Use --cookies-from-browser or --cookies for the authentication. See  https://github.com/yt-dlp/yt-dlp/wiki/FAQ#how-do-i-pass-cookies-to-yt-dlp  for how to manually pass cookies
[BiliBili] 114303239720678: Extracting chapters
[info] Available formats for BV1XadxYGEpB:
ID     EXT RESOLUTION FPS │   FILESIZE  TBR PROTO │ VCODEC         VBR ACODEC      ABR
──────────────────────────────────────────────────────────────────────────────────────
30216  m4a audio only     │ ≈  6.63MiB  40k https │ audio only         mp4a.40.5   40k
30232  m4a audio only     │ ≈ 12.67MiB  77k https │ audio only         mp4a.40.2   77k
30280  m4a audio only     │ ≈ 22.29MiB 136k https │ audio only         mp4a.40.2  136k
100046 mp4 640x360     30 │ ≈ 15.53MiB  94k https │ avc1.64001E    94k video only
30011  mp4 640x360     30 │ ≈ 18.15MiB 110k https │ hev1.1.6.L120 110k video only
100022 mp4 640x360     30 │ ≈ 17.15MiB 104k https │ av01.0.00M.10 104k video only
100047 mp4 852x480     30 │ ≈ 23.14MiB 141k https │ avc1.64001F   141k video only
30033  mp4 852x480     30 │ ≈ 26.09MiB 159k https │ hev1.1.6.L120 159k video only
100023 mp4 852x480     30 │ ≈ 24.44MiB 149k https │ av01.0.00M.10 149k video only
100048 mp4 1280x720    30 │ ≈ 45.44MiB 276k https │ avc1.640028   276k video only
30066  mp4 1280x720    30 │ ≈ 44.11MiB 268k https │ hev1.1.6.L120 268k video only
100024 mp4 1280x720    30 │ ≈ 38.81MiB 236k https │ av01.0.00M.10 236k video only
100050 mp4 1920x1080   30 │ ≈ 95.34MiB 580k https │ avc1.640032   580k video only
30077  mp4 1920x1080   30 │ ≈104.79MiB 637k https │ hev1.1.6.L150 637k video only
100026 mp4 1920x1080   30 │ ≈ 80.47MiB 489k https │ av01.0.00M.10 489k video only
xephon wrote:

For a browser you might need an extension like h264ify.

Or in any evet make sure the site doesn't feed you HEVC/H265

Edit:

mpv --ytdl-raw-options="format=100050+30280" 'https://www.bilibili.com/video/BV1XadxYGEpB/?spm_id_from=333.1007.tianma.2-3-6.click'

Last edited by seth (2025-04-09 16:06:52)

Offline

Board footer

Powered by FluxBB