Page 3 of 5 FirstFirst 12345 LastLast
Results 21 to 30 of 46

Thread: Nvidia / GPU Video Acceleration

  1. #21
    Join Date
    Feb 2009
    Location
    Wasilla, Alaska
    Beans
    543
    Distro
    Kubuntu

    Re: Nvidia / GPU Video Acceleration

    Quote Originally Posted by Yellow Pasque View Post
    *Shrug* Don't know what else to tell you. Maybe the VA-API -> VDPAU wrapper is inefficient and not worth it (or even counterproductive) for H.264 with a modern CPU. It hasn't been touched in almost a decade: https://github.com/freedesktop/vdpau-driver
    I agree with you. Looks like this "old hardware" is being left in the dust.

    Most of the streaming services (YouTube / Stadia / GeForce Now / XCloud) all still support H.264 for Legacy equipment. But their primary feeds are all VP9. I understand that VP9 offers better compression, higher quality/resolution, etc... But I'd like to give a huge thanks to these companies that still offer support for H.264.

    I'd still like to figure out how to get this to work. Or at least why Google doesn't even add support for this in their OWN BROWSER?!
    Holy Cripes on Toast!
    Attention is the currency of internet forums. - ticopelp

  2. #22
    Join Date
    Jun 2007
    Beans
    14,485

    Re: Nvidia / GPU Video Acceleration

    Quote Originally Posted by Shibblet View Post
    Or at least why Google doesn't even add support for this in their OWN BROWSER?!
    It's not Google's fault. It comes down to Nvidia not supporting VA-API properly, and maybe the devs who wrote the hardware decode accel code insisting on VA-API, when VDPAU would have been better.

  3. #23
    Join Date
    Aug 2013
    Beans
    4,713

    Re: Nvidia / GPU Video Acceleration

    Quote Originally Posted by Shibblet View Post
    I should show you this...
    https://ubuntuforums.org/showthread.php?t=2464112



    1. Got it. Done.
    2. Also done.
    3. There is an extension called "Stadia Enhanced" that will allow you to force H.264. It unfortunately uses H.264, but doesn't seem as if it uses Hardware Acceleration at all.

    I'll harken back to this post in this thread...
    So if you can somehow get vaapi to work on Nvidia then there is some good news for you
    https://askubuntu.com/questions/1291...e-acceleration

    I followed these steps to enable vaapi decoding on Firefox on and use the h264fy addon and get it working on an old Toshiba netbook with Ubuntu20.04. I managed to cut cpu usage in half for Youtube on FF.

    How do you get vaapi to work on Nvidia? (Chromium and Firefox both use vaapi for hardware decoding) AFAIK you can you a vaapi backend for vdpau in non Navidia hardware via libvdpau-gl1, but I don't know of any method for the other way around.

    Edited: Ok use the vdapu-va-driver to run vaapi on Nvidia But this is not in Ubuntu 20.04's repo, it can be installed from the chromium dev ppa.
    Last edited by monkeybrain20122; July 5th, 2021 at 07:53 AM.

  4. #24
    Join Date
    Aug 2013
    Beans
    4,713

    Re: Nvidia / GPU Video Acceleration

    More info for enabling vaapi on Firefox, there were some videos that the method above didn't work, but they all work now with the additional editing of about:config in this post, I think setting media.rdd-vpx.enabled to false drastically cuts down cpu usage on some videos that despite neither hd nor full of actions (just some guy talking) but consume a lot of cpu
    https://discourse.ubuntu.com/t/enabl...tu-21-04/22081

    Actually the last step on the askuuntu thread from my last post didn't work for me (editing the .desktop file by editing ,desktop file to changeto EXC=env MOZ_X11_EGL=1 firefox) Neither did putting export MOZ_X11_EGL=1 in .profile. So I am not sure if MOZ_X11_EGL is an environmental variable or an option to start firefox.

    But the following works and is probably more elegant than creating an edited desktop file in .local/share/applications.

    Create a script called firefox and place it in $HOME/bin and make it executable, it will override /usr/bin/firefox when firefox is invoked, either from terminal or by launching from .desktop file (if $HOME/bin does not exist, create it, logout and login again for it to take effect)

    The firefox script is just

    Code:
    #!/bin/bash
    
    MOZ_X11_EGL=1 /usr/bin/firefox "$@"

  5. #25
    Join Date
    Feb 2009
    Location
    Wasilla, Alaska
    Beans
    543
    Distro
    Kubuntu

    Re: Nvidia / GPU Video Acceleration

    Quote Originally Posted by Yellow Pasque View Post
    It's not Google's fault. It comes down to Nvidia not supporting VA-API properly, and maybe the devs who wrote the hardware decode accel code insisting on VA-API, when VDPAU would have been better.
    As much as I don't like that answer... I do actually want to believe that. However, I have a Chromebook that seems to have Hardware Acceleration built in, that works flawlessly in YouTube, Stadia, XCloud, and GeForce Now. So, that's a hard pill to swallow for me.

    Having said that, the Chromebook does Hardware Acceleration with VP9... and I don't think I've tested it with H.264.

    Either way, VP9 Acceleration (on a Core-M3) works AMAZINGLY with all of these services. It just seems strange that H.264 Acceleration doesn't work AT ALL on a Core i7-3770 or GTX 780ti.
    Holy Cripes on Toast!
    Attention is the currency of internet forums. - ticopelp

  6. #26
    Join Date
    Aug 2013
    Beans
    4,713

    Re: Nvidia / GPU Video Acceleration

    Quote Originally Posted by Shibblet View Post
    As much as I don't like that answer... I do actually want to believe that. However, I have a Chromebook that seems to have Hardware Acceleration built in, that works flawlessly in YouTube, Stadia, XCloud, and GeForce Now. So, that's a hard pill to swallow for me.

    Having said that, the Chromebook does Hardware Acceleration with VP9... and I don't think I've tested it with H.264.

    Either way, VP9 Acceleration (on a Core-M3) works AMAZINGLY with all of these services. It just seems strange that H.264 Acceleration doesn't work AT ALL on a Core i7-3770 or GTX 780ti.
    Try this https://github.com/xtknight/vdpau-va-driver-vp9

    I tested it with chromium 9.1.0 from the beta ppa https://launchpad.net/~saiarcot895/+.../chromium-beta (not worked with 9.2.0 in the dev ppa) GTX 1070 with the proprietary driver. It works!


    vdpau-va-driver+vaapi doesn't work with Firefox with the Nvidia proprietary driver because the proprietary driver doesn't support DMA-BUF see https://forum.manjaro.org/t/firefox-...u-nvidia/48469. But reportedly it works with the nouveau driver.

    You may also look at ff2mpv, which offers the option of opening video link in mpv.

  7. #27
    Join Date
    Aug 2013
    Beans
    4,713

    Re: Nvidia / GPU Video Acceleration

    In Chromium go to about:flags and enable override software rendering then restart it with

    Code:
    LIBVA_DRIVER_NAME=vdpau VDPAU_DRIVER=nvidia chromium-browser --use-gl=desktop --enable-features=VaapiVideoDecoder

  8. #28
    Join Date
    Feb 2009
    Location
    Wasilla, Alaska
    Beans
    543
    Distro
    Kubuntu

    Re: Nvidia / GPU Video Acceleration

    Quote Originally Posted by monkeybrain20122 View Post
    Try this https://github.com/xtknight/vdpau-va-driver-vp9

    I tested it with chromium 9.1.0 from the beta ppa https://launchpad.net/~saiarcot895/+.../chromium-beta (not worked with 9.2.0 in the dev ppa) GTX 1070 with the proprietary driver. It works!
    How are you able to get that PPA to override the Snap Package. I still cannot do it...
    https://ubuntuforums.org/showthread.php?t=2464112

    Quote Originally Posted by monkeybrain20122 View Post
    You may also look at ff2mpv, which offers the option of opening video link in mpv.
    That's a good alternative as well. But the option you helped me with earlier in this thread, MPV (SMPlayer) and adjusting the type of video to get from YouTube seemed to create a workaround for YouTube. I need to get this working "in-Browser" for streaming services.

    Thank you again for all the help! If I haven't said it before, I will say it again... I really do appreciate it.
    Holy Cripes on Toast!
    Attention is the currency of internet forums. - ticopelp

  9. #29
    Join Date
    Aug 2013
    Beans
    4,713

    Re: Nvidia / GPU Video Acceleration

    Quote Originally Posted by Shibblet View Post
    How are you able to get that PPA to override the Snap Package. I still cannot do it...
    https://ubuntuforums.org/showthread.php?t=2464112

    .
    Huh? I didn't do anything. The ppa version is 0.91, snap is 0.85, so I just added the ppa and update, install, that was it. Didn't do anything special. Did it on two machines with Ubuntu 20.04. One with intel graphic, one with Nvidia. Chromium vaapi works in both. Firefox vaapi works in intel but not Nvidia with the proprietary driver (but that machine is so powerful that I don't need hardware acceleration for browser anyway) Couldn't get Chrome or Vivaldi to work in either though according to some people they should work with intel card at least if based on Chromium >= 0.90

  10. #30
    Join Date
    Feb 2009
    Location
    Wasilla, Alaska
    Beans
    543
    Distro
    Kubuntu

    Re: Nvidia / GPU Video Acceleration

    Quote Originally Posted by monkeybrain20122 View Post
    Huh? I didn't do anything. The ppa version is 0.91, snap is 0.85, so I just added the ppa and update, install, that was it. Didn't do anything special. Did it on two machines with Ubuntu 20.04. One with intel graphic, one with Nvidia. Chromium vaapi works in both. Firefox vaapi works in intel but not Nvidia with the proprietary driver (but that machine is so powerful that I don't need hardware acceleration for browser anyway) Couldn't get Chrome or Vivaldi to work in either though according to some people they should work with intel card at least if based on Chromium >= 0.90
    I am running Kubuntu 21.04, and it will not allow me to download the PPA for that Chromium Build. APT overrides the PPA, and downloads the Chromium SNAP. Nothing I can do to fix it.
    Holy Cripes on Toast!
    Attention is the currency of internet forums. - ticopelp

Page 3 of 5 FirstFirst 12345 LastLast

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •