|
1 | 1 | # FAQ
|
2 | 2 |
|
| 3 | +### Why ffmpeg.wasm doesn't support nodejs? |
| 4 | + |
| 5 | +ffmpeg.wasm did support nodejs before 0.12.0, but decided to discontinue nodejs support due to: |
| 6 | + |
| 7 | +- It takes extra effort to maintain nodejs support |
| 8 | +- If you are not in browser, there are a lot of better choices than using WebAssembly for a better performance, ex: |
| 9 | + - nodejs: https://www.npmjs.com/package/fluent-ffmpeg |
| 10 | + - react-native: https://github.com/arthenica/ffmpeg-kit |
| 11 | + |
| 12 | +Of course, it is still highly welcome to contribute a nodejs version of ffmpeg.wasm. |
| 13 | + |
| 14 | +### Why ffmpeg.wasm is so slow comparing to ffmpeg? |
| 15 | + |
| 16 | +As of now, WebAssembly is still a lot slower than native, it is possible to further speed up using |
| 17 | +WebAssembly intrinsic, which basically wrting assembly code. It is something we are investigating |
| 18 | +and hope to introduce in the future. |
| 19 | + |
| 20 | +If you are OK with more unstable version of ffmpeg.wasm, using ffmpeg.wasm multithread (mt) version |
| 21 | +can have around 2x speed comparing to single thread (but consume a lot more memory and cpu) |
| 22 | + |
| 23 | +### Is RTSP supported by ffmpeg.wasm? |
| 24 | + |
| 25 | +We are trying to support, but so far WebAssembly itself lack of features like sockets which makes |
| 26 | +it hard to implement RTSP protocol. Possible workarounds are still under investigation. |
| 27 | + |
3 | 28 | ### What is the license of ffmpeg.wasm?
|
4 | 29 |
|
5 | 30 | There are two components inside ffmpeg.wasm:
|
6 | 31 |
|
7 |
| -- @ffmpeg/ffmpeg (https://github.com/ffmpegwasm/ffmpeg.wasm) |
8 |
| -- @ffmpeg/core (https://github.com/ffmpegwasm/ffmpeg.wasm-core) |
| 32 | +- @ffmpeg/ffmpeg (https://github.com/ffmpegwasm/ffmpeg.wasm/packages/ffmpeg) |
| 33 | +- @ffmpeg/core (https://github.com/ffmpegwasm/ffmpeg.wasm/packages/core) |
9 | 34 |
|
10 | 35 | @ffmpeg/core contains WebAssembly code which is transpiled from original FFmpeg C code with minor modifications, but overall it still following the same licenses as FFmpeg and its external libraries (as each external libraries might have its own license).
|
11 | 36 |
|
|
0 commit comments