You are not logged in.

#1 2019-10-10 06:04:04

demondog
Member
Registered: 2019-10-10
Posts: 8

[SOLVED] Crazy CPU Usage in MPV and Video Streaming from Firefox

Thinkpad X1c 6th gen i7

Been running Arch for a few months now with few problems that I haven't been able to solve on my own except this. Video being played from pretty much any source ramps my CPU up to at least 70-100% and I just tested running top while watching a 4K youtube video and saw it peak at 362.3% CPU usage (!!). I also had to hang up on a video call earlier today because my CPU was reaching temperatures of around 95C.

I have installed both the "intel-media-driver" and the "libva-intel-driver" to attempt to enable hardware acceleration. I also have "intel-ucode" installed.

My output of vainfo is as follows (sorry the formatting is all messed up)

     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

Ive also tried going into the Firefox "about:config" page and enabling the hardware video acceleration option manually. It made no difference.

I'll occasionally see "GPU proccess" and "RDD process" pop up on top after installing the intel drivers i listed above which suggests that theyre working however I see no difference in CPU usage.

various things I found in log files that may be of interest...
Dmesg:
[drm:intel_dp_start_link_train [i915]] *ERROR* failed to enable link training

Xorg log:
(II) modeset(0): glamor X acceleration enabled on Mesa DRI Intel(R) UHD Graphics 620 (Kabylake GT2)


Please let me know if there is anymore relevant information that I can provide.

Last edited by demondog (2019-10-15 01:44:16)

Offline

#2 2019-10-10 07:31:25

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

Re: [SOLVED] Crazy CPU Usage in MPV and Video Streaming from Firefox

Try the LTS kernel, there have been some reports with issues and specific intel GPUs

Online

#3 2019-10-10 23:42:41

demondog
Member
Registered: 2019-10-10
Posts: 8

Re: [SOLVED] Crazy CPU Usage in MPV and Video Streaming from Firefox

Just got home from class and tried switching to the LTS kernel. At first It seemed it was working. I ran a youtube video through MPV and I saw "GPU Process" pop up on top with MPV using only 30% CPU but after rebooting I tried again doing the real test with a 4K video and hit a new record with top reporing over 560% CPU usage... Its worth noting that when watching the 4K video there was no "GPU Process" running.

Offline

#4 2019-10-11 08:34:48

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

Re: [SOLVED] Crazy CPU Usage in MPV and Video Streaming from Firefox

This depends on a few more factors, Firefox doesn't implement hardware accelerated decoding at all, and it's likely that the 4k video was not of the correct format, or a general output limitation for GPU decoding and your particular hardware.

FWIW according to https://github.com/intel/media-driver/b … resolution Kaby Lake should in general be capable enough for most formats, did you ensure to export the LBVA_DRIVER_NAME variable properly? https://wiki.archlinux.org/index.php/Ha … ing_VA-API

Online

#5 2019-10-15 01:42:10

demondog
Member
Registered: 2019-10-10
Posts: 8

Re: [SOLVED] Crazy CPU Usage in MPV and Video Streaming from Firefox

I finally fixed it and reduced CPU usage down to 10-30% by installing ffmpeg and some other libva packages in combination with the LTS kernel. Thanks for the help V1del! Now I can finally watch youtube videos and Skype on my $1k quad core i7 machine lol.

Offline

Board footer

Powered by FluxBB