GithubHelp home page GithubHelp logo

spl's Introduction

spl(视频流)

内部视频传输到公网上

一、架构说明

二、公网上的架构

公网上采用EasyDarwin开源包,作为接受拉推流服务器。
具体操作方法:https://github.com/EasyDarwin/EasyDarwin
操作系统:centOS

三、内网上的架构

内网上采用FFmpeg工具进行推流,具体部署在“消防智能计算中心”上
推流方法如下:ffmpeg -i "rtsp://admin:[email protected]:554/cam/realmonitor?channel=2&subtype=1" -rtsp_transport udp -vcodec h264 -f rtsp rtsp://localhost/3
X86版本:
Arm版本:

大华录像机查看录像的方法:
rtsp://172.22.0.26:554/cam/playback?channel=1&subtype=0&starttime=2016_04_18_11_50_00 说明:
playback表示回放
channel=number表示通道号
subtype=0表示主码流
starttime=YYYY_MM_DD_HH_mm_SS表示回放开始时间
endtime=YYYY_MM_DD_HH_mm_SS表示回放结束时间

四、内外网通信

在外网服务器上搭建消息队列服务器,“消防智能计算中心”实时对需要推流的数据进行监测
在“计算中心的Redis”中标识需要推流的路及互联网的地址
Redis里的结构如下:
开始推流的key:startPush
停止推流的key:endPush
startPush的json如下:
{id: channel: targetUrl: requestIp:}
endPush的json如下:
{id: channel: requestIp:}
正在运行的推流runningPush:
Key:spl_push_id Value:requestIp

实现流程为:

五、内网GO语言推流服务

依赖的包:
go get github.com/go-redis/redis/v8
go get github.com/robfig/cron/[email protected]

nohup ./main &

spl's People

Contributors

chengpengfei avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.