The configure compilation script of ffmpeg executes different compilation logic according to different compilation methods. Pthread is not directly used in ffmpeg_ Create() and other linux specific api functions, so you can compile the source code of ffmpeg with MinGW or MSVC. The source code of fmpeg is common to linux, window s and other platforms. However, if you use the MinGW compiler, you can compile pthread in the window environment_ Code for create(). If it is compiled with MSVC compiler, an error will be reported. The above code uses a pthread in linux_ The create () thread function does not exist in the window environment. Pthread_create(&thread_id, NULL, PrintHello, NULL) What are the advantages of MinGW Compiler? Look at the code below /*linux api pthread_create()*/ MinGW and MSVC are two different compilers. After installing MSYS2, you can run the configure compilation script of ffmpeg. What is MSYS2? MSYS2 is actually a linux simulation environment. Since the native CMD command line of window cannot execute shell script and there are no commands such as make, MSYS2 software needs to be installed. There are two main compilation methods of ffmpeg in Windows 10 environment:
#Mingw64 cflags linux ffmpeg how to#
So this article explains how to compile the dll of ffmpeg. But the speed version of dll is ready-made. "Windows 10_ffmpeg debugging environment construction - speed version" has introduced debugging ffmpeg in qt creator C engineering. I share it with you: Linux, Nginx, ZeroMQ, MySQL, Redis, fastdfs, MongoDB, ZK, streaming media, CDN, P2P, K8S, Docker, TCP/IP, collaboration, DPDK and other technical contents, learn immediately Personally, I think the teacher speaks well. I recommend a free open course of zero sound college.