Bug 1694651 - Video playback with VAAPI is broken since chromium-73.0.3683.75-1.fc30.x86_64
Summary: Video playback with VAAPI is broken since chromium-73.0.3683.75-1.fc30.x86_64
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: chromium
Version: 30
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Tom "spot" Callaway
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2019-04-01 10:42 UTC by František Zatloukal
Modified: 2019-08-19 14:15 UTC (History)
8 users (show)

Fixed In Version: chromium-75.0.3770.100-3.el7
Clone Of:
Environment:
Last Closed: 2019-08-01 02:21:32 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)
chromium-browser --log-level=0 --enable-logging=stderr --v=1 (450.24 KB, text/plain)
2019-04-02 08:35 UTC, František Zatloukal
no flags Details
about:gpu / Intel Corporation HD Graphics 620 (12.77 KB, text/plain)
2019-07-04 11:18 UTC, František Zatloukal
no flags Details
YouTube Performance Overlay - screenshot (1.78 MB, image/png)
2019-07-04 13:03 UTC, František Zatloukal
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Github intel intel-vaapi-driver issues 456 0 None open VP9 no longer plays on Chromium with Mesa 18.3.6, Kernel 5.0.7 and Coffee Lake 2020-05-12 17:57:48 UTC

Description František Zatloukal 2019-04-01 10:42:52 UTC
Description of problem:
Since chromium-73-*, video playback doesn't work if it's accelerated through VAAPI.

Version-Release number of selected component (if applicable):
chromium-73.0.3683.86-2.fc30.x86_64

How reproducible:
Always (might be hardware specific)

Steps to Reproduce:
1. Install chromium
2. Install vaapi driver for your platform - I've tested libva-intel-driver-2.3.0-2.fc29.x86_64
3. Play random video on youtube

Actual results:
Playing videos does not work unless you disable VAAPI.

Expected results:
Video playback should work even with VAAPI enabled.

Additional info:
I am testing it on T470s on random youtube videos, so vainfo outputs:
vainfo: VA-API version: 1.4 (libva 2.4.0)
vainfo: Driver version: Intel i965 driver for Intel(R) Kaby Lake - 2.3.0

On about:gpu, I have Video Decode: Hardware accelerated .
On about:media-internals, I see MojoVideoDecoder as video_decoder .

On about:media-internals, there are repeating messages when VAAPI is enabled:

pipeline_state	kSuspending
pipeline_state	kSuspended
event	SUSPENDED
pipeline_state	kResuming


I'd have tested H264/H265 playback, but that's not supported on Fedora Chromium build and I am not sure if installing chromium-libs-media-freeworld wouldn't invalidate the testing.

So I am testing it on VP9 videos on hardware that supports VP9 HW decoding.

Comment 1 Akarshan Biswas 2019-04-02 06:55:24 UTC
Only hardware accelerated VP9 decoding is broken and only on Intel GPUs. Can you please attach a log by running `chromium-browser --log-level=0 --enable-logging=stderr  --v=1 2>&1 | tee chromelog.log`?

Comment 2 František Zatloukal 2019-04-02 08:35:27 UTC
Created attachment 1550919 [details]
chromium-browser --log-level=0 --enable-logging=stderr  --v=1

Comment 3 František Zatloukal 2019-04-02 08:37:22 UTC
Log attached, I don't see anything suspicious there though :/

Last bunch of errors:
[1801:1801:0402/103325.334121:INFO:CONSOLE(0)] "Unchecked runtime.lastError: No current window", source: chrome-extension://jldhpllghnbhlbpcmnajkpdmadaolakh/background.html (0)

started to appear when I closed the chromium window but didn't kill the process yet.

Comment 4 Akarshan Biswas 2019-04-02 09:07:15 UTC
> I don't see anything suspicious there though

