Cannot build h.264
Angramme opened this issue · comments
I am trying to add support for H.264 aka AVC1 in my app because it is the most widely supported and common format right now, despite the issues with patents.
I am trying to build the h264-aac-avf
variant with the make build-h264-aac-avf
command. It gets stuck at
emcc: error: --memory-init-file is no longer supported.
(I have linked the error log log.txt). I wonder if I could get it to work with an older version of emscripten. Could you kindly provide the version number of emscripten you use to compile and test the variants? Or maybe im completely missing the issue and it is not in fact the version of emscripten.
Thank you in advance for your help :)
details:
I'm on the latest version of libav.js: commit 2525f3b (HEAD -> master, origin/master, origin/HEAD)
GNU Make 3.81
NPM version 10.5.0
NODE v21.7.1
EMCC emscripten versions:emcc (Emscripten gcc/clang-like replacement + linker emulating GNU ld) 3.1.55-git
clang version 19.0.0git
Target: wasm32-unknown-emscripten
Thread model: posix
InstalledDir: /opt/homebrew/Cellar/emscripten/3.1.55/libexec/llvm/bin
Emscripten recently removed this flag. I was only using the flag to say not to use a memory init file, but annoyingly, when they removed the feature (what I wanted all along), they also removed the flag, even to say not to use it @_@ . I'll remove it from the Makefile.
(Regarding H.264, if I was so opposed to people using H.264 at all, I wouldn't have merged support for it. If you're so desperate to shoot yourself in the foot, be my guest.)
Thanks for solving it!