赞
踩
因为疫情,开学推迟了,改成网上直播,突然想到自己能不能实现一下直播,就开始了我的踩坑之旅
需要安装obs,直播流服务器
直播流服务器有好多种
[root@VM_0_2_centos ~]# docker search red5 NAME DESCRIPTION STARS OFFICIAL AUTOMATED mondain/red5 18 [OK] red5d/docker-autocompose Generates a docker-compose yaml definition... 8 [OK] pmoust/red5 Red5 is an Open Source Streaming Server 3 [OK] cbeer/red5 2 [OK] red56/capybara-webkit-deps Dependencies for rails tests using capybar... 1 [OK] red5pro/server Docker image for Red5 Pro server 1 vimagick/red5 An Open Source Flash Server written in Java 1 [OK] red54/debian Red54.com Debian image. 1 [OK] red5d/tools Alpine image with several sysadmin tools t... 1 [OK] saggafarsyad/red5pro-server Red5 Pro Streaming Server Implementation u... 0 xlgao/red5-server red5 server with jre 0 superdell/red5-server red5-server 0 red55/tao 0 wawalvo/red5test red5test 0 red5d/nexposerb Image for working with the Ruby interface ... 0 [OK] red5d/krill Krill feed reader 0 [OK] red5d/opentaxii Alpine-based image for the opentaxii server. 0 [OK] avalonmediasystem/red5 RTMP streaming server for Avalon 0 red5bongo/generic-dockerfile My generic dockerfile 0 [OK] red56/docker-ruby-ffprobe Container with an up-to-date ruby and ffpr... 0 [OK] asphalt23/red5 0 tcrespog/red5 Red5 Server core (https://github.com/Red5/... 0 red5bongo/sinatra 0 red5d/rails-minimal Minimal Ruby-on-Rails image. Created using... 0 rjeczalik/red5 [root@VM_0_2_centos ~]# docker search livego NAME DESCRIPTION STARS OFFICIAL AUTOMATED monelgq/rtmp-httpflv 直播服务器 livego 的docker镜像 2 [OK] aute/hks-http-flv-live 基于 ffmpeg 与 Livego,将香港卫视 RTMP 直播流转为 HTTP-F... 1 [OK] teletraan/livego golang video server 0 vanlon2014513/livego 0 james201293/livego_phpmyadmin 0 james201293/livego_web 0 gwuhaolin/livego https://github.com/gwuhaolin/livego
我试过了mondain/red5和alfg/nginx-rtmp,monelgq/rtmp-httpflv
mondain/red5和alfg/nginx-rtmp 支持rtmp 必须要flash
monelgq/rtmp-httpflv支持 HTTP-FLV 可以用video
这里我选了monelgq/rtmp-httpflv
[root@VM_0_2_centos ~]# docker run -d -p 1935:1935 -p 7001:7001 monelgq/rtmp-httpflv
Unable to find image 'monelgq/rtmp-httpflv:latest' locally
latest: Pulling from monelgq/rtmp-httpflv
1160f4abea84: Pull complete
7d60b0c1e168: Pull complete
Digest: sha256:c3538c8d01d0ad953635d0895294631dff319d189e5a0cabdf646ce56bd346c2
Status: Downloaded newer image for monelgq/rtmp-httpflv:latest
b2c29dcef5ef325ee93b00fe56439c20d90898b9edf08b2b480de92dd50a0618
[root@VM_0_2_centos ~]# docker logs b2c29dcef5ef
2020/02/10 01:58:49 main.go:106: start livego, version 0.0.4
2020/02/10 01:58:
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。