經測試Chromium92_armhf版起已經無法正常啟用影片硬體解碼,
須解除後重新安裝舊版恢復,終端指令參考如下。
官方來源
wget http://ftp.debian.org/debian/pool/main/c/chromium/chromium-common_89.0.4389.114-1~deb10u1_armhf.deb && wget http://ftp.debian.org/debian/pool/main/c/chromium/chromium-driver_89.0.4389.114-1~deb10u1_armhf.deb && wget http://ftp.debian.org/debian/pool/main/c/chromium/chromium-l10n_89.0.4389.114-1~deb10u1_all.deb && wget http://ftp.debian.org/debian/pool/main/c/chromium/chromium-sandbox_89.0.4389.114-1~deb10u1_armhf.deb && wget http://ftp.debian.org/debian/pool/main/c/chromium/chromium-shell_89.0.4389.114-1~deb10u1_armhf.deb && wget http://ftp.debian.org/debian/pool/main/c/chromium/chromium_89.0.4389.114-1~deb10u1_armhf.deb && sudo apt autoremove chromium -y && sudo apt install ./chromium-common_89.0.4389.114-1~deb10u1_armhf.deb ./chromium-driver_89.0.4389.114-1~deb10u1_armhf.deb ./chromium-l10n_89.0.4389.114-1~deb10u1_all.deb ./chromium-sandbox_89.0.4389.114-1~deb10u1_armhf.deb ./chromium-shell_89.0.4389.114-1~deb10u1_armhf.deb ./chromium_89.0.4389.114-1~deb10u1_armhf.deb -y
備份來源(與官方來源擇一使用)
wget http://mit.eca.party/debian_raspberry_chromium90/chromium-common_89.0.4389.114-1_deb10u1_armhf.deb && wget http://mit.eca.party/debian_raspberry_chromium90/chromium-driver_89.0.4389.114-1_deb10u1_armhf.deb && wget http://mit.eca.party/debian_raspberry_chromium90/chromium-l10n_89.0.4389.114-1_deb10u1_all.deb && wget http://mit.eca.party/debian_raspberry_chromium90/chromium-sandbox_89.0.4389.114-1_deb10u1_armhf.deb && wget http://mit.eca.party/debian_raspberry_chromium90/chromium-shell_89.0.4389.114-1_deb10u1_armhf.deb && wget http://mit.eca.party/debian_raspberry_chromium90/chromium_89.0.4389.114-1_deb10u1_armhf.deb && sudo apt autoremove chromium -y && sudo apt install ./chromium-common_89.0.4389.114-1_deb10u1_armhf.deb ./chromium-driver_89.0.4389.114-1_deb10u1_armhf.deb ./chromium-l10n_89.0.4389.114-1_deb10u1_all.deb ./chromium-sandbox_89.0.4389.114-1_deb10u1_armhf.deb ./chromium-shell_89.0.4389.114-1_deb10u1_armhf.deb ./chromium_89.0.4389.114-1_deb10u1_armhf.deb -y
啟用硬體加速方法如下:
網址列鍵入
chrome://flags
打開Chrome開發工具,接著分別檢索下列功能並啟用
chrome://flags/#ignore-gpu-blocklist
chrome://flags/#enable-accelerated-video-decode
chrome://flags/#enable-gpu-rasterization
最後網址列鍵入
chrome://gpu
確認Video Decode項目是否為Hardware accelerated。
如觀看影片出現畫面撕裂等情形,
可於終端機鍵入
sudo raspi-config
前往 Advanced Options > GL Driver
選取 GL (Fake KMS) OpenGL desktop driver with fake KMS
前往 Performance Options > GPU Memory
輸入 128或144 (注意這裡單位是MB,會用掉對應的RAM空間)
前往 Advanced Options > Compositor > xcompmgr composition manager
選擇 No,退出raspi-config重啟裝置。
參考資料
Chromium來源 https://snapshot.debian.org/package/chromium/
Chromium啟用硬體加速 https://www.linuxuprising.com
https://lemariva.com/blog/2020/08/raspberry-pi-4-video-acceleration-decode-chromium
留言
張貼留言