Comments (28)
I was able to get hardware decoding working from Chromium by enabling the experimental gl graphics driver in raspi-config
and enabling the --ignore-gpu-blacklist
chrome flag, but elements of videos still played choppy.
I tried another Raspberry Pi distribution (OpenElec / XBMC) that runs videos in a dedicated media player. The same MP4 videos played smoothly in the media player app.
from fullpageos.
@tailorvj smaller resolutions played smoother, but don't look that great. In the end, I used a more powerful device for the video playback use case.
from fullpageos.
I am trying to run a WebRTC site in FullPageOS. But as soon as I receive video it gets choppy/lagged instantly. You can try it by loading https://appr.tc as default page and connect the Pi and your PC to same room. Tested with RC1. Any ideas for optimilization?
from fullpageos.
There might be progress on this, release notes say now:
2017-09-07:
* Bug fix for crash on some videos and animations in Chromium
from fullpageos.
The file that holds all the flags is here:
https://github.com/guysoft/FullPageOS/blob/devel/src/modules/fullpageos/filesystem/home/pi/scripts/start_chromium_browser#L4
from fullpageos.
Currently chromium is not utilizing the GPU. To date I have not be able to find how to enable it. Talks are at #22 . Solutions are welcome.
from fullpageos.
@jacobgraf could you please try this out and tell us if it solves the problem for you?
from fullpageos.
from fullpageos.
Maybe we are trying to squeeze too much out of a web browser. Did you try smaller resolutions?
from fullpageos.
@jacobgraf Not in browser, but I'm having success using omxplayer. It goes fullscreen over the browser, and when the video is done, it closes and returns to the browser.
from fullpageos.
Hey, try RC1, it seems to be able to run fast, but it crashes, not sure why.
from fullpageos.
@jacobgraf Hey, if still relevant, it seems like webm does work on full screen at the moment, its mp4 container that seems to have a bug now. it means that if you convert your video to webm it should work with the new 0.7.0 RC1. Here is a webm video for reference:
http://video.webmfiles.org/big-buck-bunny_trailer.webm
from fullpageos.
This dude managed to get hardware decoding in Chromium:
http://thebugfreeblog.blogspot.com/
It would be interesting if you take a look at it. Would be really useful to have a merge of these two projects.
from fullpageos.
@Enzarro that uses specilized code, we already have a better solution which you can download and use in RC1 #92
from fullpageos.
@mark-veenstra What's the hardware behind?
from fullpageos.
@ruvenss Sorry forgot to mention. I used the Pi 3B
and a normal HDMI screen which is used for computer also. Added an USB camera to the Pi 3B
to enable cam feature. Used this cam on laptop also and worked fine.
The video is shown normal on laptop from the Pi, but all received video data on the Pi is choppy. CPU is also at max all the time.
from fullpageos.
Any update on this?
Isn't rpi-chromium-mods
using hardware acceleration?
from fullpageos.
@Boscop It is, but it disables x264 hardware decoding which can be used to play Youtube videos.
See: #86 (comment)
from fullpageos.
It would be very useful to be able to play hardware accelerated H.264 in FullPageOS..
from fullpageos.
@Boscop it can be done, as I already said, see #86 (comment)
from fullpageos.
I am trying to run mp4 video trough HTML5 video tag but it is very choppy. I have Raspberry PI 4 (2GB RAM) and tried almost every combination to fix it but without success.
Any recommendations? I am ready to donate if proper solution is offered as my project depends on it.
from fullpageos.
@stzoran1 Can you provide a link to the webpage running the video of an equivalent? I can't debug it without an example I can test
from fullpageos.
Thank you for quick reply. Here is the test link:
https://radio.numera.rs/rpidevices/12456/dekordom0710
There is a slide show containing one image and one video. When I use images only everything works perfectly, but video is choppy.
from fullpageos.
It's been years since I dealt with this but if I remember correctly, the MP4 decoding chip on the Raspberry Pi is not open source. Raspbian ships with a binary blob that's licensed from the company that provides the chip. There's a media player that ships with Raspbian named "omxplayer" that will in fact play videos smoothly. But this program won't hook into Chrome or Chromium nicely.
I think I tried some experimental flags in Chrome to enable unsupported GPUs. I don't remember if it just didn't work or if it worked in some flakey manner that wasn't good enough.
I ended up not using the Raspberry Pi for the project at hand at the time. (But I found a use for in another project.)
I hope things have improved since and you can get your goal accomplished.
from fullpageos.
That's strange. I have no hardware acceleration on my RPI 3B whatever I try.
Running the enable_gpu
script quietly does nothing. And as far as I understand this is only for the GUI, right?
I activated fake and full KMS in raspi-config
.
In the end I updated chromium and all other packages and followed this guide, which also didn't change anything for me.
I have the feeling this should work in 2020, what am I doing wrong?
Here is a screenshot of what chrome://gpu
gives me
from fullpageos.
@pi43r What version of FullPageOS?
0.11.0 Has version 74 of chrome and this is 78 - is this the nightly?
Also that guide has extra chromeium flags, did you try them?
-use-gl=egl --enable-gpu-rasterization --enable-native-gpu-memory-buffers --ignore-gpu-blacklist
from fullpageos.
Yes, the screenshot was after all my attempts to fix it.
I have tried both the nightly and stable version.
I was trying to run a small videoloop in the browser. For this project I have reverted to omxplayer with less interactivity, but I'm sure the same problem will come up in the future.
So, just to make sure: You have full hardware acceleration on your RPi in chromium?
from fullpageos.
I managed to get hardware acceleration working on FullPageOS 0.12.0 with the following Chromium flags:
--enable-gpu-rasterization --enable-accelerated-video-decode --enable-native-gpu-memory-buffers --ignore-gpu-blocklist
Notice on flags mentioned previously: When using --use-gl=egl
option it fails with Failed to load GLES library: libGLESv2.so.2
error, and --ignore-gpu-blacklist
is deprecated now.
@guysoft Just wondering if there's a way to set Chromium flags by changing some file on SD card, without booting, like WiFi configuration for example?
Update: It's also required to install libgles2-mesa
package
from fullpageos.
Related Issues (20)
- My FullscreenOS SetUp has an active Screensaver - how to disable? HOT 3
- Custom Splash screen only working for 1 frame then default red FULLPAGEOS splash is displayed until boot finish HOT 1
- DISPLAY_ORIENTATION Not working on Bullseye Stable Build HOT 8
- no boot erro on screen HOT 3
- Stuck at shell on 3.5in GPIO touchscreen
- Embedded video playback HOT 5
- Grafana not loading, possible old chromium version? HOT 4
- FullPageOS is staying on the splash screen. HOT 3
- WiFi not working / SSH on LAN not enabled HOT 6
- x11vnc will fail on no-default pi user needs to be changed to be user-independent HOT 2
- Unable to connect to wifi HOT 3
- changing the URLs online remotely. HOT 1
- Page only working horizontal, not vertikal /Portrait Mode HOT 1
- Setting Static IP HOT 1
- Flickering white dots on the bottom corners HOT 4
- [feature request] Auto releoad when tab crashes (aw Snap message appears) HOT 2
- After boot flashes FPOS then black screen with cursor flashing irregularly HOT 9
- FPOS Logo, Ethernet Connection, SSO Internet HOT 1
- nightly builds are broken, stable version is broken, no working distribution HOT 17
- Only whitescreen in Chromium / no wifi HOT 14
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from fullpageos.