footopk.blogg.se

Compile ffmpeg for windows on ubuntu
Compile ffmpeg for windows on ubuntu







Looking at the build_x264 compilation options, I found that there is such a sentence -extra-cflags=-DPTW32_STATIC_LIB. The reason is that if pthread-w32 is statically linked into the program, it needs to call pthread_win32_process_attach_np initialization at the beginning of the main() function, otherwise the program will crash. An error will still be reported: pthread_win32_process_detach_np The call failed here. So when ffmpeg uses -disable-pthreads,X264 will not be found.Īdd -enable-win32thread to the build_x264 build option. It turns out that build_x264 in the script does not use -enable-win32thread by default. Since compiling ffmpeg uses -disable-pthreads -enable-w32threadsĪlthough X264 compiles successfully, ffmpeg cannot be found when compiling ffmpeg.

compile ffmpeg for windows on ubuntu

However, some problems were encountered during the X264 compilation process. The environment used here is Ubuntu 13.04, and the script is still cross_compile_ffmpeg.sh Recompile ffmpeg+264+others due to project needs.

compile ffmpeg for windows on ubuntu

Here is mainly to add some encountered problems and solutions. Use script to cross compile ffmpeg + X264 used under windows under ubuntu









Compile ffmpeg for windows on ubuntu