(附)用OBS软件直播
<h3>一、OBS 拉流摄像头图像</h3>
<h4>登录摄像头,点击【设置】->【网络】->【RTSP】</h4>
<h4>1、首先取消“安全认证”,再复制“主码流”</h4>
<p><strong>
</strong>
<img src="https://www.showdoc.com.cn/server/api/attachment/visitFile?sign=389cbd2b1e806db71663d02d10a73a7a&amp;file=file.png" alt="" /></p>
<p><strong>
</strong></p>
<h4>2、运行OBS软件,点击“+”,添加媒体源,在弹出“创建或选择源”对话框新建一个名称,如”善谦智能直播摄像头"。单击确定</h4>
<p><strong>
</strong>
<img src="https://www.showdoc.com.cn/server/api/attachment/visitFile?sign=380fab4b1cdece89a0bf413f83fe6d1a&amp;file=file.png" alt="" /></p>
<p><strong>
</strong></p>
<h4>3、弹出的属性对话框。首先取消勾选“本地文件”,然后将“网络缓冲改为最小1MB,再粘贴主码流地址(粘贴时注意没有空格)。最后点确定保存</h4>
<p><strong>
</strong>
<img src="https://www.showdoc.com.cn/server/api/attachment/visitFile?sign=4f96250b4bdafee767420647ceb80717&amp;file=file.png" alt="" /></p>
<p><strong>
</strong></p>
<h4>4、拉流成功,效果如下</h4>
<p><strong>
</strong>
<img src="https://www.showdoc.com.cn/server/api/attachment/visitFile?sign=fab19d6f3c7b32f3abc05dd8dc502fe0&amp;file=file.png" alt="" /></p>
<p><strong>
</strong></p>
<h3>二、OBS推流直播</h3>
<h4>上面我们已经用OBS软件拉流成功得到画面,下面我们将画面推送至直播平台进行直播(这里以斗鱼为例)</h4>
<h4>1、打开斗鱼直播平台后台,如下所示</h4>
<p><strong>
</strong>
<img src="https://www.showdoc.com.cn/server/api/attachment/visitFile?sign=4fa3678ed1b930766eafc0079886365c&amp;file=file.png" alt="" /></p>
<p><strong>
</strong></p>
<h4>2、进入直播中心,打开直播开关</h4>
<p><strong>
</strong>
<img src="https://www.showdoc.com.cn/server/api/attachment/visitFile?sign=ecf276cd85f273774605a0d14a812ded&amp;file=file.png" alt="" /></p>
<p><strong>
</strong></p>
<h4>3、找到RTMP直播地址和直播码</h4>
<p><strong>
</strong>
<img src="https://www.showdoc.com.cn/server/api/attachment/visitFile?sign=2c7c79410fdbd714c35b52c4eb5ac5ba&amp;file=file.png" alt="" /></p>
<p><strong>
</strong></p>
<h4>4、按以下数字序号设置OBS软件</h4>
<p><strong>
</strong></p>
<h4>点击OBS软件右下方的 设置①->推流②,将“服务”③改为自定义,然后将“rtmp地址”复制后粘贴至“服务器”④,再将直播码复制后粘贴至“串流密钥”⑤。点击“确定”⑥保存。所有设置完成,最后点击“开始推流”⑦,开始推流直播</h4>
<p><strong>
</strong>
<img src="https://www.showdoc.com.cn/server/api/attachment/visitFile?sign=a01de8dcb4952d8b705a7cf1db460c2b&amp;file=file.png" alt="" /></p>
<p><strong>
</strong></p>
<h4>5、进入直播间,直播成功</h4>
<p><strong>
</strong>
<img src="https://www.showdoc.com.cn/server/api/attachment/visitFile?sign=44364c5c503ab13d49692b5dfce64e5a&amp;file=file.jpg" alt="" /></p>
<p><strong>
</strong></p>