ffmpeg | ||
gb28181-wvp-proxy-api | ||
gb28181-wvp-proxy-orm | ||
gb28181-wvp-proxy-service | ||
gb28181-wvp-proxy-starter | ||
test | ||
.gitignore | ||
LICENSE | ||
lombok.config | ||
mvnw | ||
mvnw.cmd | ||
package-docker.sh | ||
pom.xml | ||
README.md | ||
settings.xml |
gb28181-docking-platform-proxy
gb28181 协议 对接平台 (代理) gb28181-docking-platform-proxy
项目依赖
如果项目依赖无法拉取 请尝试将 maven 配置中 mirror.id maven-default-http-blocker 部分改为
<mirror>
<id>maven-default-http-blocker</id>
<!--<mirrorOf>external:http:*</mirrorOf>-->
<!--放行 http 协议下载 -->
<mirrorOf>!*</mirrorOf>
<name>Pseudo repository to mirror external repositories initially using HTTP.</name>
<url>http://0.0.0.0/</url>
<blocked>true</blocked>
</mirror>
项目打包
打包 为 jar
mvn clean package
打包后jar在 gb28181-wvp-proxy-starter/target/starter.jar
打包 为 docker 镜像
一键脚本(纯docker环境打包 + 编译)
chmod +x ./package-docker.sh
./package-docker.sh
打包后的 docker镜像文件位于 项目根目录 gb28181-docking-platform-proxy.image
测试运行
docker run --name gb28181-wvp-proxy --rm \
--network host \
-v `pwd`/application.yml:/opt/gb28181-docking-platform-wvp-proxy/application.yml \
skcks.cn/gb28181-docking-platform-proxy:0.0.1-SNAPSHOT
打包到本地私仓
mvn deploy -DaltDeploymentRepository=amleixun-mvn-reop::default::file:H:/Repository/skcks.cn/gb28181-docking-platform-mvn-repo
git push 推送即可
docker ffmpeg 推流
docker run --rm jrottenberg/ffmpeg \
-re -i \
"http://192.168.1.241:5080/rtp/44050100001180000001_44050100001310000001.live.flv" \
-vcodec h264 \
-acodec aac \
-f flv \
rtmp://192.168.1.241:1935/live/test?secret=035c73f7-bb6b-4889-a715-d9eb2d1925cc