pieter
Posts: 34
Joined: Mon Aug 22, 2011 7:12 am
Contact: Website

Re: webm

Fri Oct 14, 2011 6:19 am

What I would love to see is gpu support for webm. Since flash support is not likely (need adobe for that), webm would be great. That way I could put youtube on html5 mode and view most if not all youtube 'movies'.

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

Re: webm

Fri Oct 14, 2011 11:26 am

I think we have a software implementation of webm on the GPU, but, like Theora, it's experimental, and I'm not sure it's exposed to the Linux world. It's also not HW accelerated at this stage.

Two or so years ago, I ported Flashlite to run on an Arm linux device using the VideoCore OpenVG accelerated backend. Handed project over once it was prototyped. Never saw it again. Not sure what Adobe's plans are in this area. There are though lots of Arm devices that do run flash, but it's all custom builds.
Principal Software Engineer at Raspberry Pi (Trading) Ltd.
Contrary to popular belief, humorous signatures are allowed. Here's an example...
“I own the world’s worst thesaurus. Not only is it awful, it’s awful."

pieter
Posts: 34
Joined: Mon Aug 22, 2011 7:12 am
Contact: Website

Re: webm

Fri Oct 14, 2011 1:54 pm

I'm a Archos user (Archos 7 internet Tablet).
Accelerated Flash was promised to be available at release but we had to wait for about 7 months before it was released and even then Archos had to do something in there android implementation itself to make it run the default flash client fast enough.
From what I understood back then was that Archos already had accelerated flash for a couple of months but had to wait for Adobe to aprove it. It was rumored that even Samsung was waiting for Adobe to aprove accelerated flash.

As long as youtube (in html5/webm mode) is useable I'm happy, even in non-HD mode :-)

User avatar
emercer
Posts: 165
Joined: Sun Aug 07, 2011 1:54 am
Location: Sao Paulo, Brazil
Contact: Website

Re: webm

Fri Oct 14, 2011 4:21 pm

Gnash has some support for hardware acceleration (nominally, VA API, OMAP and some other options). Maybe it can be made to run accelerated on the Pi?

portets
Posts: 186
Joined: Sat Oct 29, 2011 6:24 am

Re: webm

Thu Nov 03, 2011 7:10 am

Quote from jamesh on October 14, 2011, 12:26
I think we have a software implementation of webm on the GPU, but, like Theora, it's experimental, and I'm not sure it's exposed to the Linux world. It's also not HW accelerated at this stage.


according to: http://www.broadcom.com/press/.....id=s471536

The VideoCore processor utilizes a hybrid architecture with programmable hardware accelerators. This allows rapid support of new audio or video codecs, enabling hardware-based codec performance earlier to market, typically within 3 to 6 months of development start.

The WebM multimedia format is currently in development and expected to be available to VideoCore customers in Q3 2010. Broadcom worked with Google during the definition phase of the VP8 video codec included in WebM, reviewing the architecture's suitability for mobile applications.

and lastly:

The highly flexible architecture of the Broadcom® BCM2763 VideoCore IV processor will enable it to support WebM video up to WVGA (800 x 640) resolution at 30 frames per second (fps).

so being that the bcm2763 and bcm2835 are so similar, the 2835 should be able to do at least that, or better. and this was posted by broadcom almost a year and a half ago, so i can't see why the bcm2835 wouldn't support webm in hardware. shouldn't broadcom already have the code for this?

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

Re: webm

Thu Nov 03, 2011 3:32 pm

Depends what you mean by support in HW. We can decode WebM on the GPU, but I think it's a software only implementation. i.e. doesn't make use of the hardware blocks. The Videocore is a combination platform - it has a processing core which runs 'normal' software albeit with vector extension, plus lots of HW blocks for dedicated tasks. So, it may decode stuff separately from the host processor, but it may not be HW accelerated in the conventional sense.

I'll try and get some more information on WebM when I get time - very busy with 'real' work at the moment.
Principal Software Engineer at Raspberry Pi (Trading) Ltd.
Contrary to popular belief, humorous signatures are allowed. Here's an example...
“I own the world’s worst thesaurus. Not only is it awful, it’s awful."

portets
Posts: 186
Joined: Sat Oct 29, 2011 6:24 am

Re: webm

Fri Nov 04, 2011 2:58 am

Quote from jamesh on November 3, 2011, 15:32
So, it may decode stuff separately from the host processor, but it may not be HW accelerated in the conventional sense.

