ffmpegwasm / ffmpegwasm/ffmpeg.wasm

help building for mobile

未关闭
#267 8 条评论 4 个 reaction 已指派 0 人 在 GitHub 查看
主要语言
C
星标
17.8k
派生
1.1k
PR 合并指标
30 天内没有已合并 PR

描述

HI!

I'm new here, I loved this work, an amazing work, very thanks to produce this.
But I'm facing some problems and I need some help, I tried my best.
I'm trying to run this for mobile, latest chrome, I got the next error:
`Uncaught (in promise) RangeError: WebAssembly.Memory(): could not allocate memory`
I searched here, I must build the `ffmpeg` with 0.5 GB or less.
I did, after facing problems and hours.

Then I got this error:
`Uncaught (in promise) RuntimeError: abort(Assertion failed: Cannot call unknown function proxy_main, make sure it is exported). Build with -s ASSERTIONS=1 for more info`
Searched, I must replace `proxy_main` with `main`, I did

And finally worked!
But what? After selecting the audio, the browser freeze!
I opened console, got this:
`[fferr] Blocking on the main thread is very dangerous, see https://emscripten.org/docs/porting/pthreads.html#blocking-on-the-main-browser-thread`

Now... what?
The build process takes 2 hours to end, this happens with `-s INITIAL_MEMORY=268435456` ~= 256MB of ram.
Is 256MB is the reason?
Or what can i do?

And if anyone built this for mobile and worked, can I get the built?

Thanks, and thanks for reading

贡献指南

打开贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。