mirror of https://bitbucket.org/ausocean/av.git
28 lines
524 B
Go
28 lines
524 B
Go
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()
|
|
}
|