Skip to content

Commit 4a77a3b

Browse files
committed
Update FAQ
1 parent 20672bd commit 4a77a3b

File tree

1 file changed

+27
-2
lines changed

1 file changed

+27
-2
lines changed

apps/website/docs/faq.md

Lines changed: 27 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,36 @@
11
# FAQ
22

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+
328
### What is the license of ffmpeg.wasm?
429

530
There are two components inside ffmpeg.wasm:
631

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)
934

1035
@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).
1136

0 commit comments

Comments
 (0)