How To Enable Hardware Acceleration In ... - CodePre.com
文章推薦指數: 80 %
Raspberry Pi OS comes with all the functions required to run Chromium with hardware acceleration on Raspberry Pi 4, but it cannot be used immediately. For ... SkiptocontentCloseMenuMoreTutorialsShowsubmenuAppleTutorialsAndroidGuidesWindowsGuidesLinuxTutorialsBrowserTutorialsTutorialderecuperacióndedatosCodePre.comFreeOnlineTutorialsMoreTutorialsAppleTutorialsAndroidGuidesWindowsGuidesLinuxTutorialsBrowserTutorialsTutorialderecuperacióndedatosHomeLinuxHowtoenablehardwareaccelerationinChromiumonRaspberryPiOS(RPi4)ThisarticledescribeshowtoenablehardwareaccelerationintheChromiumbrowserrunningonRaspberryPiOS(forRaspberryPi4).ByenablingGPUacceleration,theCPUusageshouldbegreatlyreducedwhenplayingsupportedvideos(e.g.onYouTube).Inmycase,withRaspberryPi4ModelB,withhardwareaccelerationenabled,themainChromiumgpuandrendererprocessesarereducedfrom~160%and~130%to~30%andbelow23%CPUusage(accordingtohtop).Incidentally,thisisthepremiseofmyplantowriteanarticlesoon.RaspberryPiOScomeswithallthefunctionsrequiredtorunChromiumwithhardwareaccelerationonRaspberryPi4,butitcannotbeusedimmediately.ForRaspberryPi4,thereisnoneedtoinstalladditionalsoftwarepackages,enableOpenGL,etc.,becausethesepackagesarealreadyenabled.YouonlyneedtoenablesomeChromiumbrowserlogos;thereisalsoa“fix”belowtofixscreentearing,whichoccurswhenplayinghardware-acceleratedfull-screenvideos.IhavetesteditwithRaspberryPi4ModelB(usingRaspberryPiOS),soIcanonlyconfirmifitworks.accordingtoThis,ForolderRaspberryPimodels,youmayneedtouseraspi-configtoenableOpenGLwithfake/fullKMS(I’mnotsureifoldermodelsrequireadditionalsteps).RaspberryPi4doesnotrequirethisfeature.However,sinceIcanonlytestonRaspberryPi4ModelB,andIdon’tliketowritearticlesaboutthingsthatIcannottestmyself,IonlyfocusonRaspberryPi4andtheinstructionsinthisarticle..EnablehardwareaccelerationintheChromiumbrowserrunningonRaspberryPiOS(RaspberryPi4)ToenablehardwareaccelerationintheChromiumbrowserrunningonRaspberryPiOS(RaspberryPi4),performthefollowing3steps(well,morelike2.5):1.EnablehardwareaccelerationintheChromiumbrowser.Enablethefollowingflagsinchrome://flags:Overlaysoftwarerenderinglist:chrome://flags/#ignore-gpu-blocklistHardwareacceleratedvideodecodingchrome://flags/#enable-accelerated-video-decodeGPUrasterization:chrome://flags/#enable-gpu-rasterizationWhenfinished,restartChromium.2.Makesurethattheh264ifyChromiumextensionisenabled.ComeswithChromiumonRaspberryPiOSTheoriginofuBlockwithh264ifyExtensionsinstalledbydefault.Makesurethath264ifyisenabledsothatYouTubecanuseh264-encodedvideothatsupportshardwareacceleratedvideodecodingwithRaspberryPi.3.Optional:Solvetheproblemoffullscreenvideotearing.Repairfullscreenvideotearing(fixby),weneedtodisablethesynthesizer.Todothis,openaterminalontheRaspberryPiandrunthefollowingcommandtoruntheconsoleversionoftheRaspberryPisoftwareconfigurationtool:sudoraspi-configuseUp/DownArrowkeystonavigateitsmenus,andTabChoosesimilarbuttonsFinish,OKorBack.Todisablethesynthesizer,gotoAdvancedOptions->CompositorThenchooseNoDisableit.Whenfinished,selectFinishAndrestartthesystem.That’sit.YourChromiumwebbrowsershouldnowbehardwareacceleratedandbeabletoperformhardwareacceleratedvideodecoding.Related:Howtoenablehardware-acceleratedvideodecodinginGoogleChrome,Brave,VivaldiandOperabrowsersonDebian,UbuntuorLinuxMintTocheckwhethertheChromiumbrowseruseshardwareacceleration,pleasevisitchrome://gpuInChromium:Ifhardwareaccelerationisenabled,allfieldsrelatedtohardwareaccelerationshouldbedisplayedingreen.Thisishowitlookedbeforetheaboveflagwasenabled(so,inthescreenshotbelow,hardwareaccelerationisnotenabled):TocheckifthehardwareacceleratedvideodecodinginChromiumisworkingproperly,pleaseplaytheYouTubevideoandpressCtrl+Shift+iThiswillopenChromeDevTools.Next,clickonthe3verticaldotmenusintheupperrightcornerofChromeDevToolsandselectMoretools->Media:InthenewMediaUnderthe“DevTools”tab,clickontheYouTubevideoontheleft(inPlayers),andthenmakesurePropertiesThesub-tabisselected,thenscrolldowntoVideoDecodersection.UseChromium88+onRaspberryPiOS,DecodernameValueshouldbeMojoVideoDecoderIfhardwareacceleratedvideodecodingisenabledanditworksnormally.UntilChromium86(I’mnotsureaboutversion87),thedecoderwasnamedMmalVideoDecoderWhenhardwareacceleratedvideodecodingisenabledandworksnormally.YoushouldalsonotethattheCPUusageismuchlower,forexample,whenplayinga1080pvideoonYouTube.YoumayalsoneedtoenableWidevineintheChromiumbrowserrunningonRaspberryPiOS,whichcanplayNetflix,AmazonPrime,Hulu,etc.SourceBraveChromeChromiumDebianNetflixOperaUbuntuYouTubeRelatedPostsAbrirdocumentosPDFenFirefoxEnlugardesalvarlosMozillaFirefoxeselnavegadorwebmásutilizadoenlacomunidaddecódigolibreyabierto.Sinembargo,laempresa…Jrnl:expresesussentimientoseneldiariodigitalenlaterminaldeLinuxSimplementediga‘Queridodiario’yexpresesussentimientosenlanota.Cuandoliteralmentenotienesanadieconquiencompartir…CómoinstalarelpaneldecontroldeAjentienUbuntu18.04LTSEnestetutorial,lemostraremoscómoinstalarelPaneldecontroldeAjentienUbuntu18.04LTS.Paraaquellosde…OpenRazer:configurarefectosdeiluminaciónendispositivosRazerenUbuntuRazerSynapse,elsoftwareutilizadoparaconfigurarlailuminaciónylosefectosRGBenlosdispositivosRazer,noestádisponible…CómoinstalarWebminenCentOS8Enestetutorial,lemostraremoscómoinstalarWebminenCentOS8.Paraaquellosdeustedesquenolosabían,Webmin…CómosolucionarelproblemadelruidoestáticoenLinuxLosparlantesqueemitenruidoestáticonodeseadopuedenserunagranmolestiacuandointentaconcentrarseypuedenobstaculizarsignificativamente…ConvertirimagenaPDFenlalíneadecomandosenLinux¿NecesitaconvertiroagregarimágenesadocumentosPDFconfrecuencia?Siesasí,noestássolo.Haymuchasherramientasen…Motrix:unadministradordedescargasgratuitoydecódigoabiertoparaLinuxAntes,descargarunarchivoeraunatareamuyaburridaydesagradable.Hoyendía,losusuariostienenlasuertede…CómoinstalarTeamViewerenDebian10BusterEnestetutorial,lemostraremoscómoinstalarTeamViewerenDebian10Buster.Paraaquellosdeustedesquenolosabían,…DescomprimavariosarchivosenLinuxenlalíneadecomandosSialgunavezhatenidoqueextraerunagrancantidaddearchivoszip,sabequepuedeserunprocesotedioso…RecentPostsCómohabilitarelmododedesarrolladorenDiscordparapcywebCómorepararelerrordeMicrosoftStore0x80D05001enWindows10CómousarunacomputadoraportátilcomomonitorparasuXboxSeriesX|SPrivacyPolicy©2022CodePre.com
延伸文章資訊
- 1Raspberry Pi 4 hardware acceleration : r/openSUSE - Reddit
Hi, Is it currently possible to have 3D and video hardware acceleration on the Raspberry Pi 4 yet...
- 2RPI4 & Ubuntu MATE - How to enable video acceleration
Tutorial showing how to enable hardware acceleration on Raspberry Pi 4 running Ubuntu MATE, inclu...
- 3Hardware accelaration on pi 4 - Technical Assistance
raspberry-pi-4 ... You can enable Hardware Acceleration in the options. However, does the Pi actu...
- 4How should I enable hardware graphics acceleration in ...
I have just installed Ubuntu MATE 21.10 (32-bit, armhf) on my Raspberry Pi 4 with 4 Gb of RAM. No...
- 5How To Enable Hardware Acceleration ... - Linux Uprising Blog
This article explains how to enable hardware acceleration in Chromium browser running on Raspberr...