# ffmpeg.wasm **Repository Path**: ltp/ffmpeg.wasm ## Basic Information - **Project Name**: ffmpeg.wasm - **Description**: 把ffmpeg编译成wasm版本 - **Primary Language**: C - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 2 - **Forks**: 0 - **Created**: 2022-06-19 - **Last Updated**: 2023-06-01 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # 编译ffmpeg到wasm ## 准备ffmpeg > git clone -b release/5.0 --depth=1 https://git.ffmpeg.org/ffmpeg.git ffmpeg > > ./build_ffmpeg.sh ## 准备zlib ./lib目录下已经有libz.a,所以可以不用单独编译 > git clone https://github.com/madler/zlib.git zlib > > mkdir zlib/build_release > > cd zlib/build_release > > emcmake cmake -DCMAKE_BUILD_TYPE=Release .. > > make > > cp libz.a ../../lib ## 编译项目 > 修改CMakeLists.txt中 *BUILD_WASM* 为 **ON** > > emcmake cmake . > > emmake make