Skip to content

Commit

Permalink
First attempt at compiling VP9 encoder
Browse files Browse the repository at this point in the history
  • Loading branch information
Joe-Palmer committed Mar 12, 2019
1 parent 07daa9b commit 6598e3a
Show file tree
Hide file tree
Showing 9 changed files with 8 additions and 12 deletions.
1 change: 0 additions & 1 deletion build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@ test -n "$SKIP_LIBVPX" || (
mkdir build-vpx; cd build-vpx
emconfigure ../node_modules/libvpx/configure \
--disable-vp9-decoder \
--disable-vp9-encoder \
--disable-vp8-decoder \
--target=generic-gnu
emmake make
Expand Down
2 changes: 1 addition & 1 deletion demo/live.html
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ <h1>Live webm wasm demo</h1>

const mediaSource = new MediaSource();
mediaSource.onsourceopen = () => {
const sourceBuffer = mediaSource.addSourceBuffer(`video/webm; codecs="vp8"`);
const sourceBuffer = mediaSource.addSourceBuffer(`video/webm; codecs="vp9"`);
worker.onmessage = ev => {
if(!ev.data) {
return mediaSource.endOfStream();
Expand Down
2 changes: 1 addition & 1 deletion dist/webm-transformstreamworker.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/webm-transformstreamworker.js.map

Large diffs are not rendered by default.

7 changes: 2 additions & 5 deletions dist/webm-wasm.js

Large diffs are not rendered by default.

Binary file modified dist/webm-wasm.wasm
Binary file not shown.
2 changes: 1 addition & 1 deletion dist/webm-worker.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/webm-worker.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/webm-wasm.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ class WebmEncoder {
vpx_codec_ctx_t ctx;
unsigned int frame_cnt = 0;
vpx_codec_enc_cfg_t cfg;
vpx_codec_iface_t* iface = vpx_codec_vp8_cx();
vpx_codec_iface_t* iface = vpx_codec_vp9_cx();
vpx_image_t *img;
std::string last_error;
IMkvWriter *mkv_writer;
Expand Down

0 comments on commit 6598e3a

Please sign in to comment.