emscripten-core / emscripten-core/emsdk
Compiling libavcodec with emscripten (with hardware acceleration)
- Dominant language
- Python
- Stars
- 3.7k
- Forks
- 821
- Avg merge
- 1h 25m
- Merged PRs (30d)
- 3
Description
We are building a WASM that performs decoding of video streams on the browser using ffmpeg's libavcodec. However we would like to take advantage of the hw accelerators present on the browser/system hardware for the same.
@kripken Does WASM support accessing these accelerators on the browser? If yes what are the flags that we need to enable to get it to work. My current configuration is like below.
emconfigure ./configure --cc="emcc" --cxx="em++" --ar="emar" --prefix=$(pwd)/../decoder_wasm/ffmpeg --enable-cross-compile --target-os=none --arch=x86_64 --cpu=generic --enable-gpl --enable-version3 --disable-avdevice --disable-avformat --disable-swresample --disable-postproc --disable-avfilter --disable-programs --disable-logging --disable-everything --disable-ffplay --disable-ffprobe --disable-asm --disable-doc --enable-devices --disable-network
--enable-hwaccels --disable-parsers --disable-bsfs --disable-debug --disable-protocols --disable-indevs --disable-outdevs --enable-decoder=hevc --enable-parser=hevc --enable-decoder=mpeg4 --enable-parser=mpeg4video --enable-decoder=h264 --enable-parser=h264
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.