Source Code of "VP8 - WebM JavaScript Decoder for every browser" is online

301 views
Skip to first unread message

Dominik Homberger

unread,
Oct 28, 2012, 3:26:04 PM10/28/12
to webm-d...@webmproject.org
Hi @all,

today i've released the source code of my hand ported vp8 webm javascript decoder. The decoder, that works with every web browser. I hope you are like the code and find something to optimize. It's time to change the internet. Javascript is the future for support new codecs until browser have implemented natively. VP8 is one of them. Feedback is very welcome.

Have fun! :-)

Here the link:
https://github.com/dominikhlbg/vp8-webm-javascript-decoder/

regards,
Dominik

kiranr...@gmail.com

unread,
May 5, 2017, 4:11:57 PM5/5/17
to WebM Discussion
Does the code support webm live streaming? I am currently working on a web page that fetches vp8 frames based on mouse click. I've tried with your code but it displays only the key frame. It cannot recognize the following inter-frames. It can only play a complete webm video. Any suggestions?

Brion Vibber

unread,
May 8, 2017, 12:06:57 PM5/8/17
to webm-d...@webmproject.org
If you can't get interframes working with that decoder, you might try some more recent projects:

* my ogv.js player includes an emscripten cross-compiled libvpx (VP8 and VP9): https://github.com/brion/ogv.js
* a hand-ported ES6 version of libvpx's VP8 decoder, which can be plugged into ogv.js: https://github.com/jscodec/jsvpx

ogv.js provides a player framework which the codec plugs in to, including WebGL-accelerated canvas drawing and Web Audio or Flash-based audio output. Note that the high-level interface currently assumes an HTTP-streamable file, but you can send arbitrary frame data into the codec manually if you wish. (A high-level MediaSource-alike interface for appending pre-muxed data to an input buffer will be added in the future, but isn't yet available.)

-- brion

--
You received this message because you are subscribed to the Google Groups "WebM Discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to webm-discuss+unsubscribe@webmproject.org.
To post to this group, send email to webm-d...@webmproject.org.
Visit this group at https://groups.google.com/a/webmproject.org/group/webm-discuss/.
For more options, visit https://groups.google.com/a/webmproject.org/d/optout.

Kiran Raj

unread,
Jun 12, 2017, 7:43:58 AM6/12/17
to webm-d...@webmproject.org
Thanks for the suggestions @Brion Vibber. Actually I got this decoder to work for vp8 interframes but it produces corrupted pixels when the keyframe interval is high(i.e. when key frame occurs for every 500 or 1000 interframes). The famous big buck bunny webm video widely found on the internet has approximately a key frame for every 30 interframes so it plays smooth. If you try to play the attached video(zzz.webm which containes a key frame followed by 334 interframes), you can see some pixels changing color but it does not happen in any other media players.

--
You received this message because you are subscribed to a topic in the Google Groups "WebM Discussion" group.
To unsubscribe from this topic, visit https://groups.google.com/a/webmproject.org/d/topic/webm-discuss/6EZpYnuh5JQ/unsubscribe.
To unsubscribe from this group and all its topics, send an email to webm-discuss+unsubscribe@webmproject.org.
zzz.webm

Cristian Lorenzetto

unread,
Jun 12, 2017, 8:04:34 AM6/12/17
to webm-d...@webmproject.org
it is very interesting ....

Brion Vibber is a great developer :) Anyway the code might be reorganized better in future above all for MSE with documentation. 
This project would require  funding for being followed. In dont understand why google gives funds for shaka player it is a trial player (with many other similar opensource) and not to Vipper project a lot more complex and important 

Kiran Raj

unread,
Sep 14, 2017, 3:09:29 AM9/14/17
to webm-d...@webmproject.org
I've been using this jsvpx decoder and I was wondering if it can scale down vp8 frames like mentioned in this link.

On Mon, May 8, 2017 at 9:36 PM, Brion Vibber <bvi...@wikimedia.org> wrote:

--
You received this message because you are subscribed to a topic in the Google Groups "WebM Discussion" group.
To unsubscribe from this topic, visit https://groups.google.com/a/webmproject.org/d/topic/webm-discuss/6EZpYnuh5JQ/unsubscribe.
To unsubscribe from this group and all its topics, send an email to webm-discuss+unsubscribe@webmproject.org.
Reply all
Reply to author
Forward
0 new messages