gqf2008 / bbllive Goto Github PK
View Code? Open in Web Editor NEWrtmp live stream server
License: MIT License
rtmp live stream server
License: MIT License
panic: runtime error: invalid memory address or nil pointer dereference
[signal 0xb code=0x1 addr=0x18 pc=0x48ca5e]
goroutine 34 [running]:
panic(0x80cd20, 0xc82000a100)
/usr/local/go/go-go1.6/src/runtime/panic.go:464 +0x3e6
bbllive/rtmp.sendFullAudio(0xc820128300, 0x0, 0x0, 0x0)
/data1/go/bbllive/src/bbllive/rtmp/rtmp_socket.go:759 +0xbe
bbllive/rtmp.(_RtmpNetStream).sendVideo(0xc820362000, 0xc820119170, 0x0, 0x0)
/data1/go/bbllive/src/bbllive/rtmp/rtmp_netstream.go:324 +0x40c
bbllive/rtmp.(_RtmpNetStream).writeLoop(0xc820362000)
/data1/go/bbllive/src/bbllive/rtmp/rtmp_netstream.go:200 +0x767
created by bbllive/rtmp.(*DefaultServerHandler).OnPlaying
/data1/go/bbllive/src/bbllive/rtmp/rtmp_handler.go:79 +0x16e
../rtmp/rtmp_server.go:4:2: cannot find package "bblgame/libs" in any of:
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x0 pc=0x117d9a6]
goroutine 21 [running]:
_/Users/xh/goProject/bbllive/rtmp.sendFullAudio(0xc420172400, 0x0, 0x0, 0x0)
/Users/xh/goProject/bbllive/rtmp/rtmp_socket.go:759 +0x146
_/Users/xh/goProject/bbllive/rtmp.(*RtmpNetStream).sendVideo(0xc42018a3c0, 0xc420183020, 0x0, 0x0)
/Users/xh/goProject/bbllive/rtmp/rtmp_netstream.go:324 +0x1ee
_/Users/xh/goProject/bbllive/rtmp.(*RtmpNetStream).writeLoop(0xc42018a3c0)
/Users/xh/goProject/bbllive/rtmp/rtmp_netstream.go:200 +0x761
created by _/Users/xh/goProject/bbllive/rtmp.(*DefaultServerHandler).OnPlaying
/Users/xh/goProject/bbllive/rtmp/rtmp_handler.go:79 +0x110
环境是
macOS 10.12.5
go1.8
文件rtmp_socket.go的wirtesequencenum是否为writesequencenum更合理
1、firstVideoKeyFrame、firstAudioKeyFrame一直不更新
if s.Type == RTMP_MSG_VIDEO && s.IFrame() && m.firstVideoKeyFrame == nil {
log.Info(">>>>", s)
m.firstVideoKeyFrame = s
m.streamid = s.StreamId
m.lock.Unlock()
return
}
if s.Type == RTMP_MSG_AUDIO && m.firstAudioKeyFrame == nil {
log.Info(">>>>", s)
m.firstAudioKeyFrame = s
m.lock.Unlock()
return
}
if s.Type == RTMP_MSG_AMF_META && m.metaData == nil {
log.Info(">>>>", s)
m.metaData = s
m.lock.Unlock()
return
}
是不是更新为最新的会更好,每个客户端拉流时都会推送firstVideoKeyFrame、firstAudioKeyFrame,这数据不会是旧的吗?
如题
github.com/kless/goconfig/config 这个找不到了
这个库已经不存在了:https://github.com/kless/goconfig/
无法下载,无法通过编译
https://github.com/kless/goconfig 已经404了。难道?这个学习的机会要消失了?
Initialized empty Git repository in /data1/go/bbllive/src/github.com/kless/goconfig/.git/
error: The requested URL returned error: 403 Forbidden while accessing https://github.com/kless/goconfig/info/refs
fatal: HTTP request failed
package github.com/kless/goconfig/config: exit status 128
修改为:
# github.com/vuleetu/goconfig/config
现有一个测试出现的情况:
1、测试环境是Windows
2、使用ffmpeg推流4个不同的mp4文件,一共4个推流进程
测试现象是:
在 http://127.0.0.1:6060/debug/pprof/
中查看内存堆信息,Heap不停增长,在任务管理器中程序占用的内存由几MB开始增长到几十M,播放一段时间后逐渐逼近100MB
这是否属于正常现象?
另外,Heap当中大部分是rtmp_socket.go:399 ,是否存在没有回收的内存?
如题,
使用ffmpeg推流,ffmpeg -i BilibiliJJ.COM\ 1347701\ Av929059\ P1\ .mp4 -c:a aac -ar 44100 -ab 128k -ac 2 -strict -2 -c:v libx264 -vb 500k -r 30 -s 800*600 -ss 00.000 -f flv rtmp://127.0.0.1/live/xxxx,接收方为ffplay -i rtmp://127.0.0.1/live/xxxx,一切正常,可以播放,
但是如果使用OBS推流则会无法正常显示画面。(可以正常推,但是ffplay无法正常播放)
怎么用啊?
推流等其他测试都可以了,但是我木看见点播以及直播的播放端口以及路径啊?能告知吗?
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.