-
Notifications
You must be signed in to change notification settings - Fork 300
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Make build_lgpl.sh work with emscripten 1.31.0 #30
base: master
Are you sure you want to change the base?
Conversation
As you mentioned in #29 (comment), it seems x264 isn't working yet. So we shouldn't merge these changes to master yet, until we get that sorted out, correct? |
I wonder if we update to the latest sources for x264 if it will be worked out |
It seems x264's |
Which file are you talking about? If it's the build script, can you send up the change to this PR and then I will try and see if I can get a successful build running these changes? |
I modified
Compiling seems OK, but x264 is actually unusable. The demo reported "missing function: x264_cqm_init" when encoding with x264. |
574d4f9
to
311d8eb
Compare
The error "missing function: x264_cqm_init" has been fixed by building x264 as shared library. Now every thing should be OK. |
Some updates:
|
@duanyao this sounds great!! I'm taking a look now |
I ran |
Sorry for the delay. I build emscripten 1.32.1 from its repo's incoming branch. See this instruction: http://kripken.github.io/emscripten-site/docs/building_from_source/ |
You could also check ffmpeg.js. I added MP4 build with x264 and LAME encoders recently. |
Alright, so I got this build (mostly) working with emscripten 1.34.12 and it looks great! I'm not sure the workflow when I want to run ./pull_source again - I get errors like this:
@duanyao, am I supposed to |
@bgrins You may delete the cloned sources, revert *.patch files and re-run ./pull_source,sh. Maybe some patches are out of date, I'll check them later. |
OK, I had issues with running the build when libopus, libmp3lame, and openh264 were enabled, so I've commented them out for now and the build seems to work fine (this is at https://github.com/bgrins/videoconverter.js/tree/duanyao-master). Even in this state, it's just as good as the current build, and we have a set up that will make it easy to extend so I'd be happy to merge. One thing that would be nice though is if there were a way to either check out a particular release from the repos or at least save the current rev in a file in this project so someone could reconstruct the exact build without having the same local checkout. |
I'm going to look into the .mem file that's generated and see if we can disable that since it seems to make it harder to include in a worker (seems you need to put both files in the same dir as the worker). |
I updated the patches so that build_edge should work with latest x264, libvpx, openh264, lame, opus and emscripten 1.34.12. Maybe we can use git submodules to pin to specific versions. |
I also started a related project called codecbox.js:
|
Hi! Don't you know what's reason of error |
@nsi88 I'm not sure. It seems |
If to disable jpeg2000 encoder/decoder all is good |
@duanyao Hi, I am trying to build this version only with full_ffmpeg and lame, and I find
I am using Mac OS X 10.11 and I could not find solution on this, can u help me to find whats wrong with this? Also, the Thanks a lot! |
@DickyT It seems emscripten and fastcomp are not install properly. Can you build a simple C/C++ program with emscripten on your machine? |
@duanyao it seems doesn't work well. Thank you for your infomation, I'll try to re-configure emscripten!!! |
@duanyao I try to follow the official link to compile fastcomp and emscripten again, and I can use emscritpen to build my simple program, but the build.sh still print errors.
Does it means that I need a older version of LLVM to build this videoconverter.js? or there still some configuration error? |
@DickyT : When building emscripten from source, there are 3 repos should be at a same version: fastcomp: https://github.com/kripken/emscripten-fastcomp.git fastcomp-clang: https://github.com/kripken/emscripten-fastcomp-clang.git emscripten: https://github.com/kripken/emscripten.git Can you check this? |
What is the status of this? |
Guys, I'm running into an issue with when I try to compile using Emscripten the x264 process. I am using the latest version 1.38.11 and I keep getting this error: endian test failed Is there any thoughts/suggestions as to how to resolve it. I've tried getting get the older SDK mentioned in this thread, but it's no longer available in the EMScripten list of SDKs (./emsdk list --old). Any help would be appreciated. |
@ngivoni @duanyao I have the same problem, I'm running into an issue with when I try to compile using Emscripten the x264 process. Is there any thoughts/suggestions as to how to resolve it. Any help would be appreciated. |
Right, I've ran into the same issue (I see you were unsuccessful getting it to work a few years back). I've tried to compile the videoconverter.js using an older version of Emscripten 1.34.10, but I didn't have much luck. I've reached out to Kagami, bgrins and the other contributors, but without much luck. I've also tried the build Kagami made but without any luck either. Perhaps we can work through the issue together, as I'm eager to get this issue resolved. If you want to reach out off forum maybe we can get on Skype and come up with a game plan. My email is [email protected] |
@duanyao however the compiled with error as below '/home/ubuntu/emi/emsdk-portable/clang/e1.38.28_64bit/binaryen/bin/asm2wasm ../ffmpeg.temp.asm.js --total-memory=33554432 --trap-mode=allow -O3 --mem-init=../ffmpeg.js.mem --mem-base=1024 --wasm-only -o ../ffmpeg.wasm --mvp-features' failed (-9) did you try these options? the ffmpeg is 2014 build as it's fetched in the fetch_sources.sh |
No, I haven't tried. Sorry. Does the compiler show any details about the error? |
The files ffmpeg.js and ffmpeg_mem.js both updated and times stambs changed. However when input the rtmp in the player, still shows protocol not supported...ffmpeg stdout still shows --disable-network and --disable-protocols |
@vijaykumarchettiar I don't think you can make network and protocols of ffmpeg work out-of-box with emscipten, see Kagami/ffmpeg.js#11. |
Fix zlib and ffmpeg build issue #29.