王纲网络流转发
![](https://images.cnblogs.com/OutliningIndicators/ContractedBlock.gif)
#ifndef PCH_H #define PCH_H extern "C" { #include "libavutil/opt.h" #include "libavutil/channel_layout.h" #include "libavutil/common.h" #include "libavutil/imgutils.h" #include "libavutil/mathematics.h" #include "libavutil/samplefmt.h" #include "libavutil/time.h" #include "libavutil/fifo.h" #include "libavcodec/avcodec.h" #include "libavformat/avformat.h" #include "libavformat/avio.h" //#include "libavfilter/avfiltergraph.h" #include "libavfilter/avfilter.h" #include "libavfilter/buffersink.h" #include "libavfilter/buffersrc.h" #include "libswscale/swscale.h" #include "libswresample/swresample.h" } #endif
![](https://images.cnblogs.com/OutliningIndicators/ContractedBlock.gif)
注意事项:
1.RTMP服务器采用CRTMPSERVER,在ubuntu20.4安装的GCC编译不过,在16.04上可以编译过。
2.所加的路径和库名。
..\FFmpeg\include;
swscale.lib;avcodec.lib;avdevice.lib;avfilter.lib;avformat.lib;avutil.lib;postproc.lib;swresample.lib;
..\FFmpeg\lib;
3.属性-->C/C++-->常规-->SDL检查--》否(/sdl-)