From 323a0ae83a6ec10820054fa55252569206f612e8 Mon Sep 17 00:00:00 2001 From: Saxon1 Date: Thu, 19 Apr 2018 19:18:29 +0930 Subject: [PATCH] getting rid of some bad output --- revid/Revid.go | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/revid/Revid.go b/revid/Revid.go index 0601c87a..edc171c3 100644 --- a/revid/Revid.go +++ b/revid/Revid.go @@ -65,7 +65,7 @@ const ( httpTimeOut = 5 // s packetsPerFrame = 7 h264BufferSize = 1000000 - bitrateTime = 60 + bitrateTime = 10 // s mjpegParserInChanLen = 100000 ffmpegPath = "/usr/local/bin/ffmpeg" rtmpConnectionTimout = 10 @@ -132,8 +132,6 @@ func NewRevid(config Config) (r *revid, err error) { r.outputChan = make(chan []byte, outputChanSize) r.parser.Start() go r.packClips() - r.Log(Info, "New revid instance created! config is:") - r.Log(Info, fmt.Sprintf("%v", r.config)) return } @@ -354,9 +352,6 @@ func (r *revid) outputClips() { // If the ringbuffer has something we can read and send off 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) errorCount := 0 for err := r.sendClip(clip); err != nil; errorCount++ {