ffmpeg本地视频文件直播推流+web播放器无插件直播

这个场景中,我们可以直接利用强大的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

此时流媒体服务提供了另外的两路流

Web直播/点播播放器

点击使用liveplayer进行播放

也可以使用流媒体服务提供的播放器服务http://demo.liveqing.com:10080/LivePlayer.html

点击下面的地址即可播放http://demo.liveqing.com:10080/LivePlayer.html?videoUrl=rtmp://demo.liveqing.com:10085/hls/marvin1311

http://demo.liveqing.com:10080/LivePlayer.html?videoUrl=http://demo.liveqing.com:10080/hls/marvin1311/marvin1311_live.m3u8

http://demo.liveqing.com:10080/LivePlayer.html?videoUrl=http://demo.liveqing.com:10080/flv/hls/marvin1311.flv

 

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值