better than cpu decode at least. i bet the cpu would be more tied up while web browsing, so any offloading helps. any rough performance figures like highest comfortable resolution with webm?

I'll try and get some more information on WebM when I get time - very busy with 'real' work at the moment.

no rush, thanks for the info. :)

oh, and is h.264 the only "truly" hw accelerated video format?

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

Re: webm

Fri Nov 04, 2011 9:10 am

Not sure - would need to ask the codec team. I think MP4 is also accelerated (but then H264 is just MP4 11 anyway).
Principal Software Engineer at Raspberry Pi (Trading) Ltd.
Contrary to popular belief, humorous signatures are allowed. Here's an example...
“I own the world’s worst thesaurus. Not only is it awful, it’s awful."

darethehair
Posts: 8
Joined: Mon Dec 05, 2011 9:41 pm
Contact: Website

Re: webm

Wed Jan 25, 2012 8:10 pm

Any updates to this query? I am interested in HW support for WebM as well.

elatllat
Posts: 1337
Joined: Sat Dec 17, 2011 5:05 pm

Re: webm

Tue Jan 31, 2012 3:36 pm

SBC with 32GB RAM: https://hardkernel.com

FAQ : https://raspberrypi.stackexchange.com

Unanswered: https://www.raspberrypi.org/forums/search.php?search_id=unanswered

Gaute
Posts: 1
Joined: Tue Sep 06, 2011 2:48 pm

Re: webm

Tue Jan 31, 2012 5:06 pm

JamesH said:


Depends what you mean by support in HW. We can decode WebM on the GPU, but I think it"s a software only implementation. i.e. doesn"t make use of the hardware blocks. The Videocore is a combination platform - it has a processing core which runs "normal" software albeit with vector extension, plus lots of HW blocks for dedicated tasks. So, it may decode stuff separately from the host processor, but it may not be HW accelerated in the conventional sense.

I"ll try and get some more information on WebM when I get time - very busy with "real" work at the moment.


That's basically right.  (I did the VideoCore VP8 port, I should know).  Feel free to come and bother me in the office about this at your convenience.

User avatar
liz
Raspberry Pi Foundation Employee & Forum Moderator
Raspberry Pi Foundation Employee & Forum Moderator
Posts: 5202
Joined: Thu Jul 28, 2011 7:22 pm
Contact: Website

Re: webm

Tue Jan 31, 2012 8:54 pm

Hi Gaute - and thank you!
Director of Communications, Raspberry Pi

elatllat
Posts: 1337
Joined: Sat Dec 17, 2011 5:05 pm

Re: webm

Wed Feb 01, 2012 3:58 pm

Gaute said:

(I did the VideoCore VP8 port, I should know).
Hi Gaute, any chance you can share what type of performance we can expect from VP8 on the R-Pi?
SBC with 32GB RAM: https://hardkernel.com

FAQ : https://raspberrypi.stackexchange.com

Unanswered: https://www.raspberrypi.org/forums/search.php?search_id=unanswered

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

Re: webm

Wed Feb 01, 2012 4:25 pm

elatllat said:


Gaute said:


(I did the VideoCore VP8 port, I should know).


Hi Gaute, any chance you can share what type of performance we can expect from VP8 on the R-Pi?


Spoke to Gaute yesterday about this - about  720p20 is top wack. But WVGA is fine at 30fps, so anything SD or slightly above should be good to go..
Principal Software Engineer at Raspberry Pi (Trading) Ltd.
Contrary to popular belief, humorous signatures are allowed. Here's an example...
“I own the world’s worst thesaurus. Not only is it awful, it’s awful."

elatllat
Posts: 1337
Joined: Sat Dec 17, 2011 5:05 pm

Re: webm

Thu Feb 02, 2012 5:09 am

Thanks James.

Also this link might be of far future relevance:

http://www.phoronix.com/scan.p.....px=MTA0OTQ
SBC with 32GB RAM: https://hardkernel.com

FAQ : https://raspberrypi.stackexchange.com

Unanswered: https://www.raspberrypi.org/forums/search.php?search_id=unanswered

gsh
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 1454
Joined: Sat Sep 10, 2011 11:43 am

Re: webm

Thu Feb 02, 2012 6:58 am

In terms of hardware decode:

H264, MPEG4, MPEG2 and VP1

Hardware encode:

H264 and MPEG4

But obviously as Liz says many of these are not exposed because of licensing issues

Gordon
--
Gordon Hollingworth PhD
Raspberry Pi - Director of Software Engineering

Return to “General discussion”