10 hours of debugging: x264 not found using pkg-config (FFmpeg, Emscripten and WebAssembly)

I d spent a few days developing a feature to record the animation in our Jen application. Basically, there is an image port with some image, and then there is a [ ]