ffmpegwasm / ffmpegwasm/ffmpeg.wasm
Uncaught (in promise) RuntimeError: Aborted(CompileError: WebAssembly.instantiate(): expected magic word 00 61 73 6d, found 3c 21 44 4f @+0). Build with -sASSERTIONS for more info.
- Ngôn ngữ chính
- C
- Star
- 17.8k
- Fork
- 1.1k
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Mô tả
**Describe the bug**
I am running this webassembly in my React App.
**To Reproduce**
Please provide a GitHub link or code snippet.
`
const transcode = async (file) => {
await ffmpeg.load()
await ffmpeg.FS('writeFile', file?.name, await fetchFile(file))
await ffmpeg.run('-i', file?.name, '-c:v', 'h264', '-crf', '28', '-b:v', '0', 'row-mt', '1', '-f', `${getFileExtension(file?.name)}`, `out.${getFileExtension(file?.name)}`)
const data = await ffmpeg.FS('readFile', `out.${getFileExtension(file?.name)}`)
let chunk = URL.createObjectURL(new Blob([data.buffer], { type: `video/${getFileExtension(file?.name)}`}))
}
`
**Expected behavior**
I was trying compress a video file, but getting this error
**Screenshots**
If applicable, add screenshots to help explain your problem.
**Desktop (please complete the following information):**

Hướng dẫn đóng góp
Đánh giá
Issue này chưa được đánh giá.