🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.gentoo.user
Article #272

Re: [gentoo-user] Firefox slow to respond when playing Youtube video.

#272
From: Michael
Date: Fri, 04 Dec 2026 11:50
141 lines
9160 bytes
--nextPartJXpCg5IMQQOM6Tj0E8CFvQ
Content-Transfer-Encoding: 7Bit
Content-Type: text/plain; charset="utf-8"; protected-headers="v1"
From: Michael <confabulate@kintzios.com>
To: gentoo-user@lists.gentoo.org
Reply-To: confabulate@kintzios.com
Subject: Re: [gentoo-user] Firefox slow to respond when playing Youtube video.
Date: Fri, 04 Dec 2026 11:42:07 +0000
Message-ID: <ypi0qSjfQT6NUuaMsQysKQ@kintzios.com>
In-Reply-To: <20261203204313.4d3d40c0@ZGC>
MIME-Version: 1.0

On Friday, 4 December 2026 03:43:13 Greenwich Mean Time Jon Ensson 
wrote:
> On Thu, 03 Dec 2026 11:43:18 +0000
> 
> Michael <confabulate@kintzios.com> wrote:

> > Your card *does* support hardware encoding/decoding for the media
> > codecs shown in the developer.nvidia.com URL, including VP9, AVC
> > and HEVC (although with a reduced chroma sampling @4:2:0).
> > 
> > What your browser can access at this moment is a different question
> > involving how it is configured (see the corresponding link in my
> > previous post) and any supporting packages required.  Your card is
> > not too old, it is still supported by the current proprietary
> > drivers:
> > 
> > https://www.nvidia.com/en-us/drivers/details/257493/
> > 
> > I think you need to spend some time checking settings and
> > dependencies and see if the browser prints any warnings or missing
> > libraries in a terminal.
> 
> Hardware decoding on nvidia-drivers requires the VA-API, which  needs
> package several packages, like libva, nvidia-vaapi-driver,
> libva-utils. This is because firefox does not have native NVENC/NVDEC
> on build. This also means that you will likely need to compile
> firefox and not use the binary.
> 
> So you have been software decoding the entire time because you did not
> have the configuration properly set up. I have a nvidia-card myself
> and you can use this as a rough outline. It may differ on your setup.
> 
> From my recollection the following might be needed.
> 
> Use flags:
> Mesa needs +vaapi
> ffmpeg needs +vaapi
> firefox MAY need +hwaccel see:
> https://bugzilla.mozilla.org/show_bug.cgi?id=594876
> 
> Packages:
> media-libs/libva media-libs/nvidia-vaapi-driver media-libs/libva-utils
> 
> Kernel:
> Set options nvidia-drm modeset=1 fbdev=1 on kernel command line.
> user launching must be in "render" group NOT "video".
> 
> Enviorment variables:
> (xinitrc or on launch command)
> export LIBVA_DRIVER_NAME=nvidia
> export NVD_BACKEND=direct
> (wrapper that launches firefox)
> export MOZ_DISABLE_RDD_SANDBOX=1
> 
> about:config requires:
> 
> media.ffmpeg.vaapi.enabled
> media.hardware-video-decoding.force-enabled
> widget.dmabuf.force-enabled
> gfx.x11-egl.force-enabled
> 
> 
> vainfo should show something like this:
> libva info: VA-API version 1.24.0
> libva info: Trying to open /usr/lib64/dri/nvidia_drv_video.so
> libva info: Found init function __vaDriverInit_1_0
> libva info: va_openDriver() returns 0
> Trying display: x11
> vainfo: VA-API version: 1.24 (libva 2.24.0)
> vainfo: Driver version: VA-API NVDEC driver [direct backend]
> vainfo: Supported profile and entrypoints
>       VAProfileMPEG2Simple            :	VAEntrypointVLD
>       VAProfileMPEG2Main              :	VAEntrypointVLD
>       VAProfileVC1Simple              :	VAEntrypointVLD
>       VAProfileVC1Main                :	VAEntrypointVLD
>       VAProfileVC1Advanced            :	VAEntrypointVLD
>       VAProfileH264Main               :	VAEntrypointVLD
>       VAProfileH264High               :	VAEntrypointVLD
>       VAProfileH264ConstrainedBaseline:	VAEntrypointVLD
>       VAProfileJPEGBaseline           :	VAEntrypointVLD
>       VAProfileHEVCMain               :	VAEntrypointVLD
>       VAProfileVP8Version0_3          :	VAEntrypointVLD
>       VAProfileVP9Profile0            :	VAEntrypointVLD
>       VAProfileAV1Profile0            :	VAEntrypointVLD
>       VAProfileHEVCMain10             :	VAEntrypointVLD
>       VAProfileHEVCMain12             :	VAEntrypointVLD
>       VAProfileVP9Profile2            :	VAEntrypointVLD
>       VAProfileHEVCMain444            :	VAEntrypointVLD
>       VAProfileHEVCMain444_10         :	VAEntrypointVLD
>       VAProfileHEVCMain444_12         :	VAEntrypointVLD
>       VAProfileNone                   :	VAEntrypointVideoProc
> 
> Check firefox for decode after that. Don't forget the
> extension, since youtube is AV1 by default now. Without
> the extention it will software decode to AV1.
> 
> Good luck,
> 
> Jon

