mirror of https://bitbucket.org/ausocean/av.git
added a test driver so that we don't have testing limit
This commit is contained in:
parent
86bc3602d7
commit
466634a6cb
|
@ -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()
|
||||||
|
}
|
Loading…
Reference in New Issue