mirror of https://bitbucket.org/ausocean/av.git
getting rid of some bad output
This commit is contained in:
parent
583374a94c
commit
323a0ae83a
|
@ -65,7 +65,7 @@ const (
|
||||||
httpTimeOut = 5 // s
|
httpTimeOut = 5 // s
|
||||||
packetsPerFrame = 7
|
packetsPerFrame = 7
|
||||||
h264BufferSize = 1000000
|
h264BufferSize = 1000000
|
||||||
bitrateTime = 60
|
bitrateTime = 10 // s
|
||||||
mjpegParserInChanLen = 100000
|
mjpegParserInChanLen = 100000
|
||||||
ffmpegPath = "/usr/local/bin/ffmpeg"
|
ffmpegPath = "/usr/local/bin/ffmpeg"
|
||||||
rtmpConnectionTimout = 10
|
rtmpConnectionTimout = 10
|
||||||
|
@ -132,8 +132,6 @@ func NewRevid(config Config) (r *revid, err error) {
|
||||||
r.outputChan = make(chan []byte, outputChanSize)
|
r.outputChan = make(chan []byte, outputChanSize)
|
||||||
r.parser.Start()
|
r.parser.Start()
|
||||||
go r.packClips()
|
go r.packClips()
|
||||||
r.Log(Info, "New revid instance created! config is:")
|
|
||||||
r.Log(Info, fmt.Sprintf("%v", r.config))
|
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -354,9 +352,6 @@ func (r *revid) outputClips() {
|
||||||
|
|
||||||
// If the ringbuffer has something we can read and send off
|
// If the ringbuffer has something we can read and send off
|
||||||
if clip, err := r.ringBuffer.Read(); err == nil {
|
if clip, err := r.ringBuffer.Read(); err == nil {
|
||||||
//r.Log(Debug, fmt.Sprintf("Delay is: %v\n", delay))
|
|
||||||
r.Log(Debug, fmt.Sprintf("Ring buffer size: %v\n", r.ringBuffer.GetNoOfElements()))
|
|
||||||
// Output clip to the output specified in the configuration struct
|
|
||||||
bytes += len(clip)
|
bytes += len(clip)
|
||||||
errorCount := 0
|
errorCount := 0
|
||||||
for err := r.sendClip(clip); err != nil; errorCount++ {
|
for err := r.sendClip(clip); err != nil; errorCount++ {
|
||||||
|
|
Loading…
Reference in New Issue