FFmpeg to WASM build setup + Vue app.

This commit is contained in:
Alf
2020-09-23 19:06:40 -07:00
commit 711903032c
20 changed files with 12826 additions and 0 deletions

8
Makefile Normal file
View File

@@ -0,0 +1,8 @@
dist/ffmpeg-webtools.js:
mkdir -p dist && \
emcc -L/opt/ffmpeg/lib -I/opt/ffmpeg/include/ src/main.c \
-s EXPORTED_FUNCTIONS='["_version", "_openfile"]' \
-s EXTRA_EXPORTED_RUNTIME_METHODS="[FS, cwrap, ccall, setValue, writeAsciiToMemory]" \
-s INITIAL_MEMORY=268435456 \
-lavcodec -lavformat -lavfilter -lavdevice -lswresample -lswscale -lavutil -lm -lx264 -pthread \
-o $@