You are not logged in.

#1 2019-08-12 16:03:47

sooqua
Member
Registered: 2014-11-11
Posts: 14

Paused videos turn black after a few seconds (HW-accelerated Chromium)

Paused videos turn black a few seconds after they're paused.
Card: NVIDIA Quadro K1100M

Packages installed:
NVIDIA drivers
libva-vdpau-driver-chromium VDPAU backend for VA-API, patched to work with Chromium
chromium-vaapi-bin Chromium with VA-API support to enable hardware acceleration, pre-compiled

This is my chromium-flags.conf

--ignore-gpu-blacklist
--enable-gpu-rasterization
--enable-native-gpu-memory-buffers
--enable-zero-copy
--enable-accelerated-mjpeg-decode
--enable-accelerated-video
--disable-gpu-driver-bug-workarounds

Removing any of the flags doesn't fix the issue, except for --ignore-gpu-blacklist, but that disables hardware acceleration altogether.
Any help would be appreciated.

Offline

#2 2019-08-12 16:05:16

sooqua
Member
Registered: 2014-11-11
Posts: 14

Re: Paused videos turn black after a few seconds (HW-accelerated Chromium)

I suspected some power-saving mechanism, so I set "Preferred Mode" to Maximum Performance in PowerMizer, but that didn't work either.

Offline

#3 2019-08-24 12:53:03

sooqua
Member
Registered: 2014-11-11
Posts: 14

Re: Paused videos turn black after a few seconds (HW-accelerated Chromium)

I get this error in the console if Chromium is started from a terminal emulator:

Failed to create dedicated X11 display!

Every time I unpause a video.

Offline

#4 2019-08-24 15:34:21

cirrus
Member
From: Glasgow Scotland
Registered: 2012-08-24
Posts: 331
Website

Re: Paused videos turn black after a few seconds (HW-accelerated Chromium)

Offline

#5 2019-08-26 15:10:04

svito
Member
From: Ukraine
Registered: 2018-12-25
Posts: 18

Re: Paused videos turn black after a few seconds (HW-accelerated Chromium)

This is mobile video card, so you probably have Optimus, and can use Intel GPU and Intel drivers. See NVIDIA Optimus and Hardware video acceleration on the wiki.

Last edited by svito (2019-08-26 15:15:31)

Offline

#6 2019-08-26 16:13:03

sooqua
Member
Registered: 2014-11-11
Posts: 14

Re: Paused videos turn black after a few seconds (HW-accelerated Chromium)

I've had a very bad time trying to get NVIDIA card to work for the past 3 months, and Xorg is finally not crashing. Besides, the CPU usage is very high when watching videos, so switching to CPU is not the best option - if that's what you meant, because that's what is written on the NVIDIA Optimus link. Also I've got a Windows 10 on this laptop and I would like it to use its full Optimus support as before and not disable one of the cards in the BIOS.

Offline

#7 2019-08-26 17:25:35

svito
Member
From: Ukraine
Registered: 2018-12-25
Posts: 18

Re: Paused videos turn black after a few seconds (HW-accelerated Chromium)

Your Intel CPU has Intel GPU chip on it and in addition integrated circuit dedicated to video decoding, both of which less power-demanding than switching on NVIDIA GPU. Using NVIDIA GPU is only better for more GPU demanding games. I suggest you use bumblebee, which disables NVIDIA GPU when you boot. You could still use it with either primusrun(works with your Intel-run desktop session) or nvidia-xrun(better performance, but has to be run as separate session), both of which work with bbswitch and enable/disable NVIDIA GPU depending if program or whole session that uses it is still running.

This all does not require you to disable NVIDIA card in BIOS and should not affect your Windows installation.

Last edited by svito (2019-08-26 17:28:45)

Offline

#8 2019-08-28 18:37:42

sooqua
Member
Registered: 2014-11-11
Posts: 14

Re: Paused videos turn black after a few seconds (HW-accelerated Chromium)

I recompiled Chromium without vaapi-fix.patch as was adviced here, but couldn't get HW accel to work so I reinstalled chromium-vaapi-bin and right now the issue is gone, even if I restart Chromium. I have no idea what happened, but I hope this will continue to work after reboot.

Offline

#9 2019-08-28 20:12:31

sooqua
Member
Registered: 2014-11-11
Posts: 14

Re: Paused videos turn black after a few seconds (HW-accelerated Chromium)

Oh, nope, it's the extension I wrote and forgot about that sets .currentTime = .currentTime on all paused videos. A workaround.

Offline

Board footer

Powered by FluxBB