According to the list of codecs in developer.nvidia.com the Quadro P1000 
(Pascal 3 gen) cannot decode AV1, but it will decode VP9 which youtube 
offers.  USE="nvenc" should be enabled globally for any apps that can 
use it - e.g. ffmpeg, mpv, etc.

--nextPartJXpCg5IMQQOM6Tj0E8CFvQ
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: This is a digitally signed message part.
Content-Transfer-Encoding: 7Bit

-----BEGIN PGP SIGNATURE-----

iQJPBAABCAA5FiEEXqhvaVh2ERicA8Ceseqq9sKVZxkFAmsSpw8bFIAAAAAABAAO
bWFudTIsMi41KzEuMTIsMiwyAAoJELHqqvbClWcZQsEQAKpvHE5r8LJw9ULQI+YU
fDa6e1QefFl6RqNiNEEobvQxmlvmgm01HxAVEKDDatc5AKB2lO505FNzrdIQPUZp
5o4Vw5J5Lcy/eqioBcy/mXv50KpxlMW0DkpTeRTOULv97Lq7HTqf8qAqnP7KsyVA
q3/6fNYQJIkScsIRkPkX1tF9egD46Hb1FmVMr1q50MqnCrU7+h0+FP0d0z/fjD22
hffhXKftkczCQIt/CBi82MJwh5wl4P6Hskf3VaU1gFkbq6YYKxGtRz2NOA0mGcaP
sukUFnWpduRG1s9yUtV2drFedn82eW/dqKQexq5lOja97t5JwKO3wz4+S3TIOfq7
bIhlC1coSuHKhI4PiVnWtnGM705QfWoICtBSeGYAAHM5CEdylAm8IN5w05gWrmNV
kBwO8ge9XeLKad8aKFjWXAuLfGSws3x79bBFdRMCQs6BbOhJ+uGAJqyKnXqcFl5u
I7sUBxo/m2Qtb2fF3vOuyvdHdAi94P7MOeIxFoeDdeCR8L7pXvlcCLmxei/FzsVb
twh3ADbf0QgjfXcsx0Nt1ZXGM4pU5jY6omVMezW8Ekl4GSzGpLEXSfMyQcx0xPc3
d5YeOkh/0caQUioOnJlyXGCJ20zF4hdAdDYinDdEN6QYyBCWQNlOWsQ7KqgGcp9i
u8d5VZBN6VJyOUK1VuZy6FNF
=O+CF
-----END PGP SIGNATURE-----

--nextPartJXpCg5IMQQOM6Tj0E8CFvQ--
Technical Details
Message-ID: <O6zXz-fVAn-3@gated-at.bofh.it>
Path: mbox-mo1.pugleaf.net!feed-us-txt.newsdeef.eu!feed-us-ny.newsdeef.eu!srv.newsdeef.eu!feed-eu-txt.newsdeef.eu!feed-eu-nl.newsdeef.eu!srl.newsdeef.eu!news.tcpreset.net!newsfeed.bofh.team!news.samoylyk.net!gothmog.csi.it!bofh.it!news.nic.it!robomod
References: <O6zXz-fVAn-5@gated-at.bofh.it> <O5oBc-fgvR-1@gated-at.bofh.it> <O6du2-fJy4-9@gated-at.bofh.it> <O6st3-fRzi-7@gated-at.bofh.it>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!feed-us-txt.newsdeef.eu!feed-us-ny.newsdeef.eu!srv.newsdeef.eu!feed-eu-txt.newsdeef.eu!feed-eu-nl.newsdeef.eu!srl.newsdeef.eu!news.tcpreset.net!newsfeed.bofh.team!news.samoylyk.net!gothmog.csi.it!bofh.it!news.nic.it!robomod
From: Michael <confabulate@kintzios.com>
Newsgroups: linux.gentoo.user
Subject: Re: [gentoo-user] Firefox slow to respond when playing Youtube video.
Date: Fri, 04 Dec 2026 12:50:01 +0100
Message-ID: <O6zXz-fVAn-3@gated-at.bofh.it>
References: <O6zXz-fVAn-5@gated-at.bofh.it> <O5oBc-fgvR-1@gated-at.bofh.it> <O6du2-fJy4-9@gated-at.bofh.it> <O6st3-fRzi-7@gated-at.bofh.it>
X-Sender-ID: thundermail|x-authsender|confabulate@kintzios.com
X-Sender-ID: thundermail|x-authsender|confabulate@kintzios.com
X-Mc-Relay: Neutral
X-Mailchannels-Senderid: thundermail|x-authsender|confabulate@kintzios.com
X-Mailchannels-Auth-ID: thundermail
X-Company-Whimsical: 6242a9e22198cdb4_1796384542836_317015416
X-Mc-Loop-Signature: 1796384542836:3061375445
X-Mc-Ingress-Time: 1796384542836
Authentication-Results: cloud238.thundercloud.uk;
        spf=pass (sender IP is 217.169.3.230) smtp.mailfrom=confabulate@kintzios.com smtp.helo=rogueboard.localnet
