mirror of https://bitbucket.org/ausocean/av.git
main: added new logger to revid driver file for h264 file to flv rtmp
This commit is contained in:
parent
35cb30ccf9
commit
03eb68d774
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue