Kagami / webm.js

JavaScript WebM converter
https://kagami.github.io/webm.js/
Creative Commons Zero v1.0 Universal
456 stars 33 forks source link

Software player performance #6

Closed Kagami closed 9 years ago

Kagami commented 9 years ago

I'm going to replace HTML5 player with software one, powered by ffmpeg's decoders, in order to be able to play and edit any video files. Realtime decoding is not that important since user may select heavyweight sources but it may be worth to think whether we can optimize it a bit.

I will start with simple and slow one-ffmpeg-call-per-one-frame, later we can try to adapt some ideas from ogv.js project.

Kagami commented 9 years ago

So I implemented primitive software decoder. Some ideas how it could be improved:

Kagami commented 9 years ago

Current implementation is slow and kludgy so it's not worth to tune it even more. Correct implementation will require separate build (player code with Emscripten interface linked to ffmpeg) and a lot of effort, but since our primary goal is encoding, it can wait for some time.