资源简介

利用ffmpeg实现桌面采集功能,采集桌面后进行解码,图像转换为YUV420P格式,在经过h264编码,最后通过网络TCP协议进行发送。代码可以编译,在没有网络接收服务器的情况下,可将编码后的packet保存成本地的.h264文件

资源截图

代码片段和文件信息

// capture.cpp : 定义控制台应用程序的入口点。
//

#include “stdafx.h“
#include “ff_capture.h“

int _tmain(int argc _TCHAR* argv[])
{
ff_capture* pcapture = new ff_capture();
pcapture->ff_init();
//  while(1)
//  {
//  Sleep(10);
//  }
return 0;
}


 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2018-09-14 11:19  screen-capture\
     目录           0  2018-09-14 11:19  screen-capture\Debug\
     文件      303616  2018-04-24 18:11  screen-capture\Debug\SDL.dll
     文件    18936320  2018-04-24 18:11  screen-capture\Debug\avcodec-55.dll
     文件     1340928  2018-04-24 18:11  screen-capture\Debug\avdevice-55.dll
     文件     2034688  2018-04-24 18:11  screen-capture\Debug\avfilter-4.dll
     文件     5342720  2018-04-24 18:11  screen-capture\Debug\avformat-55.dll
     文件      418304  2018-04-24 18:11  screen-capture\Debug\avutil-52.dll
     文件       44544  2018-09-14 11:19  screen-capture\Debug\capture.exe
     文件      438460  2018-09-14 11:19  screen-capture\Debug\capture.ilk
     文件      617472  2018-09-14 11:19  screen-capture\Debug\capture.pdb
     文件      121344  2018-04-24 18:11  screen-capture\Debug\postproc-52.dll
     文件      275968  2018-04-24 18:11  screen-capture\Debug\swresample-0.dll
     文件      434176  2018-04-24 18:11  screen-capture\Debug\swscale-2.dll
     目录           0  2018-09-14 11:19  screen-capture\capture\
     文件        1553  2018-07-17 18:58  screen-capture\capture\ReadMe.txt
     目录           0  2018-09-14 11:18  screen-capture\capture\avinclude\
     目录           0  2018-09-14 11:17  screen-capture\capture\avinclude\SDL\
     文件        3334  2018-05-23 15:11  screen-capture\capture\avinclude\SDL\SDL.h
     文件        1996  2018-05-23 15:11  screen-capture\capture\avinclude\SDL\SDL_active.h
     文件       11499  2018-05-23 15:11  screen-capture\capture\avinclude\SDL\SDL_audio.h
     文件        1015  2018-05-23 15:11  screen-capture\capture\avinclude\SDL\SDL_byteorder.h
     文件        6250  2018-05-23 15:11  screen-capture\capture\avinclude\SDL\SDL_cdrom.h
     文件        1519  2018-05-23 15:11  screen-capture\capture\avinclude\SDL\SDL_config.h
     文件        2909  2018-05-23 15:11  screen-capture\capture\avinclude\SDL\SDL_config_dreamcast.h
     文件        2913  2018-05-23 15:11  screen-capture\capture\avinclude\SDL\SDL_config_macos.h
     文件        4343  2018-05-23 15:11  screen-capture\capture\avinclude\SDL\SDL_config_macosx.h
     文件        2044  2018-05-23 15:11  screen-capture\capture\avinclude\SDL\SDL_config_minimal.h
     文件        3094  2018-05-23 15:11  screen-capture\capture\avinclude\SDL\SDL_config_nds.h
     文件        3776  2018-05-23 15:11  screen-capture\capture\avinclude\SDL\SDL_config_os2.h
     文件        3253  2018-05-23 15:11  screen-capture\capture\avinclude\SDL\SDL_config_symbian.h
............此处省略145个文件信息

评论

共有 条评论