Received-Spf: pass (cloud238.thundercloud.uk: connection is authenticated)
List-ID: Gentoo Linux mail <gentoo-user.gentoo.org>
Reply-To: gentoo-user@lists.gentoo.org
X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply
MIME-Version: 1.0
Content-Type: multipart/signed; boundary="nextPartJXpCg5IMQQOM6Tj0E8CFvQ";
 micalg="pgp-sha256"; protocol="application/pgp-signature"
X-Ppp-Message-ID: 
 <179638453938.179148.4994011968777841157@cloud238.thundercloud.uk>
X-Ppp-Vhost: kintzios.com
X-Rspamd-Queue-ID: 4jgqNW51y4zGnsl
X-Rspamd-Server: mailclean11
X-Rspamd-Action: no action
X-Spamd-Result: default: False [-2.20 / 999.00];
	SIGNED_PGP(-2.00)[];
	ONCE_RECEIVED(0.20)[];
	MIME_GOOD(-0.20)[multipart/signed,text/plain];
	R_DKIM_ALIGNED(-0.10)[strict];
	MX_GOOD(-0.10)[mail.kintzios.com];
	DMARC_POLICY_ALLOW(0.00)[kintzios.com,none];
	REPLYTO_DOM_NEQ_TO_DOM(0.00)[];
	RCVD_TLS_ALL(0.00)[];
	UWH_IDENTITY(0.00)[1|3a16ae72dcd478b4|t=90|r=0|m=postfix|n=16|h=pppm:1:14/1+pppv:1:15/0|f=nv];
	TO_MATCH_ENVRCPT_ALL(0.00)[];
	R_DKIM_ALLOW(0.00)[kintzios.com:s=default];
	DKIM_TRACE(0.00)[kintzios.com:+];
	ARC_NA(0.00)[];
	RCPT_COUNT_ONE(0.00)[1];
	FROM_HAS_DN(0.00)[];
	MISSING_XM_UA(0.00)[];
	RCVD_COUNT_ONE(0.00)[1];
	TO_DN_NONE(0.00)[];
	REPLYTO_ADDR_EQ_FROM(0.00)[];
	FROM_EQ_ENVFROM(0.00)[];
	MIME_TRACE(0.00)[0:+,1:+,2:~];
	PREVIOUSLY_DELIVERED(0.00)[gentoo-user@lists.gentoo.org];
	R_SPF_ALLOW(0.00)[+mx];
	MID_RHS_MATCH_FROM(0.00)[];
	ASN(0.00)[asn:34931, ipnet:149.255.60.0/22, country:GB];
	RCVD_VIA_SMTP_AUTH(0.00)[];
	HAS_REPLYTO(0.00)[confabulate@kintzios.com]
Approved: robomod@news.nic.it
Lines: 141
Organization: linux.* mail to news gateway
Sender: robomod@news.nic.it
X-Original-Date: Fri, 04 Dec 2026 11:42:07 +0000
X-Original-Message-ID: <ypi0qSjfQT6NUuaMsQysKQ@kintzios.com>
X-Original-References: 
 <354b3e06-5f9b-40f8-a5c4-5a6c8f12e6af@gmail.com>
 <gMntxJRURIOq2A87VETFFg@kintzios.com> <20261203204313.4d3d40c0@ZGC>