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