Alex313031 / Mercury

Firefox fork with compiler optimizations and patches from Librewolf, Waterfox, and GNU IceCat.
https://thorium.rocks/mercury
Mozilla Public License 2.0
1.15k stars 25 forks source link

Firefox has no full complete suuport of hardware acceleration codec H265 #194

Open trimechee opened 4 months ago

trimechee commented 4 months ago

Hello, Thorium, edge, brave, chrome...seems to have support of codec H265, howerver Firefox and Mercury seems not to have no support of this codec, it will be great f there is support of this codec like Thorium that offer better streaming compression, my sister use many time HDMI and internet connexion become very weak...thank you !

https://ott.dolby.com/codec_test/index.html

https://html5test.co/

gz83 commented 4 months ago

Firefox's support for hardware acceleration is still relatively weak. For Windows, you need to install the HEVC package through the Microsoft Store to enable Firefox to support HEVC. We prefer to let upstream solve these problems.

trimechee commented 4 months ago

Hello Mr @gz83, thank you for your precious help! yes package of hevc , av1 codecs....are installed and updated from microsoft store in my computer,, I tested with several browsers, on this site :

https://html5test.co/

it says chrome browser supports H264 and H265 codec but it says chrome doesn't have TS with H264 support, the same thing for brave, opera, mercury....

on the other hand, microsoft edge browser has TS with H264 support, so Microsoft Edge seems to have the best codec and hardware acceleration support in the world!

Mr Ho Cheung, i'm pushing the tests with the HEVC codec test web site from our beloved Thorium Browser:

https://thorium.rocks/misc/h265-tester.html

chromium browser from woolyss website support H264 ans H265 codec but unable to read the HEVC test videos from the Thorium HEVC test site, same thing for chrome, brave ARE unable to read the hevc videos from this Thorium web site, on the other hand microsoft edge browser can read the hevc video of Thorium test site videos !

Mr @gz83 , our beloved Thorium browser says it add support for Experimental [MPEG-DASH] : (https://en.wikipedia.org/wiki/Dynamic_Adaptive_Streaming_over_HTTP) support: Implemented with the args.gn flags "enable_hls_sample_aes = true" and " enable_mse_mpeg2ts_stream_parser = true"

https://github.com/Alex313031/thorium/blob/main/infra/PATCHES.md

so please how can we activate the MPEG dash patch in Thorium browser please? because I tested Thorium with the site:

https://html5test.co/

and it says Thorium like all other browsers does not support adaptive bit rate dynamic adaptive streaming mpeg dash and http live streaming HLS.

we had part of our TV dish stolen so my sister uses HDMI to watch TV by accessing TV sites via the internet and as a result, my internet connection becomes weak and internet struggle freeze to watch 360p streaming videos so maybe mpeg dash patch from Thorium will be able to solve this streaming problem and we will be grateful if you explain to us how to activate this mpeg patch in Thorium, thank you very much !

trimechee commented 3 months ago

Mr @gz83 and Mr @Alex313031 , i found how enable hevc H265 in firefox and chrome, my gpu is intel 520 so my gpu doese'nt support codec av1 hardware acceleration but support hevc H265 hardware acceleration, it is important for me and others to be able to use hevc like in edge browser, so we hope our beloved Mercury and Thorium will enable these patch to enable by default hevc h265, thank you !

CODEC HEVC H265 https://github.com/StaZhu/enable-chromium-hevc-hardware-decoding?tab=readme-ov-file

--enable-features=PlatformEncryptedDolbyVision

--enable-features=PlatformHEVCEncoderSupport

media.wmf.hevc.enabled=1

https://github.com/StaZhu/enable-chromium-hevc-hardware-decoding?tab=readme-ov-file#how-to-verify-hevc-hardware-support-is-enabled https://lf-tk-sg.ibytedtos.com/obj/tcs-client-sg/resources/video_demo_hevc.html https://w3c.github.io/webcodecs/samples/encode-decode-worker/index.html chrome://gpu, and search Video Acceleration Information, you should see Decode hevc main field and Decode hevc main 10 field