ubuntu安装nimble

ubuntu安装nimble

简介:一款好用的rtmp、rtsp、cmaf流服务器

ubuntu安装步骤参考文档:
https://wmspanel.com/nimble/install#os_ubuntu
修改API的端口参考文档:
https://wmspanel.com/nimble/param#management_port

步骤一:
添加下面nimble安装源到/etc/apt/sources.list
deb http://archive.ubuntu.com/ubuntu bionic universe
deb http://archive.ubuntu.com/ubuntu bionic-updates universe
deb http://nimblestreamer.com/ubuntu bionic/

步骤二:

#安装nimble
wget -q -O - http://nimblestreamer.com/gpg.key | sudo apt-key add  -
sudo apt-get update
sudo apt-get install nimble
sudo apt-get install nimble-srt

#添加API功能
echo 'management_listen_interfaces = 127.0.0.1' >> /etc/nimble/nimble.conf

#更改API端口
echo 'management_port = 8086' >> /etc/nimble/nimble.conf

#以下是wmspanel管理页面
sudo /usr/bin/nimble_regutil --server-name display_name
sudo cp /etc/nimble/run_as_root /etc/nimble/run_as_root.bak
sudo /usr/bin/nimble_regutil -u test@yourcompany.com -p mypassword
sudo /usr/bin/nimble_regutil -u test@yourcompany.com -p mypassword --apply-rules-conf
sudo service nimble restart

步骤三:
修改流服务器配置文件,文件地址/etc/nimble/rules.conf

{
   "SyncResponse":{
      "status":"success",
      "StreamCheckerMode":false,
      "UniqueVisitors":false,
      "RoutesHash":"",
      "Routes":[

      ],
      "IpRanges":[

      ],
      "ServerAuthorizationProperties":{
         "ServerAuthPropertiesHash":""
      },
      "CamerasHash":"0",
      "Cameras":[

      ],
      "StreamsHash":"0",
      "Streams":[

      ],
      "RtmpSettings":{           #下面RTSP设置与RTMP类似
         "hash":"1586509503636",
         "interfaces":[
            {
               "ip":"*",     #可修改,设置转RTMP的IP
               "port":8855,  #可修改,设置转RTMP的端口
               "ssl":false
            }
         ],
         "duration":6,
         "chunk_count":4,
         "dash_template":"TIME",
         "protocols":[          
            "HLS",
            "RTMP",
            "MPEG2TS",
         ],
         "apps":[
            {
               "app":"live",     #可修改,设置转RTMP输出的频道
               "duration":10,    #可修改,设置转RTMP输出的duration
               "chunk_count":4,  #可修改,设置转RTMP输出的chunk_count
               "dash_template":"TIME",
               "protocols":[     #可修改,设置RTMP输入输出的格式
                  "HLS",
                  "RTMP",
                  "DASH",
		  		 "MPEG2TS",
		  		 "HLS_FMP4",
		  		 "RTSP"
               ]
            }
         ],
         "abr":[

         ]
      },
      "RtspSettings":{
         "hash":"0",
         "interfaces":[]
      },
      "IcecastSettings":{
         "hash":"0",
         "interfaces":[

         ]
      },
      "LivePullSettings":{
         "hash":"0",
         "streams":[

         ]
      },
      "RtmpPublishSettings":{
         "hash":"0",
         "settings":[

         ]
      },
      "RtspPublishSettings":{
         "hash":"0",
         "settings":[

         ]
      },
      "ManagedTasks":{
         "hash":"0",
         "tasks":[

         ]
      },
      "HlsDRMSettings":{
         "hash":"0",
         "url":"",
         "key":"",
         "KeyServerSettings":{

         }
      },
      "HttpOriginApps":{
         "hash":"0",
         "apps":[

         ]
      },
      "Aliases":{
         "hash":"0",
         "settings":[

         ]
      },
      "DataSlicesInfo":{
         "hash":"1",
         "data_slices":[
            {
               "id":"52179",
               "tz":0
            }
         ]
      },
      "UDPSenderSettings":{
         "hash":"1586511548554",
         "settings":[
            {
               "id":"5e903ebc45475e242ce79cd1",
               "ip":"127.0.0.1",   #可修改,设置UDP输出的IP
               "protocol":"udp",
               "port":20001,       #可修改,设置UDP输出的端口
               "ttl":1,
               "src":[
                  {
                     "app":"live", #可修改,设置转UDP输入的频道名称
                     "stream":"stream", #可修改,设置转UDP输入的流名称
                     "pmt_pid":7166,
                     "v_pid":256,
                     "a_pid":257
                  }
               ]
            }
         ]
      },
      "PayPerPublishSettings":{
         "hash":"0",
         "url":"",
         "auth_group_interval":500,
         "apps":[

         ]
      },
      "DvrSettings":{
         "hash":"0",
         "settings":[

         ]
      },
      "UserAgentGroupSettings":{
         "hash":"0",
         "settings":[

         ]
      },
      "RefererGroupSettings":{
         "hash":"0",
         "settings":[

         ]
      },
      "VideoEncodersInfo":{
         "hash":"0",
         "encoders":[

         ]
      },
      "AudioEncodersInfo":{
         "hash":"0",
         "encoders":[

         ]
      },
      "StreamOverrideSettings":{
         "hash":"0",
         "settings":[

         ]
      },
      "IcecastStreamSettings":{
         "hash":"0",
         "settings":[

         ]
      },
      "AuthHandlerSettings":{
         "hash":"8"
      },
      "ServerSettings":{
         "MaxCacheSize":64,
         "MaxFileCacheSize":4096,
         "LogMode":"info"
      }
   }
}
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值