使用ffmpeg+nginx实现直播推流与拉流播放(c++实现)

备份自用。

参考:膜拜大佬。

https://blog.csdn.net/TaiJi1985/article/details/50867480

https://blog.csdn.net/leixiaohua1020/article/details/39803457

需要配置好nginx+rtmp。可参考:https://blog.csdn.net/qq_37437983/article/details/108082177

---------------------------------------------------------------------------------

push 

#include <stdio.h>

#define __STDC_CONSTANT_MACROS

extern "C"
{
	#include <libavcodec/avcodec.h>
	#include <libavformat/avformat.h>
	#include <libswscale/swscale.h>
	#include <libavutil/mathematics.h>
	#include <libavutil/time.h>
	#include <libavdevice/avdevice.h>
};

int main(int argc, char* argv[])
{
	AVOutputFor

猜你喜欢

转载自blog.csdn.net/qq_37437983/article/details/108368498