<p style="margin-top: 0px; margin-bottom: 15px; padding: 0px; max-width: 100%; clear: both; min-height: 1em; color: rgb(51, 51, 51); font-family: -apple-system-font, BlinkMacSystemFont, “><span style="margin: 0px; padding: 0px; max-width: 100%; color: rgb(62, 62, 62); font-family: Optima-Regular, PingFangTC-light; font-size: 15px; letter-spacing: 0.544px; text-indent: 34px; white-space: pre-wrap; widows: 1; box-sizing: border-box !important; overflow-wrap: break-word !important;”>在监控项目中,对视频监控进行直播是常有的事,很多时候甲方都有这个要求,也在很多监控项目有应用,例如校园,企业中都会涉及到,那么如何<strong style="margin: 0px; padding: 0px; max-width: 100%; box-sizing: border-box !important; overflow-wrap: break-word !important;”>实现直播呢?本期我们一起来看一下。
<p style="margin: 0px 0.5em; padding: 0px; max-width: 100%; clear: both; min-height: 1em; letter-spacing: 0.544px; white-space: normal; widows: 1; font-family: 微软雅黑, 宋体, sans-serif; color: rgb(68, 68, 68); line-height: 1.75em; box-sizing: border-box !important; overflow-wrap: break-word !important;”><span style="margin: 0px; padding: 0px; max-width: 100%; box-sizing: border-box !important; overflow-wrap: break-word !important; color: rgb(62, 62, 62); font-family: Optima-Regular, PingFangTC-light; font-size: 15px; letter-spacing: 0.544px; text-indent: 34px; white-space: pre-wrap;”>
<p style="margin-top: 0px; margin-bottom: 15px; padding: 0px; max-width: 100%; clear: both; min-height: 1em; color: rgb(51, 51, 51); font-family: -apple-system-font, BlinkMacSystemFont, “><span style="margin: 0px; padding: 0px; max-width: 100%; color: rgb(62, 62, 62); font-family: Optima-Regular, PingFangTC-light; font-size: 15px; letter-spacing: 0.544px; text-indent: 34px; white-space: pre-wrap; widows: 1; box-sizing: border-box !important; overflow-wrap: break-word !important;”>提到直播,这里面我们不得不提到两个协议,RTMP协议与RTSP协议。
<p style="margin-top: 0px; margin-bottom: 15px; padding: 0px; max-width: 100%; clear: both; min-height: 1em; color: rgb(51, 51, 51); font-family: -apple-system-font, BlinkMacSystemFont, “><span style="margin: 0px; padding: 0px; max-width: 100%; box-sizing: border-box !important; overflow-wrap: break-word !important; color: rgb(217, 33, 66);”><strong style="margin: 0px; padding: 0px; max-width: 100%; box-sizing: border-box !important; overflow-wrap: break-word !important;”><span style="margin: 0px; padding: 0px; max-width: 100%; font-family: Optima-Regular, PingFangTC-light; font-size: 15px; letter-spacing: 0.544px; text-indent: 34px; white-space: pre-wrap; widows: 1; box-sizing: border-box !important; overflow-wrap: break-word !important;”>RTSP协议为实时流传输协议:<span style="margin: 0px; padding: 0px; max-width: 100%; color: rgb(62, 62, 62); font-family: Optima-Regular, PingFangTC-light; font-size: 15px; letter-spacing: 0.544px; text-indent: 34px; white-space: pre-wrap; widows: 1; box-sizing: border-box !important; overflow-wrap: break-word !important;”>是TCP/IP协议体系中应用层的一个协议。<strong style="margin: 0px; padding: 0px; max-width: 100%; box-sizing: border-box !important; overflow-wrap: break-word !important;”><span style="margin: 0px; padding: 0px; max-width: 100%; letter-spacing: 0.544px; font-family: Optima-Regular, PingFangTC-light; font-size: 15px; text-indent: 34px; white-space: pre-wrap; widows: 1; box-sizing: border-box !important; overflow-wrap: break-word !important;”>RTSP为取流协议,<span style="margin: 0px; padding: 0px; max-width: 100%; letter-spacing: 0.544px; color: rgb(62, 62, 62); font-family: Optima-Regular, PingFangTC-light; font-size: 15px; text-indent: 34px; white-space: pre-wrap; widows: 1; box-sizing: border-box !important; overflow-wrap: break-word !important;”>取到码流后需要解码显示,可以通过VLC播放器进行测试,IE等浏览器网页不支持RTSP协议直接取流预览或者回放。
<p style="margin-top: 0px; margin-bottom: 15px; padding: 0px; max-width: 100%; clear: both; min-height: 1em; color: rgb(51, 51, 51); font-family: -apple-system-font, BlinkMacSystemFont, “><span style="margin: 0px; padding: 0px; max-width: 100%; box-sizing: border-box !important; overflow-wrap: break-word !important; color: rgb(217, 33, 66);”><strong style="margin: 0px; padding: 0px; max-width: 100%; box-sizing: border-box !important; overflow-wrap: break-word !important;”><span style="margin: 0px; padding: 0px; max-width: 100%; font-family: Optima-Regular, PingFangTC-light; font-size: 15px; letter-spacing: 0.544px; text-indent: 34px; white-space: pre-wrap; widows: 1; box-sizing: border-box !important; overflow-wrap: break-word !important;”>RTMP协议为实时消息传输协议:<span style="margin: 0px; padding: 0px; max-width: 100%; color: rgb(62, 62, 62); font-family: Optima-Regular, PingFangTC-light; font-size: 15px; letter-spacing: 0.544px; text-indent: 34px; white-space: pre-wrap; widows: 1; box-sizing: border-box !important; overflow-wrap: break-word !important;”>用来在Flash/AIR平台和支持R<strong style="margin: 0px; padding: 0px; max-width: 100%; box-sizing: border-box !important; overflow-wrap: break-word !important;”>TMP协议的流媒体/交互服务器之间进行音视频和数据通信。
<pre style="margin-top: 0px; margin-bottom: 15px; padding: 0px; max-width: 100%; color: rgb(51, 51, 51); font-size: 17px; letter-spacing: 0.544px; white-space: normal; min-height: 1em; font-family: -apple-system-font, BlinkMacSystemFont, “><span style="margin: 0px; padding: 0px; max-width: 100%; color: rgb(62, 62, 62); font-family: Optima-Regular, PingFangTC-light; font-size: 15px; letter-spacing: 0.544px; text-indent: 34px; white-space: pre-wrap; widows: 1; box-sizing: border-box !important; overflow-wrap: break-word !important;”> 理论上RTSP、RTMP、HTTP都可以做直播和点播,但一般做直播用RTSP、RTMP,做点播用HTTP。做视频会议的时候原来用SIP协议,现在基本上被<strong style="margin: 0px; padding: 0px; max-width: 100%; box-sizing: border-box !important; overflow-wrap: break-word !important;”>RTMP协议取代了。
<p style="margin-top: 0px; margin-bottom: 15px; padding: 0px; max-width: 100%; clear: both; min-height: 1em; color: rgb(51, 51, 51); font-family: -apple-system-font, BlinkMacSystemFont, “><span style="margin: 0px; padding: 0px; max-width: 100%; color: rgb(62, 62, 62); font-family: Optima-Regular, PingFangTC-light; font-size: 15px; letter-spacing: 0.544px; text-indent: 34px; white-space: pre-wrap; widows: 1; box-sizing: border-box !important; overflow-wrap: break-word !important;”>如果网络摄像机<strong style="margin: 0px; padding: 0px; max-width: 100%; box-sizing: border-box !important; overflow-wrap: break-word !important;”>不支持RTMP协议,这时就需要通过第三方软件推流。
<p style="margin: 0px 0.5em; padding: 0px; max-width: 100%; clear: both; min-height: 1em; letter-spacing: 0.544px; white-space: normal; widows: 1; font-family: 微软雅黑, 宋体, sans-serif; color: rgb(68, 68, 68); line-height: 1.75em; box-sizing: border-box !important; overflow-wrap: break-word !important;”>
<p style="margin-top: 0px; margin-bottom: 15px; padding: 0px; max-width: 100%; clear: both; min-height: 1em; color: rgb(51, 51, 51); font-family: -apple-system-font, BlinkMacSystemFont, “><strong style="margin: 0px; padding: 0px; max-width: 100%; box-sizing: border-box !important; overflow-wrap: break-word !important;”><span style="margin: 0px; padding: 0px; max-width: 100%; color: rgb(62, 62, 62); font-family: Optima-Regular, PingFangTC-light; font-size: 15px; letter-spacing: 0.544px; text-indent: 34px; white-space: pre-wrap; widows: 1; box-sizing: border-box !important; overflow-wrap: break-word !important;”>RTSP如何取流url<span style="margin: 0px; padding: 0px; max-width: 100%; color: rgb(62, 62, 62); font-family: Optima-Regular, PingFangTC-light; font-size: 15px; letter-spacing: 0.544px; text-indent: 34px; white-space: pre-wrap; widows: 1; box-sizing: border-box !important; overflow-wrap: break-word !important;”>呢?这个是很多弱电朋友经常问的问题,目前各个厂家的监控摄像的取流都有一些区别,这里面我们以<strong style="margin: 0px; padding: 0px; max-width: 100%; box-sizing: border-box !important; overflow-wrap: break-word !important;”>海康来举例说明。
<p style="margin-top: 0px; margin-bottom: 15px; padding: 0px; max-width: 100%; clear: both; min-height: 1em; color: rgb(51, 51, 51); font-family: -apple-system-font, BlinkMacSystemFont, “><span style="margin: 0px; padding: 0px; max-width: 100%; font-family: Optima-Regular, PingFangTC-light; font-size: 15px; letter-spacing: 0.544px; text-indent: 34px; white-space: pre-wrap; widows: 1; color: rgb(255, 255, 255); background-color: rgb(0, 0, 0); box-sizing: border-box !important; overflow-wrap: break-word !important;”>1、海康取流格式
<p style="margin-top: 0px; margin-bottom: 15px; padding: 0px; max-width: 100%; clear: both; min-height: 1em; color: rgb(51, 51, 51); font-family: -apple-system-font, BlinkMacSystemFont, “><span style="margin: 0px; padding: 0px; max-width: 100%; color: rgb(62, 62, 62); font-family: Optima-Regular, PingFangTC-light; font-size: 15px; letter-spacing: 0.544px; text-indent: 34px; white-space: pre-wrap; widows: 1; box-sizing: border-box !important; overflow-wrap: break-word !important;”>海康威视IP摄像头<strong style="margin: 0px; padding: 0px; max-width: 100%; box-sizing: border-box !important; overflow-wrap: break-word !important;”>rtsp协议地址如下:
rtsp<span style="margin: 0px; padding: 0px; max-width: 100%; box-sizing: border-box; overflow-wrap: break-word !important; color: rgb(103, 205, 204);">:<span style="margin: 0px; padding: 0px; max-width: 100%; box-sizing: border-box; overflow-wrap: break-word !important; color: rgb(103, 205, 204);">/<span style="margin: 0px; padding: 0px; max-width: 100%; box-sizing: border-box; overflow-wrap: break-word !important; color: rgb(103, 205, 204);">/<span style="margin: 0px; padding: 0px; max-width: 100%; box-sizing: border-box; overflow-wrap: break-word !important;">[username<span style="margin: 0px; padding: 0px; max-width: 100%; box-sizing: border-box; overflow-wrap: break-word !important;">]<span style="margin: 0px; padding: 0px; max-width: 100%; box-sizing: border-box; overflow-wrap: break-word !important; color: rgb(103, 205, 204);">:<span style="margin: 0px; padding: 0px; max-width: 100%; box-sizing: border-box; overflow-wrap: break-word !important;">[passwd<span style="margin: 0px; padding: 0px; max-width: 100%; box-sizing: border-box; overflow-wrap: break-word !important;">]@<span style="margin: 0px; padding: 0px; max-width: 100%; box-sizing: border-box; overflow-wrap: break-word !important;">[ip<span style="margin: 0px; padding: 0px; max-width: 100%; box-sizing: border-box; overflow-wrap: break-word !important;">]<span style="margin: 0px; padding: 0px; max-width: 100%; box-sizing: border-box; overflow-wrap: break-word !important; color: rgb(103, 205, 204);">:<span style="margin: 0px; padding: 0px; max-width: 100%; box-sizing: border-box; overflow-wrap: break-word !important;">[port<span style="margin: 0px; padding: 0px; max-width: 100%; box-sizing: border-box; overflow-wrap: break-word !important;">]<span style="margin: 0px; padding: 0px; max-width: 100%; box-sizing: border-box; overflow-wrap: break-word !important; color: rgb(103, 205, 204);">/<span style="margin: 0px; padding: 0px; max-width: 100%; box-sizing: border-box; overflow-wrap: break-word !important;">[codec<span style="margin: 0px; padding: 0px; max-width: 100%; box-sizing: border-box; overflow-wrap: break-word !important;">]<span style="margin: 0px; padding: 0px; max-width: 100%; box-sizing: border-box; overflow-wrap: break-word !important; color: rgb(103, 205, 204);">/<span style="margin: 0px; padding: 0px; max-width: 100%; box-sizing: border-box; overflow-wrap: break-word !important;">[channel<span style="margin: 0px; padding: 0px; max-width: 100%; box-sizing: border-box; overflow-wrap: break-word !important;">]<span style="margin: 0px; padding: 0px; max-width: 100%; box-sizing: border-box; overflow-wrap: break-word !important; color: rgb(103, 205, 204);">/<span style="margin: 0px; padding: 0px; max-width: 100%; box-sizing: border-box; overflow-wrap: break-word !important;">[subtype<span style="margin: 0px; padding: 0px; max-width: 100%; box-sizing: border-box; overflow-wrap: break-word !important;">]<span style="margin: 0px; padding: 0px; max-width: 100%; box-sizing: border-box; overflow-wrap: break-word !important; color: rgb(103, 205, 204);">/av_stream
<p style="margin-top: 0px; margin-bottom: 15px; padding: 0px; max-width: 100%; clear: both; min-height: 1em; color: rgb(51, 51, 51); font-family: -apple-system-font, BlinkMacSystemFont, “><span style="margin: 0px; padding: 0px; max-width: 100%; color: rgb(62, 62, 62); font-family: Optima-Regular, PingFangTC-light; font-size: 15px; letter-spacing: 0.544px; text-indent: 34px; white-space: pre-wrap; widows: 1; box-sizing: border-box !important; overflow-wrap: break-word !important;”>那这段url是什么意思呢?下面这个图可以解释清楚。
<p style="margin-top: 0px; margin-bottom: 15px; padding: 0px; max-width: 100%; clear: both; min-height: 1em; color: rgb(51, 51, 51); font-family: -apple-system-font, BlinkMacSystemFont, “>
<p style="margin-top: 0px; margin-bottom: 15px; padding: 0px; max-width: 100%; clear: both; min-height: 1em; color: rgb(51, 51, 51); font-family: -apple-system-font, BlinkMacSystemFont, “><strong style="margin: 0px; padding: 0px; max-width: 100%; box-sizing: border-box !important; overflow-wrap: break-word !important;”><span style="margin: 0px; padding: 0px; max-width: 100%; color: rgb(62, 62, 62); font-family: Optima-Regular, PingFangTC-light; font-size: 15px; letter-spacing: 0.544px; text-indent: 34px; white-space: pre-wrap; widows: 1; box-sizing: border-box !important; overflow-wrap: break-word !important;”>说明:
<p style="margin-top: 0px; margin-bottom: 15px; padding: 0px; max-width: 100%; clear: both; min-height: 1em; color: rgb(51, 51, 51); font-family: -apple-system-font, BlinkMacSystemFont, “><strong style="margin: 0px; padding: 0px; max-width: 100%; box-sizing: border-box !important; overflow-wrap: break-word !important;”><span style="margin: 0px; padding: 0px; max-width: 100%; font-family: Optima-Regular, PingFangTC-light; font-size: 15px; letter-spacing: 0.544px; text-indent: 34px; white-space: pre-wrap; widows: 1; color: rgb(217, 33, 66); box-sizing: border-box !important; overflow-wrap: break-word !important;”>username<span style="margin: 0px; padding: 0px; max-width: 100%; font-family: Optima-Regular, PingFangTC-light; font-size: 15px; letter-spacing: 0.544px; text-indent: 34px; white-space: pre-wrap; widows: 1; color: rgb(217, 33, 66); box-sizing: border-box !important; overflow-wrap: break-word !important;”>:<span style="margin: 0px; padding: 0px; max-width: 100%; color: rgb(62, 62, 62); font-family: Optima-Regular, PingFangTC-light; font-size: 15px; letter-spacing: 0.544px; text-indent: 34px; white-space: pre-wrap; widows: 1; box-sizing: border-box !important; overflow-wrap: break-word !important;”>用户名,例如admin
<strong style="margin: 0px; padding: 0px; max-width: 100%; box-sizing: border-box !important; overflow-wrap: break-word !important;”><span style="margin: 0px; padding: 0px; max-width: 100%; font-family: Optima-Regular, PingFangTC-light; font-size: 15px; letter-spacing: 0.544px; text-indent: 34px; white-space: pre-wrap; widows: 1; color: rgb(217, 33, 66); box-sizing: border-box !important; overflow-wrap: break-word !important;”>passwd:<span style="margin: 0px; padding: 0px; max-width: 100%; color: rgb(62, 62, 62); font-family: Optima-Regular, PingFangTC-light; font-size: 15px; letter-spacing: 0.544px; text-indent: 34px; white-space: pre-wrap; widows: 1; box-sizing: border-box !important; overflow-wrap: break-word !important;”>密码,例如12345
<strong style="margin: 0px; padding: 0px; max-width: 100%; box-sizing: border-box !important; overflow-wrap: break-word !important;”><span style="margin: 0px; padding: 0px; max-width: 100%; font-family: Optima-Regular, PingFangTC-light; font-size: 15px; letter-spacing: 0.544px; text-indent: 34px; white-space: pre-wrap; widows: 1; color: rgb(217, 33, 66); box-sizing: border-box !important; overflow-wrap: break-word !important;”>ip:<span style="margin: 0px; padding: 0px; max-width: 100%; color: rgb(62, 62, 62); font-family: Optima-Regular, PingFangTC-light; font-size: 15px; letter-spacing: 0.544px; text-indent: 34px; white-space: pre-wrap; widows: 1; box-sizing: border-box !important; overflow-wrap: break-word !important;”>设备的ip地址,例如192.0.0.64
<strong style="margin: 0px; padding: 0px; max-width: 100%; box-sizing: border-box !important; overflow-wrap: break-word !important;”><span style="margin: 0px; padding: 0px; max-width: 100%; font-family: Optima-Regular, PingFangTC-light; font-size: 15px; letter-spacing: 0.544px; text-indent: 34px; white-space: pre-wrap; widows: 1; color: rgb(217, 33, 66); box-sizing: border-box !important; overflow-wrap: break-word !important;”>port:<span style="margin: 0px; padding: 0px; max-width: 100%; color: rgb(62, 62, 62); font-family: Optima-Regular, PingFangTC-light; font-size: 15px; letter-spacing: 0.544px; text-indent: 34px; white-space: pre-wrap; widows: 1; box-sizing: border-box !important; overflow-wrap: break-word !important;”>端口号默认554,若为默认可以不写
<strong style="margin: 0px; padding: 0px; max-width: 100%; box-sizing: border-box !important; overflow-wrap: break-word !important;”><span style="margin: 0px; padding: 0px; max-width: 100%; font-family: Optima-Regular, PingFangTC-light; font-size: 15px; letter-spacing: 0.544px; text-indent: 34px; white-space: pre-wrap; widows: 1; color: rgb(217, 33, 66); box-sizing: border-box !important; overflow-wrap: break-word !important;”>codec:<span style="margin: 0px; padding: 0px; max-width: 100%; color: rgb(62, 62, 62); font-family: Optima-Regular, PingFangTC-light; font-size: 15px; letter-spacing: 0.544px; text-indent: 34px; white-space: pre-wrap; widows: 1; box-sizing: border-box !important; overflow-wrap: break-word !important;”>有h264、h.265,mpeg4等。
<strong style="margin: 0px; padding: 0px; max-width: 100%; box-sizing: border-box !important; overflow-wrap: break-word !important;”><span style="margin: 0px; padding: 0px; max-width: 100%; font-family: Optima-Regular, PingFangTC-light; font-size: 15px; letter-spacing: 0.544px; text-indent: 34px; white-space: pre-wrap; widows: 1; color: rgb(217, 33, 66); box-sizing: border-box !important; overflow-wrap: break-word !important;”>channel:<span style="margin: 0px; padding: 0px; max-width: 100%; color: rgb(62, 62, 62); font-family: Optima-Regular, PingFangTC-light; font-size: 15px; letter-spacing: 0.544px; text-indent: 34px; white-space: pre-wrap; widows: 1; box-sizing: border-box !important; overflow-wrap: break-word !important;”>通道号,起始为1
<strong style="margin: 0px; padding: 0px; max-width: 100%; box-sizing: border-box !important; overflow-wrap: break-word !important;”><span style="margin: 0px; padding: 0px; max-width: 100%; font-family: Optima-Regular, PingFangTC-light; font-size: 15px; letter-spacing: 0.544px; text-indent: 34px; white-space: pre-wrap; widows: 1; color: rgb(217, 33, 66); box-sizing: border-box !important; overflow-wrap: break-word !important;”>subtype:<span style="margin: 0px; padding: 0px; max-width: 100%; color: rgb(62, 62, 62); font-family: Optima-Regular, PingFangTC-light; font-size: 15px; letter-spacing: 0.544px; text-indent: 34px; white-space: pre-wrap; widows: 1; box-sizing: border-box !important; overflow-wrap: break-word !important;”>码<span style="margin: 0px; padding: 0px; max-width: 100%; color: rgb(62, 62, 62); font-family: Optima-Regular, PingFangTC-light; font-size: 15px; letter-spacing: 0.544px; text-indent: 34px; white-space: pre-wrap; widows: 1; box-sizing: border-box !important; overflow-wrap: break-word !important;”>流类型,主码流为main,子码流为sub
<p style="margin-top: 0px; margin-bottom: 15px; padding: 0px; max-width: 100%; clear: both; min-height: 1em; color: rgb(51, 51, 51); font-family: -apple-system-font, BlinkMacSystemFont, “>
<p style="margin-top: 0px; margin-bottom: 15px; padding: 0px; max-width: 100%; clear: both; min-height: 1em; color: rgb(51, 51, 51); font-family: -apple-system-font, BlinkMacSystemFont, “><span style="margin: 0px; padding: 0px; max-width: 100%; box-sizing: border-box !important; overflow-wrap: break-word !important; background-color: rgb(0, 0, 0); color: rgb(255, 255, 255);”><span style="margin: 0px; padding: 0px; max-width: 100%; font-family: Optima-Regular, PingFangTC-light; font-size: 15px; letter-spacing: 0.544px; text-indent: 34px; white-space: pre-wrap; widows: 1; box-sizing: border-box !important; overflow-wrap: break-word !important;”>2、海康取流举例:
<p style="margin-top: 0px; margin-bottom: 15px; padding: 0px; max-width: 100%; clear: both; min-height: 1em; color: rgb(51, 51, 51); font-family: -apple-system-font, BlinkMacSystemFont, “><span style="margin: 0px; padding: 0px; max-width: 100%; color: rgb(62, 62, 62); font-family: Optima-Regular, PingFangTC-light; font-size: 15px; letter-spacing: 0.544px; text-indent: 34px; white-space: pre-wrap; widows: 1; box-sizing: border-box !important; overflow-wrap: break-word !important;”><span style="margin: 0px; padding: 0px; max-width: 100%; font-family: Optima-Regular, PingFangTC-light; letter-spacing: 0.544px; box-sizing: border-box !important; overflow-wrap: break-word !important;”>例如你的<span style="margin: 0px; padding: 0px; max-width: 100%; font-family: Optima-Regular, PingFangTC-light; letter-spacing: 0.544px; box-sizing: border-box !important; overflow-wrap: break-word !important;”>摄像机密码是a12345678,<span style="margin: 0px; padding: 0px; max-width: 100%; font-family: Optima-Regular, PingFangTC-light; letter-spacing: 0.544px; box-sizing: border-box !important; overflow-wrap: break-word !important;”>I<span style="margin: 0px; padding: 0px; max-width: 100%; font-family: Optima-Regular, PingFangTC-light; letter-spacing: 0.544px; box-sizing: border-box !important; overflow-wrap: break-word !important;”>P是192.168.1.64,RTSP端口默认554未做改动,是H.265<span style="margin: 0px; padding: 0px; max-width: 100%; font-family: Optima-Regular, PingFangTC-light; letter-spacing: 0.544px; box-sizing: border-box !important; overflow-wrap: break-word !important;”>编码,那么如何取流呢?<strong style="margin: 0px; padding: 0px; max-width: 100%; box-sizing: border-box !important; overflow-wrap: break-word !important;”><span style="margin: 0px; padding: 0px; max-width: 100%; color: rgb(62, 62, 62); font-family: Optima-Regular, PingFangTC-light; font-size: 15px; letter-spacing: 0.544px; text-indent: 34px; white-space: pre-wrap; widows: 1; box-sizing: border-box !important; overflow-wrap: break-word !important;”><span style="margin: 0px; padding: 0px; max-width: 100%; font-family: Optima-Regular, PingFangTC-light; letter-spacing: 0.544px; box-sizing: border-box !important; overflow-wrap: break-word !important;”>
<p style="margin-top: 0px; margin-bottom: 15px; padding: 0px; max-width: 100%; clear: both; min-height: 1em; color: rgb(51, 51, 51); font-family: -apple-system-font, BlinkMacSystemFont, “><span style="margin: 0px; padding: 0px; max-width: 100%; box-sizing: border-box !important; overflow-wrap: break-word !important; color: rgb(217, 33, 66);”><strong style="margin: 0px; padding: 0px; max-width: 100%; box-sizing: border-box !important; overflow-wrap: break-word !important;”><span style="margin: 0px; padding: 0px; max-width: 100%; font-family: Optima-Regular, PingFangTC-light; font-size: 15px; letter-spacing: 0.544px; text-indent: 34px; white-space: pre-wrap; widows: 1; box-sizing: border-box !important; overflow-wrap: break-word !important;”>主码流取流:<span style="margin: 0px; padding: 0px; max-width: 100%; color: rgb(62, 62, 62); font-family: Optima-Regular, PingFangTC-light; font-size: 15px; letter-spacing: 0.544px; text-indent: 34px; white-space: pre-wrap; widows: 1; box-sizing: border-box !important; overflow-wrap: break-word !important;”>
rtsp://admin:a12345678@192.168.1.64:554/h265/ch1/main/av_stream
<strong style="margin: 0px; padding: 0px; max-width: 100%; box-sizing: border-box !important; overflow-wrap: break-word !important;”><span style="margin: 0px; padding: 0px; max-width: 100%; font-family: Optima-Regular, PingFangTC-light; font-size: 15px; letter-spacing: 0.544px; text-indent: 34px; white-space: pre-wrap; widows: 1; color: rgb(217, 33, 66); box-sizing: border-box !important; overflow-wrap: break-word !important;”>子码流取流:<span style="margin: 0px; padding: 0px; max-width: 100%; color: rgb(62, 62, 62); font-family: Optima-Regular, PingFangTC-light; font-size: 15px; letter-spacing: 0.544px; text-indent: 34px; white-space: pre-wrap; widows: 1; box-sizing: border-box !important; overflow-wrap: break-word !important;”>
rtsp://admin:a12345678@192.168.1.64:554/h265/ch1/sub/av_stream
<p style="margin-top: 0px; margin-bottom: 15px; padding: 0px; max-width: 100%; clear: both; min-height: 1em; color: rgb(51, 51, 51); font-family: -apple-system-font, BlinkMacSystemFont, “><span style="margin: 0px; padding: 0px; max-width: 100%; color: rgb(62, 62, 62); font-family: Optima-Regular, PingFangTC-light; font-size: 15px; letter-spacing: 0.544px; text-indent: 34px; white-space: pre-wrap; widows: 1; box-sizing: border-box !important; overflow-wrap: break-word !important;”>
<p style="margin-top: 0px; margin-bottom: 15px; padding: 0px; max-width: 100%; clear: both; min-height: 1em; color: rgb(51, 51, 51); font-family: -apple-system-font, BlinkMacSystemFont, “><span style="margin: 0px; padding: 0px; max-width: 100%; color: rgb(62, 62, 62); font-family: Optima-Regular, PingFangTC-light; font-size: 15px; letter-spacing: 0.544px; text-indent: 34px; white-space: pre-wrap; widows: 1; box-sizing: border-box !important; overflow-wrap: break-word !important;”>基于rtsp协议的url取流确定好之后,我们可以用<strong style="margin: 0px; padding: 0px; max-width: 100%; box-sizing: border-box !important; overflow-wrap: break-word !important;”>流媒体播放器对视频地址进行直播了,推流的软件有很多,<span style="margin: 0px; padding: 0px; max-width: 100%; letter-spacing: 0.544px; text-indent: 34px; white-space: pre-wrap; widows: 1; color: rgb(64, 64, 64); font-family: -apple-system, BlinkMacSystemFont, “>VLC播放器<span style="margin: 0px; padding: 0px; max-width: 100%; color: rgb(62, 62, 62); font-family: Optima-Regular, PingFangTC-light; font-size: 15px; letter-spacing: 0.544px; text-indent: 34px; white-space: pre-wrap; widows: 1; box-sizing: border-box !important; overflow-wrap: break-word !important;”>、obs直播软件都可以配置。
<p style="margin-top: 0px; margin-bottom: 15px; padding: 0px; max-width: 100%; clear: both; min-height: 1em; color: rgb(51, 51, 51); font-family: -apple-system-font, BlinkMacSystemFont, “><span style="margin: 0px; padding: 0px; max-width: 100%; color: rgb(62, 62, 62); font-family: Optima-Regular, PingFangTC-light; font-size: 15px; letter-spacing: 0.544px; text-indent: 34px; white-space: pre-wrap; widows: 1; box-sizing: border-box !important; overflow-wrap: break-word !important;”>这里面我们以VLC播放器举例。
<p style="margin-top: 0px; margin-bottom: 15px; padding: 0px; max-width: 100%; clear: both; min-height: 1em; color: rgb(51, 51, 51); font-family: -apple-system-font, BlinkMacSystemFont, “><span style="margin: 0px; padding: 0px; max-width: 100%; font-family: Optima-Regular, PingFangTC-light; font-size: 15px; letter-spacing: 0.544px; text-indent: 34px; white-space: pre-wrap; widows: 1; background-color: rgb(0, 0, 0); color: rgb(255, 255, 255); box-sizing: border-box !important; overflow-wrap: break-word !important;”>1、打开播放器
<p style="margin-top: 0px; margin-bottom: 0px; padding: 0px; max-width: 100%; clear: both; min-height: 1em; color: rgb(51, 51, 51); font-family: -apple-system-font, BlinkMacSystemFont, “>
<p style="margin-top: 0px; margin-bottom: 0px; padding: 0px; max-width: 100%; clear: both; min-height: 1em; color: rgb(51, 51, 51); font-family: -apple-system-font, BlinkMacSystemFont, “>
<p style="margin-top: 0px; margin-bottom: 15px; padding: 0px; max-width: 100%; clear: both; min-height: 1em; color: rgb(51, 51, 51); font-family: -apple-system-font, BlinkMacSystemFont, “><span style="margin: 0px; padding: 0px; max-width: 100%; box-sizing: border-box !important; overflow-wrap: break-word !important; font-family: Optima-Regular, PingFangTC-light; font-size: 15px; letter-spacing: 0.544px; text-indent: 34px; white-space: pre-wrap; widows: 1; background-color: rgb(0, 0, 0); color: rgb(255, 255, 255);”>2、输入url码流地址<span style="margin: 0px; padding: 0px; max-width: 100%; box-sizing: border-box !important; overflow-wrap: break-word !important; color: rgb(255, 104, 39); font-size: 16px; letter-spacing: 0.544px;”>
<p style="margin-top: 0px; margin-bottom: 0px; padding: 0px; max-width: 100%; clear: both; min-height: 1em; color: rgb(51, 51, 51); font-family: -apple-system-font, BlinkMacSystemFont, “>
<p style="margin-top: 0px; margin-bottom: 15px; padding: 0px; max-width: 100%; clear: both; min-height: 1em; color: rgb(51, 51, 51); font-family: -apple-system-font, BlinkMacSystemFont, “><span style="margin: 0px; padding: 0px; max-width: 100%; color: rgb(62, 62, 62); font-family: Optima-Regular, PingFangTC-light; font-size: 15px; letter-spacing: 0.544px; text-indent: 34px; white-space: pre-wrap; widows: 1; box-sizing: border-box !important; overflow-wrap: break-word !important;”>即可。
<p style="margin-top: 0px; margin-bottom: 15px; padding: 0px; max-width: 100%; clear: both; min-height: 1em; color: rgb(51, 51, 51); font-family: -apple-system-font, BlinkMacSystemFont, “><span style="margin: 0px; padding: 0px; max-width: 100%; color: rgb(62, 62, 62); font-family: Optima-Regular, PingFangTC-light; font-size: 15px; letter-spacing: 0.544px; text-indent: 34px; white-space: pre-wrap; widows: 1; box-sizing: border-box !important; overflow-wrap: break-word !important;”>
<p style="margin-top: 0px; margin-bottom: 15px; padding: 0px; max-width: 100%; clear: both; min-height: 1em; color: rgb(51, 51, 51); font-family: -apple-system-font, BlinkMacSystemFont, “><strong style="margin: 0px; padding: 0px; max-width: 100%; box-sizing: border-box !important; overflow-wrap: break-word !important;”><span style="margin: 0px; padding: 0px; max-width: 100%; color: rgb(62, 62, 62); font-family: Optima-Regular, PingFangTC-light; font-size: 15px; letter-spacing: 0.544px; text-indent: 34px; white-space: pre-wrap; widows: 1; box-sizing: border-box !important; overflow-wrap: break-word !important;”>最后补充:<span style="margin: 0px; padding: 0px; max-width: 100%; color: rgb(62, 62, 62); font-family: Optima-Regular, PingFangTC-light; font-size: 15px; letter-spacing: 0.544px; text-indent: 34px; white-space: pre-wrap; widows: 1; box-sizing: border-box !important; overflow-wrap: break-word !important;”>