Does the custom compilation functionality of this library still work? In 2024, are there still people who have successfully compiled it?
I am compiling through docker on a Windows 11 machine, but I always get a "Not found" error. I don't know if it's because my system environment doesn't support it or because this library hasn't been updated for a long time, so it can't run in some new environments. Here are the steps I took for the compilation:
-
Open Windows PowerShell, navigate to a specific directory, and run:
git clone https://github.com/Kagami/ffmpeg.js.git --recurse-submodules, as shown in the image: -
After the project is successfully cloned, I execute the command:
docker run --rm -it -v E:\FFMPEG\ffmpeg.js:/mnt -w /opt kagamihi/ffmpeg.js, as shown in the image, and successfully enter the docker system: -
Execute the build command:
cp -a /mnt/{.git,build,Makefile} . && source /root/emsdk/emsdk_env.sh && make && cp ffmpeg*.js /mnt. After a few minutes, this error will occur, showing "./autogen.sh: not found", as shown in the image: -
I tried to find the
autogen.shin the docker/mnt/build/opus, and it does exist, as shown in the image: -
I tried to delete the opus module in the Makefile, but then other dependency modules' "not found" errors will occur. I used ls to find these "not found" files, and they do exist.
Has any brother encountered the same problem when compiling this library? Can you provide your valuable advice? Thank you!
did you get anywhere with this? I'm loking for a solution to run ffmpeg on nodejs (specifically AWS lambda) and it seems like https://ffmpegwasm.netlify.app only works in the browser whereas this one claims to work in nodejs as well
Did you use --recurse-submodules when you did the git clone of this repo?
I went through things a little too fast and missed that and I had the same problem because in the Docker image /opt/build/opus was empty. Once I did a proper clone with that parameter, the missing autogen.sh was there. If the command cp -a /mnt/{.git,build,Makefile} . finished quite quickly, that's a sign that you didn't get the submodules properly. In the cloned directory try git submodule init to fix things. If that doesn't work, delete ./ffmpeg.js and reclone it with git clone https://github.com/Kagami/ffmpeg.js.git --recurse-submodules to make sure.
If you're not familiar with submodules in Git, read here.