纪念雷神!
FFMPEG接收RTMP直播流保存成本地flv文件,程序来自雷神博客:http://blog.csdn.net/leixiaohua1020/article/details/46890487
in_filename = "rtmp://live.hkstv.hk.lxdns.com/live/hks";
//in_filename = "rtp://233.233.233.233:6666";
//out_filename = "receive.ts";
//out_filename = "receive.mkv";
out_filename = "receive.flv";
将输入文件改成自己的FMS服务器rtmp://localhost/live/livestream。使用FFMPEG推送RTMP流,发现该程序接收不到流信息。
将输入文件名改为:
in_filename = "rtmp://localhost/live/livestream live=1";
接收到流信息,保存成功!