Github https://github.com/gongluck/FFmpeg4.0-study/tree/master/Cff CSwr.h /******************************************************************* * Copyright(c) 2019 * All rights reserved. * * 文件名称: CSwr.h * 简要描述: 重采样 * * 作者: gongluck * 说明: * **********…
Github https://github.com/gongluck/FFmpeg4.0-study/blob/master/official%20example/my_example.cpp #include <iostream> #include <fstream> //#define NOVIDEO //不解码视频 //#define NOSAVEYUV //不保存YUV //#define SWSCALE //视频帧转换,需禁用NOVIDEO和HWDECODE //#def…
一.包含头文件和库文件 修改CMakeLists # swresample add_library(swresample SHARED IMPORTED) set_target_properties(swresample PROPERTIES IMPORTED_LOCATION ${FF}/libswresample.so) 更新target_link_libraries target_link_libraries( # Specifies the target library. native-…
Github https://github.com/gongluck/FFmpeg4.0-study/tree/master/Cff CDemux.h /******************************************************************* * Copyright(c) 2019 * All rights reserved. * * 文件名称: CDemux.h * 简要描述: 解封装 * * 作者: gongluck * 说明: * ******…
Github https://github.com/gongluck/FFmpeg4.0-study/tree/master/Cff CDecode.h /******************************************************************* * Copyright(c) 2019 * All rights reserved. * * 文件名称: CDecode.h * 简要描述: 解码 * * 作者: gongluck * 说明: * *****…
Github https://github.com/gongluck/FFmpeg4.0-study/tree/master/Cff CSws.h /******************************************************************* * Copyright(c) 2019 * All rights reserved. * * 文件名称: CSws.h * 简要描述: 帧转换 * * 作者: gongluck * 说明: * **********…
Github https://github.com/gongluck/FFmpeg4.0-study.git #include <iostream> using namespace std; extern "C" { #include "libavformat/avformat.h" #include "libavutil/time.h" } #pragma comment(lib, "avformat.lib")…
Github: https://github.com/gongluck/FFmpeg4.0-study.git #include <iostream> using namespace std; extern "C" { #include "libavformat/avformat.h" #include "libavutil/time.h" } #pragma comment(lib, "avformat.lib"…
0.下载TDM.msys和yasm 1.安装TDM-GCC-64 2.安装msys到TDM-GCC的安装目录中 3.将call "C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Auxiliary\Build\vcvars32.bat"加到msys.bat的第一行中 4.复制yasm-1.3.0-win64.exe(重命名为yasm.exe)到msys的bin目录下 5.重命名msys的bin目录下的li…
Github https://github.com/gongluck/FFmpeg4.0-study/tree/master/Cff // 采集系统声音 void test_systemsound() { bool ret = false; std::string err; CDemux demux; CDecode decode; ret = demux.device_register_all(err); TESTCHECKRET(ret); ret = demux.set_input_for…