Browser - Video streaming
-
Hey there,
I convert and upload my videos to an online harddrive.
But watching them in the browser is extremely laggy. Also the unencrypted media libraries of some TV stations can be watched, but laggy.Is there a way to watch video streams properly in the browser?
I can download and watch my videos using the Media Player App. But that's kind of annoying and time and memory consuming.
It works perfectly on any android phone.
Thanks for your answers.
-
Unfortunately QtWebEngine (which is based on the Chromium engine) does not use QtMultimedia for audio/video playback, and cannot use hardware decoding nor GPU acceleration. Everything is done in software only, hence why you'll notice the phone getting hot and laggy playback.
There is some work pending to get remote playback working properly in media-hub, so that native apps can be built to stream media and keep it playing in the background. A native app though should still be able to stream video better than the browser, if someone wrote one for the services in question.
-
@dobey I was wondering if hardware acceleration is something that can be done, or is considered ? Or is it something that's unlikely to happen ?
-
That means, video streaming is hardly possible at all?
Is that a Linux problem in general or is that just an UT related issue?
-
@jojumaxx said in Browser - Video streaming:
Is that a Linux problem in general or is that just an UT issue?
It is mostly a problem with using graphics hardware that lacks both upstream kernel support and open source drivers. Typically, the drivers included in the original Android OS are problematic to integrate into any other Linux, including UT, because they were compiled against a specific, modified kernel.
-
How about the Pinephone then? Is that just a matter of time since the software is under development or won't that be possible,too?
-
@alan_g I see !
-
@jojumaxx said in Browser - Video streaming:
How about the Pinephone then? Is that just a matter of time since the software is under development or won't that be possible,too?
No because qtwebengine doesn't support it (yet?), see:
https://wiki.qt.io/QtWebEngine/VideoAcceleration -
@jojumaxx It should have GPU accelerated rendering, but decoding will still be in software I think.
-
@emphrath said in Browser - Video streaming:
I was wondering if hardware acceleration is something that can be done, or is considered ? Or is it something that's unlikely to happen ?
If it was easily something we could do on the Ubuntu Touch side of things, it would probably have been done already. Unfortunately, QtWebEngine devs are unlikely to be replacing the media support in the Chromium engine with QtMultimedia as I understand, and we don't have the resources to maintain such a large fork. If we can come up with a simpler to maintain way to achieve the hardware acceleration, I'm sure we'd be happy to do it, but there are very few developers and many other higher priority things still.
-
@dobey now i'm confused: how could be a maintaining issue for a rendering software when alan said it was related to the android kernel diverging from mainline ?
-
@emphrath The Android HAL is incompatible with GNU libc and traditional Linux multimedia software. It's less about "kernel divergence" than about how binary drivers are built on top of it to work differently than traditional Linux distributions.