It was expected. We need to do a full debug build (https://chromium.googlesource.com/chromium/src/+/master/docs/linux_debugging.md). Unless we know the reason why it is failing, I can't open a bug report upstream. They will close it as not supported. On top of that I don't have an Intel GPU to test.

Comment 5 Gregory Khvatsky 2019-05-02 06:16:50 UTC
Broken on Coffee Lake as well. Interestingly, not broken on Bay Trail (CherryView in vainfo).

Comment 6 Arcadiy Ivanov 2019-05-03 19:52:15 UTC
https://github.com/intel/intel-vaapi-driver/issues/456

Not broken on Skylake either, but have also observed it being broken on Coffee Lake. 

I'm using chromium-vaapi vs chromium-browser though.

Comment 7 Nils Philippsen 2019-05-15 21:50:26 UTC
Similar here, not broken on Skylake, but broken on Gemini Lake.

Comment 8 Akarshan Biswas 2019-06-08 16:06:11 UTC
@Tom , I think we need to disable vaapi. I am hearing reports that 75 just broke h.264 acceleration on some Intel GPUs. 


For everyone else who need video acceleration may use chromium-vaapi from RPMFusion. We should keep the official package out of this mess.

I seriously don't know what upstream is doing.

Comment 9 Fedora Update System 2019-06-28 14:10:14 UTC
FEDORA-EPEL-2019-b94f559810 has been submitted as an update to Fedora EPEL 7. https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2019-b94f559810

Comment 10 Fedora Update System 2019-06-28 18:38:16 UTC
chromium-75.0.3770.100-2.el7 has been pushed to the Fedora EPEL 7 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2019-b94f559810

Comment 11 Akarshan Biswas 2019-07-04 07:37:24 UTC
I request everyone to test and report vaapi playback from latest chromium-vaapi in RPMFusion testing.

Comment 12 František Zatloukal 2019-07-04 08:23:50 UTC
(In reply to Akarshan Biswas from comment #11)
> I request everyone to test and report vaapi playback from latest
> chromium-vaapi in RPMFusion testing.

So, video playback in chromium-vaapi-75.0.3770.100-2.fc30.x86_64 works, but it's *not* hardware accelerated. Is it necessary to change any settings in about:flags? I see "Hardware-accelerated video decode" as enabled.

Comment 13 Akarshan Biswas 2019-07-04 10:01:49 UTC
(In reply to František Zatloukal from comment #12)
> (In reply to Akarshan Biswas from comment #11)
> > I request everyone to test and report vaapi playback from latest
> > chromium-vaapi in RPMFusion testing.
> 
> So, video playback in chromium-vaapi-75.0.3770.100-2.fc30.x86_64 works, but
> it's *not* hardware accelerated. Is it necessary to change any settings in
> about:flags? I see "Hardware-accelerated video decode" as enabled.

Share your chrome://gpu

Comment 14 František Zatloukal 2019-07-04 11:18:53 UTC
Created attachment 1587362 [details]
about:gpu / Intel Corporation HD Graphics 620

Comment 15 Akarshan Biswas 2019-07-04 12:51:04 UTC
(In reply to František Zatloukal from comment #14)
> Created attachment 1587362 [details]
> about:gpu / Intel Corporation HD Graphics 620

Everything is fine. video is hardware accelerated if it's supported by your GPU. I found no such errors.

Comment 16 František Zatloukal 2019-07-04 13:01:31 UTC
I am doing tests on youtube videos, so VP9. It is supported by my gpu (tested also in VLC) :

$ vainfo | grep VP9
libva info: VA-API version 1.4.1
libva info: va_getDriverName() returns 0
libva info: Trying to open /usr/lib64/dri/i965_drv_video.so
libva info: Found init function __vaDriverInit_1_4
libva info: va_openDriver() returns 0
      VAProfileVP9Profile0            :	VAEntrypointVLD
      VAProfileVP9Profile0            :	VAEntrypointEncSlice
      VAProfileVP9Profile2            :	VAEntrypointVLD

But I am still getting ton of dropped frames and CPU utilization reaching almost 100% while watching random 4k/60fps content on youtube. I'll attach screenshot shortly with stats overlay on yt.

Comment 17 František Zatloukal 2019-07-04 13:03:30 UTC
Created attachment 1587373 [details]
YouTube Performance Overlay - screenshot

Comment 18 Akarshan Biswas 2019-07-04 14:17:36 UTC
Can you switch (In reply to František Zatloukal from comment #17)
> Created attachment 1587373 [details]
> YouTube Performance Overlay - screenshot

Can you switch to iHD driver?

Comment 19 František Zatloukal 2019-07-07 17:10:29 UTC
(In reply to Akarshan Biswas from comment #18)
> Can you switch (In reply to František Zatloukal from comment #17)
> > Created attachment 1587373 [details]
> > YouTube Performance Overlay - screenshot
> 
> Can you switch to iHD driver?

Okay, launching chromium-vaapi with ihd driver fixed the performance problem.

So with chromium-vaapi-75.0.3770.100-2.fc30.x86_64 , launched with LIBVA_DRIVER_NAME=iHD chromium-vaapi , video playback works just fine and is HW accelerated.

I guess there isn't an easy way for an app to prefer the ihd driver over the legacy one on supported platforms?

Anyway, thanks!

Comment 20 Akarshan Biswas 2019-07-07 17:14:02 UTC
(In reply to František Zatloukal from comment #19)
> (In reply to Akarshan Biswas from comment #18)
> > Can you switch (In reply to František Zatloukal from comment #17)
> > > Created attachment 1587373 [details]
> > > YouTube Performance Overlay - screenshot
> > 
> > Can you switch to iHD driver?
> 
> Okay, launching chromium-vaapi with ihd driver fixed the performance problem.
> 
> So with chromium-vaapi-75.0.3770.100-2.fc30.x86_64 , launched with
> LIBVA_DRIVER_NAME=iHD chromium-vaapi , video playback works just fine and is
> HW accelerated.
> 
> I guess there isn't an easy way for an app to prefer the ihd driver over the
> legacy one on supported platforms?
> 
> Anyway, thanks!

Put this in /etc/profile

`export LIBVA_DRIVER_NAME=ihd`

Comment 21 Fedora Update System 2019-07-16 14:52:07 UTC
FEDORA-EPEL-2019-931a6c5c69 has been submitted as an update to Fedora EPEL 7. https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2019-931a6c5c69

Comment 22 Fedora Update System 2019-07-17 00:12:18 UTC
chromium-75.0.3770.100-3.el7 has been pushed to the Fedora EPEL 7 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2019-931a6c5c69

Comment 23 Fedora Update System 2019-08-01 02:21:32 UTC
chromium-75.0.3770.100-3.el7 has been pushed to the Fedora EPEL 7 stable repository. If problems still persist, please make note of it in this bug report.

Comment 24 František Zatloukal 2019-08-19 14:15:10 UTC
(In reply to Akarshan Biswas from comment #20)
> Put this in /etc/profile
> 
> `export LIBVA_DRIVER_NAME=ihd`

Yeah, I've meant if it cannot be done in the package itself?


Note You need to log in before you can comment on or make changes to this bug.