A frame sequence player with a BPG encoded file (H.265 / HEVC) as its source. It uses a web worker to decode an animated BPG file.
Highly experimental. Currently crashing my iPhone 6.
- ffmpeg
brew install ffmpeg
see: https://www.ffmpeg.org/ - libbpg
brew install libbpg
see: https://github.com/mirrorer/libbpg - pngquand
brew install pngquant
see: https://github.com/pornel/pngquant
ffmpeg -i input.mp4 -vf fps=30 -vf scale=720:-1 anim%d.png
pngquant *.png --quality=70 --skip-if-larger
bpgenc -a anim%2d.png -fps 30 -loop 0 -o anim.bpg
For more info go here: http://bellard.org/bpg/
See the example directory.
You need to have node and npm installed to be able to work on this code.
npm install
npm run dev
- Has a watcher
Start a local server in the root (e.g. php -S localhost:3000) and visit: http://localhost:3000/example
Make sure to use the proper webworker URL (see ./example/index.html). It is currently copied into the lib folder next to BPGFramePlayer.js
npm run build
- Same as npm run dev
but uglified and without watcher...