<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.kde.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugs.kde.org/"
          
          maintainer="sysadmin@kde.org"
>

    <bug>
          <bug_id>492844</bug_id>
          
          <creation_ts>2024-09-08 21:43:46 +0000</creation_ts>
          <short_desc>Implement GPU-accelerated VP9 encoding</short_desc>
          <delta_ts>2025-12-10 17:01:24 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>3</classification_id>
          <classification>Frameworks and Libraries</classification>
          <product>KPipeWire</product>
          <component>general</component>
          <version>6.1.4</version>
          <rep_platform>Fedora RPMs</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>CONFIRMED</bug_status>
          <resolution></resolution>
          
          <see_also>https://bugs.kde.org/show_bug.cgi?id=488896</see_also>
    
    <see_also>https://bugs.kde.org/show_bug.cgi?id=500434</see_also>
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>NOR</priority>
          <bug_severity>wishlist</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Francis John Baldon">fjbaldon</reporter>
          <assigned_to name="Plasma Bugs List">plasma-bugs-null</assigned_to>
          <cc>aleixpol</cc>
    
    <cc>correosinuso23</cc>
    
    <cc>dion</cc>
    
    <cc>kde</cc>
    
    <cc>me</cc>
    
    <cc>nate</cc>
    
    <cc>noahadvs</cc>
    
    <cc>postix</cc>
          
          <cf_commitlink></cf_commitlink>
          <cf_versionfixedin></cf_versionfixedin>
          <cf_sentryurl></cf_sentryurl>
          <votes>0</votes>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>2352414</commentid>
    <comment_count>0</comment_count>
      <attachid>173459</attachid>
    <who name="Francis John Baldon">fjbaldon</who>
    <bug_when>2024-09-08 21:43:46 +0000</bug_when>
    <thetext>Created attachment 173459
output from vainfo

SUMMARY
Attached is an output from vainfo. I&apos;m having high cpu usage when I do webm/vp9 screen recording on spectacle. The default format is webm/vp9 and when I switch to mp4/h.264, cpu usage drastically decreases. I&apos;m also seeing activity on the Video row when I&apos;m using mp4/h.264 but nothing on webm/vp9. I have this line on my vainfo output so I assume I can encode vp9 on my igpu: &quot;VAProfileVP9Profile0: VAEntrypointEncSlice&quot;

STEPS TO REPRODUCE
1. Screen record using Spectacle (Wayland)
2. Use System Monitor or intel_gpu_top to monitor cpu and gpu usage
3. Spectacle does not offload its encoding to the gpu, instead it uses only the cpu

OBSERVED RESULT
Spectacle does not use the gpu when encoding the video

EXPECTED RESULT
Spectacle uses the gpu when encoding the video

SOFTWARE/OS VERSIONS
Windows: 
macOS: 
(available in the Info Center app, or by running `kinfo` in a terminal window)
Linux/KDE Plasma: Fedora Linux 40
KDE Plasma Version: 6.1.4
KDE Frameworks Version: 6.5.0
Qt Version: 6.7.2

ADDITIONAL INFORMATION</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2352749</commentid>
    <comment_count>1</comment_count>
    <who name="Noah Davis">noahadvs</who>
    <bug_when>2024-09-10 07:20:53 +0000</bug_when>
    <thetext>I actually have a patch to add GPU accelerated VP9 encoding to KPipeWire (the library Spectacle uses for recording), but the problem is I don&apos;t have any way to test it. If you&apos;re willing and able to test that the patch works, we could merge it. https://invent.kde.org/plasma/kpipewire/-/merge_requests/91</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2353034</commentid>
    <comment_count>2</comment_count>
    <who name="Francis John Baldon">fjbaldon</who>
    <bug_when>2024-09-11 10:13:01 +0000</bug_when>
    <thetext>After using libva-intel-driver for days, I&apos;m not sure now if the bug is caused by Spectacle solely. As I&apos;ve noticed, even chromium now doesn&apos;t do vp9 decoding, so this might be a driver issue.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2475913</commentid>
    <comment_count>3</comment_count>
    <who name="Nate Graham">nate</who>
    <bug_when>2025-12-10 17:01:24 +0000</bug_when>
    <thetext>*** Bug 513166 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>173459</attachid>
            <date>2024-09-08 21:43:46 +0000</date>
            <delta_ts>2024-09-08 21:43:46 +0000</delta_ts>
            <desc>output from vainfo</desc>
            <filename>a1fcd67b.txt</filename>
            <type>text/plain</type>
            <size>2082</size>
            <attacher name="Francis John Baldon">fjbaldon</attacher>
            
              <data encoding="base64">VHJ5aW5nIGRpc3BsYXk6IHdheWxhbmQKdmFpbmZvOiBWQS1BUEkgdmVyc2lvbjogMS4yMSAobGli
