rclough
Posts: 1
Joined: Fri Mar 28, 2014 12:11 am

Current status of hw accelerated h.264decoding in browser?

Fri Mar 28, 2014 12:22 am

Hey guys,

I've seen a lot of old threads from 2012 and 13 about not being able to do h264 playing in the browser (or rather, Midori supports it, but its done in CPU and is basically useless)

I've seen some more recent threads talking about gstreamer 1.0 and vlc with hardware acceleration, and its unclear if theres a way to have webkit that references gstreamer 1.0?

Basically I'm trying to make a HDMI display that plays Vimeo h264 videos in a web browser (automatically scrolling through a playlist) and was wondering what the state of being able to do this is. I can compile my own versions if its necessary. If anyone has a knowledge on the topic, it would be super helpful.

jamesh
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 26716
Joined: Sat Jul 30, 2011 7:41 pm

Re: Current status of hw accelerated h.264decoding in browse

Fri Mar 28, 2014 8:19 am

PiPresents may do what you want I think, or something called Minimal Kiosk Browser? Cannot remember the exact names.
Principal Software Engineer at Raspberry Pi (Trading) Ltd.
Contrary to popular belief, humorous signatures are allowed.
I've been saying "Mucho" to my Spanish friend a lot more lately. It means a lot to him.

gkreidl
Posts: 6335
Joined: Thu Jan 26, 2012 1:07 pm
Location: Germany

Re: Current status of hw accelerated h.264decoding in browse

Fri Mar 28, 2014 9:57 am

At the moment the answer is simply: no.
The current webkit library is compiled against gstreamer-0.1 and cannot be compiled against 1.0. Compiling the newest webkit libs will require replacing really lots of other stuff first (and that might break other stuff).
The easiest way might be to migrate to Jessie first, but there is no gstreamer-1.0 with OpenMax support available for Jessie just now.
You can install gstreamer-1.0 with HW support for Raspbian and then try to compile webkitgtk 1.11.92 against it. This also requires a newer libsoup library, but nothing more. I haven't tried that yet. Please report here, if you have managed to do that.
In Minimal Kiosk Browser you can play vimeo videos (I haven't tried playlists, yet), but only full screen (after clicking on the Play icon in the toolbar). A new version of the kwebhelper.py script (soon to be published) will also play it (optionally) inside a player window.
If you manage to get webkitgtk 1.11.92 installed with gstreamer-1.0 support, you can test it in Minimal Kiosk Browser by disabling omxplayer support from the toolbar.
This might work with HTML5 video and also with direct stream or file links. If the website requires flash, you've got no chance to view anything inside the browser.
Minimal Kiosk Browser (kweb)
Slim, fast webkit browser with support for audio+video+playlists+youtube+pdf+download
Optional fullscreen kiosk mode and command interface for embedded applications
Includes omxplayerGUI, an X front end for omxplayer

rsmck
Posts: 5
Joined: Tue Aug 20, 2013 11:33 am
Location: Glasgow
Contact: Website

Re: Current status of hw accelerated h.264decoding in browse

Thu Jul 03, 2014 6:03 pm

At the risk of reviving an old thread, has any progress been made on this ?

It seems the libwebkit in Jessie is still using the older (non-OpenMax) gstreamer which is a bit disappointing - I'd have thought there'd have been a lot of demand for this.
http://rsmck.co.uk | @rsmck

gkreidl
Posts: 6335
Joined: Thu Jan 26, 2012 1:07 pm
Location: Germany

Re: Current status of hw accelerated h.264decoding in browse

Thu Jul 03, 2014 6:41 pm

Here is the root of the problem, still not solved, as far as I know:

http://www.raspberrypi.org/forums/viewt ... omx+jessie
Minimal Kiosk Browser (kweb)
Slim, fast webkit browser with support for audio+video+playlists+youtube+pdf+download
Optional fullscreen kiosk mode and command interface for embedded applications
Includes omxplayerGUI, an X front end for omxplayer

Return to “Raspberry Pi OS”