Create an account


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Fedora - Chromium on Fedora finally gets VAAPI support!

#1
Chromium on Fedora finally gets VAAPI support!

<div style="margin: 5px 5% 10px 5%;"><img src="http://www.sickgaming.net/blog/wp-content/uploads/2019/01/chromium-on-fedora-finally-gets-vaapi-support.png" width="300" height="137" title="" alt="" /></div><div><p>Do you like playing videos in your web browser? Well, good news, the Chromium web browser available in Fedora gets a Video Acceleration API support. That makes video playback much smoother while using significantly less resources.</p>
<h2>A little bit of history</h2>
<p>Chromium with a VAAPI patch was already available on other distributions. But this was not the case with Fedora. I really want hardware acceleration. But my love for Fedora was holding me back. Then with sheer willpower, I joined Fedora and started maintaining a package in COPR.</p>
<p>I am not really a distro hopper but a DE hopper. I usually jump from Gnome to KDE and vice versa depending upon my mood. Then I started maintaining Chromium with vaapi patch on COPR. I was using the official patch which was submitted <a href="https://chromium-review.googlesource.com/c/chromium/src/+/532294">upstream</a> for code review. I had very little hope that it will get merge. The patch is outdated and and try jobs were failing at that time.</p>
<p>After six months, the Chromium upstream maintainers made a statement that they are <a href="https://bugs.chromium.org/p/chromium/issues/detail?id=463440#c65">not interested to include this patch</a>. So after that I started working on my own patch with referenced from the official patch. My patch is about using the existing flags that other operating system uses instead of creating a new flag just for experimentation.</p>
<div id="attachment_23898" style="width: 584px" class="wp-caption aligncenter"><img class="wp-image-23898 " src="http://www.sickgaming.net/blog/wp-content/uploads/2019/01/chromium-on-fedora-finally-gets-vaapi-support.png" alt="screenshot showing chromium uses video engine" width="574" height="262" /></p>
<p class="wp-caption-text">Chromium uses AMDGPU’s UVD engine while playing a video</p>
</div>
<div id="attachment_23896" style="width: 636px" class="wp-caption aligncenter"><img class="wp-image-23896" src="http://www.sickgaming.net/blog/wp-content/uploads/2019/01/chromium-on-fedora-finally-gets-vaapi-support-1.png" alt="chromium's flag screenshot" width="626" height="213" /></p>
<p class="wp-caption-text">Chromium uses Existing flags on Fedora</p>
</div>
<h2>Effects of the VAAPI patch</h2>
<p>Chromium with this patch was extremely stable on both of my machines. They both have AMD GPU. The video playback is smooth. This improved overall power savings as well.</p>
<div id="attachment_23897" style="width: 597px" class="wp-caption aligncenter"><img class="wp-image-23897" src="http://www.sickgaming.net/blog/wp-content/uploads/2019/01/chromium-on-fedora-finally-gets-vaapi-support.jpg" alt="Comparision with/without vaapi" width="587" height="282" /></p>
<p class="wp-caption-text">Credits: Tobias Wolfshappen</p>
</div>
<p>As you can see, chromium with the vaapi patch takes up significantly less resources in comparison to chromium without the patch and Firefox.  The CPU usage went down from 120% to 10%. The playback is smooth with no shuttering.</p>
<h2>VA-API patch in chromium for Fedora</h2>
<p>It was then Fedora’s Engineering Manager @ Red Hat and Chromium maintainer, <a href="https://fedoraproject.org/wiki/User:Spot">Tom Callaway, </a>finally recognises the VAAPI patch and <a href="https://src.fedoraproject.org/rpms/chromium/c/278c62709d1dba5883c3b69047706837bb402bd7?branch=master">decides</a> to include in Fedora’s Chromium browser. Fedora becomes the second distribution to include the VAAPI patch in their official Chromium package.</p>
</div>
Reply



Possibly Related Threads…
Thread Author Replies Views Last Post
  Fedora - Contribute to Fedora 39 Upgrade, Virtualization, and Cloud Test Day xSicKxBot 0 2,127 09-30-2023, 03:56 AM
Last Post: xSicKxBot
  Fedora - Share your game achievements with Gamerzilla xSicKxBot 0 1,074 09-27-2023, 09:59 AM
Last Post: xSicKxBot
  Fedora - Using Cockpit to graphically manage systems, without installing Cockpit on xSicKxBot 0 949 09-26-2023, 06:41 AM
Last Post: xSicKxBot
  Fedora - Announcing Fedora Linux 39 Beta xSicKxBot 0 979 09-20-2023, 09:48 AM
Last Post: xSicKxBot
  Fedora - Contribute at Passkey Auth, Fedora CoreOS and IoT Test Week xSicKxBot 0 961 09-19-2023, 12:23 PM
Last Post: xSicKxBot
  Fedora - Quick Fedora shirt update and sale of last stock with the old logo xSicKxBot 0 1,030 09-16-2023, 12:28 PM
Last Post: xSicKxBot
  Fedora - Contribute at the Fedora Linux Test Week for Kernel 6.5 and Toolbx Test Day xSicKxBot 0 1,022 09-11-2023, 02:47 PM
Last Post: xSicKxBot
  Fedora - Fedora Linux Flatpak cool apps to try for September xSicKxBot 0 993 09-10-2023, 04:59 PM
Last Post: xSicKxBot
  Fedora - Contribute at the Test Week for the Anaconda WebUI Installer for Fedora Wor xSicKxBot 0 994 09-09-2023, 11:54 PM
Last Post: xSicKxBot
  Fedora - Docs workshop: Virtually writing together xSicKxBot 0 1,028 09-09-2023, 05:08 AM
Last Post: xSicKxBot

Forum Jump:


Users browsing this thread:
1 Guest(s)

Forum software by © MyBB Theme © iAndrew 2016