cnotch / ipchub Goto Github PK
View Code? Open in Web Editor NEW一个即拷即用、支持摄像头集中管理、多级路由及h5播放的流媒体服务器。
License: MIT License
一个即拷即用、支持摄像头集中管理、多级路由及h5播放的流媒体服务器。
License: MIT License
ubuntu 20.04
run make command, get erros as below:
`CGO_ENABLED=0 go build -o bin/ipchub -ldflags "-X github.com/cnotch/ipchub/config.Version=1.1.0" .
go: github.com/BurntSushi/[email protected]: Get https://proxy.golang.org/github.com/%21burnt%21sushi/toml/@v/v0.3.1.mod: dial tcp 142.251.43.17:443: i/o timeout
make: *** [makefile:13: build] Error 1
`
我将软件发布到arm 32位操作系统遇到了问题
打包命令如下:
set GOARCH=arm
set GOOS=linux
set CGO_ENABLED=0
go build -o ipchub_linux
运行时显示的错误信息:
panic: unaligned 64-bit atomic operation
goroutine 20 [running]:
runtime/internal/atomic.panicUnaligned()
E:/Program Files/Go/src/runtime/internal/atomic/unaligned.go:8 +0x24
runtime/internal/atomic.Store64(0x24881ec, 0x0)
E:/Program Files/Go/src/runtime/internal/atomic/atomic_arm.s:291 +0x14
github.com/cnotch/scheduler.(*Scheduler).run(0x24881c0)
C:/Users/Administrator/go/pkg/mod/github.com/cnotch/[email protected]/scheduler.go:226 +0xf0
created by github.com/cnotch/scheduler.New in goroutine 1
C:/Users/Administrator/go/pkg/mod/github.com/cnotch/[email protected]/scheduler.go:89 +0x274
想要存取 FLV 推流有要調整路由和輸入影像嗎? 怎麼調整我的指令和路徑呢謝謝
## routetable
{
"total": 2,
"next_page_token": "/hr/",
"routes": [
{
"pattern": "/group/door",
"url": "rtsp://192.168.0.111:1554/1",
"keepalive": true
},
{
"pattern": "/hr/",
"url": "rtsp://192.168.0.111:1554/2"
}
]
}
## ffmpeg
ffmpeg -re -fflags +genpts -stream_loop -1 -i ./videoplayback.mp4 -rtsp_transport udp -c:v copy -c:a copy -f rtsp rtsp://localhost:1554/1
範例的意思是要多設兩個推流嗎?
但是這樣跟直接存取有什麼差異,是因為要設存取權限嗎?
[
{
"pattern": "/group/door",
"url": "rtsp://admin:[email protected]:8554/H264MainStream",
"keepalive":true
},
{
"pattern": "/hr/",
"url": "rtsp://admin:[email protected]:1554",
"keepalive": false
}
]
我们配置了两个路由:
/group/door : 集团大门直接连接到摄像头
/hr/ : 人力资源部门的摄像头路由到下级的服务器 假设下级服务器有 /door/video1 和 /door/video2 两个摄像头,那么你可以通过 .../hr/door/video1 和 .../hr/door/video2 访问它们。
请问主动推流怎么推?推文件流
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.