engine
engine copied to clipboard
Monibuca 核心引擎,包含流媒体核心转发逻辑,需要配合功能插件一起组合运行
添加日志打印行号显示,解决打印出的行号显示底层log包位置的bug
我目前需要 7x24 无间断 把rtmp 流推去 monibuca, 我发现有时候网络波动,会断线重连,这时候会收到 duplicate publish 的错误 最后我的解决方法是设 kickexist = true 想问问会不会有其他更好的方法,否则的话我先这样设定了 
例如请求http://127.0.0.1:8080/hls/api/pull?streamPath panic: runtime error: invalid memory address or nil pointer dereference [signal SIGSEGV: segmentation violation code=0x1 addr=0x28 pc=0xb218ee] goroutine 117 [running]: m7s.live/engine/v4.(*IO).IsClosed(...) /root/go/pkg/mod/m7s.live/engine/[email protected]/io.go:55 m7s.live/engine/v4.(*IO).close(0xc0009aa380, {0xc000652500, 0x1, 0x1}) /root/go/pkg/mod/m7s.live/engine/[email protected]/io.go:109 +0x2e m7s.live/engine/v4.(*IO).Stop(...)...
一、问题描述: 1.在使用engine时,推的流在engine/subscriber.go里面报stop xxx ,错误的原因为error dsicard; 2.看了下discard在engine/common/frame.go中,有注释--如果写入时还有读取者没有离开则废弃该帧。防止并发读写。 二、疑问 1.之前的流错误都是timeout等,会走hook插件。但是这个错误并没有。 2.关于discard()方法的解释还能有更加全局,详细一点的解析么。plz
优化代码风格
多利用空行,分割代码段, 增强代码可读性. 现在看到的func基本都是一个空行都没.
obs配置  软件日志  api内容 { "StartTime": "2023-10-08T15:10:59.9241154+08:00", "PublishTimeout": 10000000000, "DelayCloseTimeout": 0, "IdleTimeout": 0, "PauseTimeout": 30000000000, "NeverTimeout": false, "Path": "live/test1", "Publisher": { "ID": "", "Type": "RTMPReceiver", "RemoteAddr": "", "StartTime": "2023-10-08T15:10:59.9241154+08:00",...
有些网络环境中,tcp主动模式还是有必要的,升级后反而不支持了
**Description:** I've recently run into an issue with the Monibuca streaming server while streaming a 60 FPS video file named `frame_counter_4k_60fps.flv`. I used the following FFmpeg command to stream the...