diff --git a/revid/cmd/h264-file-to-flv-rtmp/main.go b/revid/cmd/h264-file-to-flv-rtmp/main.go index 082bd549..c391ace8 100644 --- a/revid/cmd/h264-file-to-flv-rtmp/main.go +++ b/revid/cmd/h264-file-to-flv-rtmp/main.go @@ -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 {