From eff48ef4fc90c5458c091707c2a4f093a9069560 Mon Sep 17 00:00:00 2001 From: Alan Noble Date: Mon, 20 Aug 2018 14:52:41 +0930 Subject: [PATCH] Removed obsolete basic-driver. --- cmd/basic-driver/main.go | 31 ------------------------------- 1 file changed, 31 deletions(-) delete mode 100644 cmd/basic-driver/main.go diff --git a/cmd/basic-driver/main.go b/cmd/basic-driver/main.go deleted file mode 100644 index 3d880db1..00000000 --- a/cmd/basic-driver/main.go +++ /dev/null @@ -1,31 +0,0 @@ -package main - -import ( - "fmt" - "time" - - "bitbucket.org/ausocean/av/revid" -) - -func main() { - // Give the platform some time to set itself up - time.Sleep(30 * time.Second) - config := revid.Config{ - Input: revid.Raspivid, - Output: revid.NativeRtmp, - QuantizationMode: revid.QuantizationOff, - RtmpUrl: "rtmp://a.rtmp.youtube.com/live2/xt13-r4dh-f2w1-bh4s", - Bitrate: "500000", - Packetization: revid.Flv, - } - revidInst, err := revid.NewRevid(config) - if err != nil { - fmt.Println("Should not have got error!") - return - } - // Run this instance for 2 days! Power to the pi will surely turn itself - // off before this time is up. - revidInst.Start() - time.Sleep(2 * 43200 * time.Second) - revidInst.Stop() -}