diff --git a/revid/testDriver.go b/revid/testDriver.go new file mode 100644 index 00000000..09976bd2 --- /dev/null +++ b/revid/testDriver.go @@ -0,0 +1,27 @@ +package revid + +import ( + "time" +) + +func main(){ + config := Config{ + Input: Raspivid, + Output: Rtmp, + RtmpMethod: LibRtmp, + QuantizationMode: QuantizationOff, + RtmpUrl: "rtmp://a.rtmp.youtube.com/live2/w44c-mkuu-aezg-ceb1", + Bitrate: "500000", + FramesPerClip: 1, + Packetization: Flv, + FrameRate: "25", + } + revidInst, err := NewRevidInstance(config) + if err != nil { + t.Errorf("Should not have got an error!") + return + } + revidInst.Start() + time.Sleep(2*43200*time.Second) + revidInst.Stop() +}