updating remote

This commit is contained in:
saxon.milton@gmail.com 2018-03-14 12:37:30 +10:30
parent a2ddf3dbe5
commit 09b5fb9066
3 changed files with 29 additions and 27 deletions

View File

@ -1,27 +0,0 @@
package main
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()
}

BIN
testDriver Executable file

Binary file not shown.

29
testDriver.go Normal file
View File

@ -0,0 +1,29 @@
package main
import (
"time"
"fmt"
"bitbucket.org/ausocean/av/revid"
)
func main(){
config := revid.Config{
Input: revid.Raspivid,
Output: revid.Rtmp,
RtmpMethod: revid.LibRtmp,
QuantizationMode: revid.QuantizationOff,
RtmpUrl: "rtmp://a.rtmp.youtube.com/live2/w44c-mkuu-aezg-ceb1",
Bitrate: "500000",
FramesPerClip: 1,
Packetization: revid.Flv,
FrameRate: "25",
}
revidInst, err := revid.NewRevidInstance(config)
if err != nil {
fmt.Println("Should not have got error!")
return
}
revidInst.Start()
time.Sleep(2*43200*time.Second)
revidInst.Stop()
}