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 CSwr.h /******************************************************************* * Copyright(c) 2019 * All rights reserved. * * 文件名称: CSwr.h * 简要描述: 重采样 * * 作者: gongluck * 说明: * **********…
一.解封装基本流程 ①av_register_All()////初始化解封装,注册解析和封装的格式. ②avformat_netword_init()//初始化网络,解析rtsp协议 ③avformat_open_init()//打开 ④avformat_find_stream_info()//探测 ⑤av_find_best_stream() //获取音视频的索引 ⑥av_read_Frame()//读一帧数据,音频可能好几帧.视频是I帧 ⑦av_seek_frame()//跳转 二.函数介绍…
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/blob/master/official%20example/my_example.cpp #include <iostream> #include <fstream> //#define NOVIDEO //不解码视频 //#define NOSAVEYUV //不保存YUV //#define SWSCALE //视频帧转换,需禁用NOVIDEO和HWDECODE //#def…
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…