dmEgMi4yMS4wKQp2YWluZm86IERyaXZlciB2ZXJzaW9uOiBJbnRlbCBpOTY1IGRyaXZlciBmb3Ig
SW50ZWwoUikgS2FieSBMYWtlIC0gMi40LjAucHJlMSAoMi40LjAucHJlMSkKdmFpbmZvOiBTdXBw
b3J0ZWQgcHJvZmlsZSBhbmQgZW50cnlwb2ludHMKICAgICAgVkFQcm9maWxlTVBFRzJTaW1wbGUg
ICAgICAgICAgICA6CVZBRW50cnlwb2ludFZMRAogICAgICBWQVByb2ZpbGVNUEVHMlNpbXBsZSAg
ICAgICAgICAgIDoJVkFFbnRyeXBvaW50RW5jU2xpY2UKICAgICAgVkFQcm9maWxlTVBFRzJNYWlu
ICAgICAgICAgICAgICA6CVZBRW50cnlwb2ludFZMRAogICAgICBWQVByb2ZpbGVNUEVHMk1haW4g
ICAgICAgICAgICAgIDoJVkFFbnRyeXBvaW50RW5jU2xpY2UKICAgICAgVkFQcm9maWxlSDI2NENv
bnN0cmFpbmVkQmFzZWxpbmU6CVZBRW50cnlwb2ludFZMRAogICAgICBWQVByb2ZpbGVIMjY0Q29u
c3RyYWluZWRCYXNlbGluZToJVkFFbnRyeXBvaW50RW5jU2xpY2UKICAgICAgVkFQcm9maWxlSDI2
NENvbnN0cmFpbmVkQmFzZWxpbmU6CVZBRW50cnlwb2ludEVuY1NsaWNlTFAKICAgICAgVkFQcm9m
aWxlSDI2NE1haW4gICAgICAgICAgICAgICA6CVZBRW50cnlwb2ludFZMRAogICAgICBWQVByb2Zp
bGVIMjY0TWFpbiAgICAgICAgICAgICAgIDoJVkFFbnRyeXBvaW50RW5jU2xpY2UKICAgICAgVkFQ
cm9maWxlSDI2NE1haW4gICAgICAgICAgICAgICA6CVZBRW50cnlwb2ludEVuY1NsaWNlTFAKICAg
ICAgVkFQcm9maWxlSDI2NEhpZ2ggICAgICAgICAgICAgICA6CVZBRW50cnlwb2ludFZMRAogICAg
ICBWQVByb2ZpbGVIMjY0SGlnaCAgICAgICAgICAgICAgIDoJVkFFbnRyeXBvaW50RW5jU2xpY2UK
ICAgICAgVkFQcm9maWxlSDI2NEhpZ2ggICAgICAgICAgICAgICA6CVZBRW50cnlwb2ludEVuY1Ns
aWNlTFAKICAgICAgVkFQcm9maWxlSDI2NE11bHRpdmlld0hpZ2ggICAgICA6CVZBRW50cnlwb2lu
dFZMRAogICAgICBWQVByb2ZpbGVIMjY0TXVsdGl2aWV3SGlnaCAgICAgIDoJVkFFbnRyeXBvaW50
RW5jU2xpY2UKICAgICAgVkFQcm9maWxlSDI2NFN0ZXJlb0hpZ2ggICAgICAgICA6CVZBRW50cnlw
b2ludFZMRAogICAgICBWQVByb2ZpbGVIMjY0U3RlcmVvSGlnaCAgICAgICAgIDoJVkFFbnRyeXBv
aW50RW5jU2xpY2UKICAgICAgVkFQcm9maWxlVkMxU2ltcGxlICAgICAgICAgICAgICA6CVZBRW50
cnlwb2ludFZMRAogICAgICBWQVByb2ZpbGVWQzFNYWluICAgICAgICAgICAgICAgIDoJVkFFbnRy
eXBvaW50VkxECiAgICAgIFZBUHJvZmlsZVZDMUFkdmFuY2VkICAgICAgICAgICAgOglWQUVudHJ5
cG9pbnRWTEQKICAgICAgVkFQcm9maWxlTm9uZSAgICAgICAgICAgICAgICAgICA6CVZBRW50cnlw
b2ludFZpZGVvUHJvYwogICAgICBWQVByb2ZpbGVKUEVHQmFzZWxpbmUgICAgICAgICAgIDoJVkFF
bnRyeXBvaW50VkxECiAgICAgIFZBUHJvZmlsZUpQRUdCYXNlbGluZSAgICAgICAgICAgOglWQUVu
dHJ5cG9pbnRFbmNQaWN0dXJlCiAgICAgIFZBUHJvZmlsZVZQOFZlcnNpb24wXzMgICAgICAgICAg
OglWQUVudHJ5cG9pbnRWTEQKICAgICAgVkFQcm9maWxlVlA4VmVyc2lvbjBfMyAgICAgICAgICA6
CVZBRW50cnlwb2ludEVuY1NsaWNlCiAgICAgIFZBUHJvZmlsZUhFVkNNYWluICAgICAgICAgICAg
ICAgOglWQUVudHJ5cG9pbnRWTEQKICAgICAgVkFQcm9maWxlSEVWQ01haW4gICAgICAgICAgICAg
ICA6CVZBRW50cnlwb2ludEVuY1NsaWNlCiAgICAgIFZBUHJvZmlsZUhFVkNNYWluMTAgICAgICAg
ICAgICAgOglWQUVudHJ5cG9pbnRWTEQKICAgICAgVkFQcm9maWxlSEVWQ01haW4xMCAgICAgICAg
ICAgICA6CVZBRW50cnlwb2ludEVuY1NsaWNlCiAgICAgIFZBUHJvZmlsZVZQOVByb2ZpbGUwICAg
ICAgICAgICAgOglWQUVudHJ5cG9pbnRWTEQKICAgICAgVkFQcm9maWxlVlA5UHJvZmlsZTAgICAg
ICAgICAgICA6CVZBRW50cnlwb2ludEVuY1NsaWNlCiAgICAgIFZBUHJvZmlsZVZQOVByb2ZpbGUy
ICAgICAgICAgICAgOglWQUVudHJ5cG9pbnRWTEQK
</data>

          </attachment>
      

    </bug>

</bugzilla>