版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/Marvin1311/article/details/88759784
这个场景中,我们可以直接利用强大的ffmpeg将本地文件,以直播的方式输出
ffmpeg -re -stream_loop -1 -fflags +genpts -i F:\05CACHE\ss.mp4 -vcodec copy -acodec copy -strict -2 -f flv -y rtmp://demo.liveqing.com:10085/hls/marvin1311
此处的rtmp://demo.liveqing.com:10085/hls/test 是示例的推流服务地址
运行如下:
此时rtmp://demo.liveqing.com:10085/hls/marvin1311 也是播放地址
如何解决无插件直播?
除了一路
- rtmp://demo.liveqing.com:10085/hls/marvin1311
此时流媒体服务提供了另外的两路流
- http://demo.liveqing.com:10080/hls/marvin1311/marvin1311_live.m3u8
- http://demo.liveqing.com:10080/flv/hls/marvin1311.flv
Web直播/点播播放器
也可以使用流媒体服务提供的播放器服务
http://demo.liveqing.com:10080/LivePlayer.html
点击下面的地址即可播放
http://demo.liveqing.com:10080/LivePlayer.html?videoUrl=rtmp://demo.liveqing.com:10085/hls/marvin1311
扫描二维码关注公众号,回复:
5774356 查看本文章
获取更多信息
安防流媒体互联直播-QQ交流群:615081503
国标GB28181无插件LiveGBS-QQ交流群:947137753
Copyright © LiveQing.com 2016-2019