php wasm,jihonghai

FFmpeg.wasm Core

ffmpeg.svg

badge.svg?branch=n4.3.1-wasm

latest

Maintained%3F-yes-green.svg

core.svg

core.svg

This is the core part of FFmpeg.wasm where we transpile C/C++ code of FFmpeg to JavaScript/WebAssembly code. It is still very experimental (and slow), but shows the possibilities of using FFmpeg purely in the browser.

If you have any issues for this repository, please put it here: https://github.com/ffmpegwasm/ffmpeg.wasm/issues

Setup

$ git clone https://github.com/ffmpegwasm/ffmpeg.wasm-core

$ git submodule update --init --recursive

Build

Use docker (easy way)

Install latest docker and run build-with-docker.sh.

$ bash build-with-docker.sh

Install emsdk (unstable way)

Setup the emsdk from HERE and run build.sh.

$ bash build.sh

If nothing goes wrong, you can find JavaScript files in wasm/dist.

Test

Once the build completes, you can test with following scripts:

$ cd wasm

$ npm install

$ npm test

Configuration

Base

Library/Tool Name

Version

Remark

Emscripten

2.0.8

FFmpeg

4.3.1

Video

Library/Tool Name

Version

Remark

x264

0.160.x

mp4 format

x265

3.4

mp4 format, only works with -pix_fmt yuv420p10le and -pix_fmt yuv420p12le

libvpx

1.9.0

webm format

theora

1.1.1

ogv format

aom

1.0.0

mkv format, extremely slow (takes over 120s for 1s video), not recommended to use

Audio

Library/Tool Name

Version

Remark

wavpack

5.3.0

wav/wv format

lame

3.100

mp3 format

fdk-aac

2.0.1

aac format

ogg

1.3.4

required by vorbis

vorbis

1.3.6

ogg format

opus

1.3.1

opus format

Others

Library/Tool Name

Version

Remark

freetype2

2.10.4

font file support

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值