mirror of https://bitbucket.org/ausocean/av.git
updating remote
This commit is contained in:
parent
a2ddf3dbe5
commit
09b5fb9066
|
@ -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()
|
||||
}
|
Binary file not shown.
|
@ -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()
|
||||
}
|
Loading…
Reference in New Issue