main: added new logger to revid driver file for h264 file to flv rtmp

This commit is contained in:
saxon 2018-09-11 18:36:13 +09:30
parent 35cb30ccf9
commit 03eb68d774
1 changed files with 3 additions and 0 deletions

View File

@ -33,12 +33,14 @@ import (
"time"
"bitbucket.org/ausocean/av/revid"
"bitbucket.org/ausocean/utils/smartlogger"
)
const (
inputFile = "../../../../test/test-data/av/input/betterInput.h264"
frameRate = "25"
runDuration = 120 * time.Second
logPath = "/var/log"
)
// Test h264 inputfile to flv format into rtmp using librtmp c wrapper
@ -59,6 +61,7 @@ func main() {
RtmpMethod: revid.LibRtmp,
RtmpUrl: *rtmpUrlPtr,
Packetization: revid.Flv,
Logger: smartlogger.New(smartlogger.Info, logPath),
}
revidInst, err := revid.New(config, nil)
if err != nil {