yexindonglai@163.com
2024-07-30 10:29
FFmpeg
407°
0
首先打开clion,新建一个c++的cmake项目,CMakeLists.txt文件内容如下cmake_minimum_required(VERSION3.27)project(demo)set(CMAKE_CXX_STANDARD11)#引入ffmpeg头文件include_directories(D:\\cpp\\ffmpeg-n7.0-latest-win64-gpl-shared-7.0\\include)#指定ffmpeg库文件link_directories(D:\\cpp\\ffmpeg-n7.0-latest-win64-gpl-shared-7.0\\lib)add_exec