使用vlc获取海康威视视频流

1.下载相关软件

1.1海康威视官网-服务支持-工具软件-设备网络搜索

下载地址:

复制代码
https://www.hikvision.com/cn/support/tools/hitools/

注意:必须跟摄像头在同一个局域网下才可以使用设备网络搜索工具,才能使用vlc获取到视频流。

1.2下载VLC

下载地址:Download official VLC media player for Windows - VideoLAN

安装完毕

2.获取海康摄像机的rtsp视频流,并用VLC测试

原博客地址:

复制代码
https://blog.csdn.net/jiangbin881/article/details/111881210

2.1海康rtsp流的规则:

复制代码
rtsp://[username]:[password]@[ip]:[port]/[codec]/[channel]/[subtype]/av_stream

实例:

复制代码
rtsp://admin:hik12345@192.168.8.125:554/h264/ch33/main/av_stream

说明:

复制代码
username: 用户名。例如admin。
​
password: 密码。例如12345。
​
ip: 为设备IP。
​
port: 端口号默认为554
​
codec:有h264、MPEG-4、mpeg4这几种。
​
channel: 通道号,起始为1。
​
subtype: 码流类型,主码流为main,辅码流为sub。

原视频流:

复制代码
rtsp://admin:minitor1@192.168.31.77:8000/Streaming/Channels/202

2.2 播放成功的视频流:

m2摄像头

子码流(02,分辨率较低):

复制代码
rtsp://admin:minitor1@192.168.31.77:5411/Streaming/Channels/302

主码流(01,分辨率较高):

复制代码
rtsp://admin:minitor1@192.168.31.77:5411/Streaming/Channels/301

m3摄像头:

复制代码
rtsp://admin:minitor1@192.168.31.77:5411/Streaming/Channels/402

m6摄像头:

复制代码
rtsp://admin:minitor1@192.168.31.77:5411/Streaming/Channels/602

m7摄像头:

复制代码
rtsp://admin:minitor1@192.168.31.77:5411/Streaming/Channels/702

3.yolov5项目中遇到报错:

复制代码
AttributeError: 'Upsample' object has no attribute 'recompute_scale_factor'

解决方案:

复制代码
https://blog.csdn.net/m0_62988777/article/details/131858230?ops_request_misc=%257B%2522request%255Fid%2522%253A%2522169666485916800182759554%2522%252C%2522scm%2522%253A%252220140713.130102334..%2522%257D&request_id=169666485916800182759554&biz_id=0&utm_medium=distribute.pc_search_result.none-task-blog-2~all~sobaiduend~default-1-131858230-null-null.142^v95^insert_down28v1&utm_term=AttributeError%3A%20Upsample%20object%20has%20no%20attribute%20recompute_scale_factor&spm=1018.2226.3001.4187
相关推荐
有泽改之_几秒前
Garmin FIT协议与FIT Activity文件类型
网络·python
a***9768几秒前
Python大数据可视化:基于大数据技术的共享单车数据分析与辅助管理系统_flask+hadoop+spider
大数据·python·信息可视化
存内计算开发者1 分钟前
存算一体架构在空间计算中的应用
人工智能·神经网络·机器学习·计算机视觉·架构·空间计算·存算一体
love530love2 分钟前
【笔记】解决 Stable Diffusion WebUI 启动 “找不到llama_cpp模块”
运维·windows·笔记·python·stable diffusion·github·llama
h***67375 分钟前
Flask:后端框架使用
后端·python·flask
技术传感器7 分钟前
Prompt工程的艺术与科学:从“对话“到“编程“,掌握与大模型高效协作的元技能
人工智能·microsoft·架构·prompt·aigc
MediaTea9 分钟前
Python 库手册:gc 垃圾回收
java·开发语言·jvm·python·算法
红蒲公英10 分钟前
( 教学 )Agent 构建 Prompt(提示词)2. CommaSeparatedListOutputParser
人工智能·python·langchain·prompt·langgraph
v***431711 分钟前
Elasticsearch(ES)基础查询语法的使用
python·elasticsearch·django
玖日大大1 小时前
JoyAgent-JDGenie:开源多智能体系统的工业级实践
人工智能·开源