ubuntu下如何对接斗鱼直播

参考教程:https://www.cnblogs.com/liuxuzzz/p/5315998.html 大神写得挺细的,这里都不想再多说了!

为啥要做这个呢?可能真的只是为了好玩吧!!有兴趣直播的孩子可以玩玩。

1。首先需要去下载obs软件,百度一下

这里面教我们如何下载:https://github.com/obsproject/obs-studio/wiki/Install-Instructions#linux

  • 先需要安装ffmpeg,我这边是Ubuntu 16.04的,所以选择第二种方法安装ffmpeg

    For Ubuntu 14.04 LTS, FFmpeg is not officially included so you will need a specific PPA:

      sudo add-apt-repository ppa:kirillshkrogalev/ffmpeg-next
      sudo apt-get update && sudo apt-get install ffmpeg

    For Ubuntu 15.04 and following versions, FFmpeg is officially included:

      sudo apt-get install ffmpeg
  • Then you can install OBS with the following commands, make sure you enabled the multiverse repo in Ubuntu's software center:
      sudo add-apt-repository ppa:obsproject/obs-studio
      sudo apt-get update
      sudo apt-get install obs-studio


2。注册斗鱼帐号,然后申请直播,直接可以支付宝认证,我觉得更加方便,这就不多说了
  然后点击右上角图像进入个人中心,在直播设置里面有我们关心的东西,

然后就按照原作的来吧!
这边url是rtmp的地址,上面的直播设置里都有的,为了隐私就不放了!stream key 就是直播码


这边是设置输出的,我实际上是看不懂的,根据图上设置就可以了!


声音这边的话,我是出了点问题的,这边主要是什么原因呢?我自己现在没有麦克风,所以没有设置,桌面选择Audio Adapter Analog Stereo主要是为了减少噪音,我试了其他的有噪音,有点怀疑电脑问题,反正模拟出来的声音没有噪音产生,这样就达到目的了。

 这个按照设置一下

 这样基本的设置就完成了,以下的照着样子选一下,点击Start Streaming 就可以愉快的直播了!!开森!!


posted @ 2018-06-14 00:33  cicarius  阅读(1334)  评论(1编辑  收藏  举报