dependabot[bot] 89627d5e2d Bump minimist and mkdirp in /web_src
Bumps [minimist](https://github.com/minimistjs/minimist) and [mkdirp](https://github.com/isaacs/node-mkdirp). These dependencies needed to be updated together.

Updates `minimist` from 1.2.0 to 1.2.8
- [Release notes](https://github.com/minimistjs/minimist/releases)
- [Changelog](https://github.com/minimistjs/minimist/blob/main/CHANGELOG.md)
- [Commits](https://github.com/minimistjs/minimist/compare/v1.2.0...v1.2.8)

Updates `mkdirp` from 0.5.1 to 0.5.6
- [Release notes](https://github.com/isaacs/node-mkdirp/releases)
- [Changelog](https://github.com/isaacs/node-mkdirp/blob/main/CHANGELOG.md)
- [Commits](https://github.com/isaacs/node-mkdirp/compare/0.5.1...v0.5.6)

---
updated-dependencies:
- dependency-name: minimist
  dependency-type: indirect
- dependency-name: mkdirp
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-03-06 23:27:58 +00:00
2020-09-14 11:07:28 +08:00
2020-06-04 08:40:46 +08:00
2020-09-14 10:13:18 +08:00
2020-09-14 11:07:28 +08:00
www
2021-03-31 13:36:37 +08:00
2020-09-11 13:05:03 +08:00
www
2021-03-31 13:36:37 +08:00
2020-05-27 22:43:37 +08:00
2020-09-12 16:21:54 +08:00
2020-09-12 16:21:54 +08:00
www
2021-03-31 13:36:37 +08:00
2020-07-07 15:51:09 +08:00
2020-05-28 21:08:35 +08:00
2020-09-11 13:05:03 +08:00
2020-05-28 15:20:44 +08:00
2020-09-12 17:23:08 +08:00

GoEasyFfmpeg 管理 ffmpeg 命令

根据开源项目https://github.com/EasyDarwin/EasyDarwin 修改而来

主要功能特点

目前存在问题

  • windows 下无法停止

// 停止代码 windows 下不兼容

cmd := pusher2FfmpegMap[pusher]
proc := cmd.Process
if proc != nil {
    logger.Printf("prepare to SIGTERM to process:%v", proc)
    proc.Signal(syscall.SIGTERM)
    proc.Wait()

    logger.Printf("process:%v terminate.", proc)
}
delete(pusher2FfmpegMap, pusher)
logger.Printf("delete ffmpeg from pull stream from pusher[%v]", pusher)

推流 itpv 的时候各种问题总结

  • 最开始直接使用 https://github.com/EasyDarwin/EasyDarwin ,使用了公司的一个摄像头的数据和网上养鸡场rtsp://www.mym9.com/101065?from=2019-06-28/01:12:13推流, 都能正常推流,但是使用电信数据推流的时候会出现 302 的错误,原因是:电信的地址发起 DESCRIB 之后重定向了一次地址, 需要获取新的地址重新发起请求。但这个项目没有处理这个情况,获取到302就直接报错了。 修改了此问题之后,电信地址的 sdp 请求都能通过但是此项目的 rtsp 服务仍然无法启动:此问题未解决。

  • 重新梳理了一下需求,采用了其他的推流服务器前面介绍的 livegohttps://github.com/aler9/rtsp-simple-server 修改 https://github.com/EasyDarwin/EasyDarwin 项目只用于管理 ffmpeg 命令,启动和停止推流动作。

  • 然后使用 livegohttps://github.com/aler9/rtsp-simple-server 项目做推流的时候,出现 cpu 占用太高的问题。 原因是 ffmpeg 推流如果转码的话需要大量的计算。如果同时推流两路信号基本就 80% 了不能满足需求。既然是转码的问题那么就不转码呗。设置 -c:v copy -c:a copy ,结果发现 rtmp 服务器不支持电信的音视频格式。 最后只能换成 https://github.com/aler9/rtsp-simple-server 服务了,解决了音视频格式不支持问题。

  • 有些推流资源会报错 first pts value must be set cctv7.png

解决方式是增加 -fflags +genpts

Trim video and concatenate using ffmpeg - getting “Non-monotonous DTS in output stream” errors

https://trac.ffmpeg.org/wiki/Concatenate

// 打包前端代码

go-assets-builder www -p routers -o ./routers/assets.go
S
Description
No description provided
Readme Apache-2.0 40 MiB
Languages
Go 69.1%
JavaScript 30.1%
Vue 0.4%
HTML 0.3%