Jump to content

Firefox+HTML5+H.264+MP4+Orange PI+ 2+H3 Quad-core ARM Cortex-A7: Sound problem


tstalker

Recommended Posts

What do I have:
CPU: H3 Quad-core ARM Cortex-A7 https://en.wikipedia.org/wiki/ARM_Cortex-A7
OS: Armbian Ubuntu Xenial https://www.armbian.com/orange-pi-plus-2
Audio subsystem: PulseAudio

 

Problem:
Firefox: video is played fine, but audio – NOT: white noise only.
Youtube on Firefox: one part of clips is played fine, second part of clips: video is played fine, but audio – NOT: white noise only.
Naturally, second part of Youtube clips have format H.264/MP4.

 

However:
Chromium: ALL Youtube clips is played fine.
Downloading test video in format H.264/MP4 to local disk.
mpv: test video is played fine.
kodi: test video is played fine.
Therefore, the problem NOT in hardware, NOT in PulseAudio, but EXACTLY in Firefox or its plugins.

 

I’m trying install plugins and addons from OS and Firefox repositories, but the problem still is not solved.
Please help me.
Link to comment
Share on other sites

Armbian & Khadas are rewarding contributors

The first, more or less, generic answer is: there is no video acceleration within any browser on Linux for those boards. It's a complex problem, which we don't have resources to deal with, a job for a small team and so far I haven't see much progress if any.


There might be some workarounds / plugins which pipe video to mpv (which knows to play accelerated video), but it's out of my interest zone. Don't know if that works.

Link to comment
Share on other sites

On 21.4.2017 at 6:58 AM, Igor said:

The first, more or less, generic answer is: there is no video acceleration

 

Video decoding is done via vdpau am I right?

There seems to be an gstreamer vaapi plugin. This would enable hw accelerated video at least with midori. (and ofc. with any other gstreamer based application! This would even enable video streaming to the board via rygel!)

Have not tested it yet, but sounds promising.

 

https://packages.debian.org/jessie/gstreamer1.0-vaapi
 

Link to comment
Share on other sites

10 minutes ago, giri@nwrk.biz said:

Video encoding is done via vdpau am I right?

Video decoding and video output is done via a VDPAU backend: https://github.com/linux-sunxi/libvdpau-sunxi

 

11 minutes ago, giri@nwrk.biz said:

There seems to be an gstreamer vaapi plugin.

VAAPI != VDPAU (even though there are ways to use one through anouther), and please keep in mind that libvdpau-sunxi implementation is minimal enough to get players like mpv, mplayer and vlc working.

Link to comment
Share on other sites

On 29.6.2017 at 4:46 PM, zador.blood.stained said:

Video decoding

Jup, i always mix these two words up. Sorry for that.

 

 I meant using vdpau in gstreamer with gstreamer1.0-vaapi and vdpau-va-driver.

 

And it perfectly works, just tested it using parole (videoplayer using gstreamer). So the rygel thing should also work :). Playing youtube videos with midori/qupzilla/firefox does not work very well though.

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines