Skip to content

Instantly share code, notes, and snippets.

@meisa233
Last active April 21, 2023 05:22
Show Gist options
  • Save meisa233/81b4ae143b34094199ca39019cd5963d to your computer and use it in GitHub Desktop.
Save meisa233/81b4ae143b34094199ca39019cd5963d to your computer and use it in GitHub Desktop.
Compile web-capture

Project link:https://github.com/jordiwang/web-capture

  1. Clone project
cd ~
git clone https://github.com/jordiwang/web-capture
  1. Download and install emsdk Official instruction link:https://emscripten.org/docs/getting_started/downloads.html
cd ~
git clone https://github.com/emscripten-core/emsdk.git
./emsdk install latest

# Make the "latest" SDK "active" for the current user. (writes .emscripten file)
./emsdk activate latest

# Activate PATH and other environment variables in the current terminal
source ./emsdk_env.sh

Note 1: the emsdk folder must be in the same directory as the web-capture folder.
Note 2: you must source ./emsdk_env.sh before compile ffmpeg-js.
3. Download ffmpeg

cd ~
wget http://ffmpeg.org/releases/ffmpeg-3.4.8.tar.xz
xvf ffmpeg-3.4.8.tar.xz
  1. Compile ffmpeg-js If you want to add compile option, modify the build_ffmpeg-emcc.sh
cd ~/web-capture/script
bash build_ffmpeg-emcc.sh
bash build.sh
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment