How To Enable Hardware Acceleration In ... - CodePre.com

文章推薦指數: 80 %
投票人數:10人

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



請為這篇文章評分?