Commit Graph

3478 Commits

Author SHA1 Message Date
Dan Kortschak f5a3899e1d cmd/revid-cli: clean up netsender handling 2018-06-08 22:15:14 +09:30
Dan Kortschak 043ff35dfe cmd/revid-cli: separate out loggin consts 2018-06-08 22:14:23 +09:30
Dan Kortschak 41eb46c702 cmd/revid-cli: use time.Duration for durations 2018-06-08 21:52:11 +09:30
kortschak d457256931 Merged in gardening/timeconsts (pull request #25)
revid: use time.Duration for durations

Approved-by: Alan Noble <anoble@gmail.com>
2018-06-08 03:58:11 +00:00
Dan Kortschak 3da57cbe46 revid: use time.Duration for durations 2018-06-08 12:48:11 +09:30
kortschak 576815a10f Merged in revid/waiturl (pull request #24)
revid: wait for URL from netreceiver

Approved-by: Alan Noble <anoble@gmail.com>
2018-06-08 00:30:45 +00:00
Alan Noble 8f79bb7628 Removed RTMPURL var. 2018-06-08 00:30:29 +00:00
Dan Kortschak 902ac744fe revid: address review comments 2018-06-08 09:32:13 +09:30
Alan Noble b3699a8439 Updated to use correct NetReceiver param names, i.e., monPeriod=>mp, inputs=>ip. 2018-06-07 22:02:08 +00:00
Dan Kortschak dee6dec8d4 revid: wait for URL from netreceiver 2018-06-07 21:50:01 +09:30
kortschak 1c61ccbc49 Merged in gardening/names (pull request #23)
revid: lower-case names
2018-06-07 11:26:51 +00:00
Dan Kortschak 71a30bcc67 revid: lower-case names 2018-06-07 20:32:53 +09:30
kortschak 273f04cf87 Merged in kortschak/av/migrate/ring (pull request #22)
ring: migrate package to utils/ring

Approved-by: kortschak <dan@kortschak.io>
2018-06-07 10:58:32 +00:00
Alan Noble 54fd0f383f Change working directory to revid-cli's and set PATH to sudo. 2018-06-07 20:22:28 +09:30
Dan Kortschak 123cf9c7cf ring: migrate package to utils/ring 2018-06-07 15:45:14 +09:30
kortschak 33ef0ce11d Merged in kortschak/av/gardening/ring (pull request #15)
ring: new package replacement for ringbuffer
2018-06-07 05:54:09 +00:00
Dan Kortschak b7b000aeac revid,ring: plumb in ring buffer with WriteTo
There is a residual scar of an intermediate []byte copy because of the
signature of http.NewRequest, but this can be addressed later. The rtmp
interface needed alteration so that rtmp.Session satisfies io.Writer.
2018-06-06 17:55:10 +09:30
Dan Kortschak b8d804e4ec ring: add tests/benchmark for WriterTo path and fix SIGSEGV error
Also add a call to ioutil.ReadAll to mimic the use in revid. There is
not a great deal of difference on the RPi3 in terms of throughput,
though the allocations obviously increase.

```
$ go test -run ^$ -bench . -benchmem -benchtime 30s
goos: linux
goarch: arm
BenchmarkRoundTrip-4           	    2000    20184818 ns/op    1.49 MB/s    104646 B/op    4 allocs/op
BenchmarkRoundTripWriterTo-4   	    2000    20175948 ns/op    1.49 MB/s       175 B/op    3 allocs/op
PASS
```
2018-06-06 17:53:15 +09:30
Dan Kortschak 4e1ae308ff ring: add multiple rewrite WriterTo to ring buffer API 2018-06-06 17:53:15 +09:30
Dan Kortschak a37923439c ring: add benchmark for roundtrip
Running this on a RPi3 gives the following:

```
$ go test -run ^$ -bench . -benchmem -benchtime 30s
goos: linux
goarch: arm
BenchmarkRoundTrip-4   	    2000	  20178499 ns/op	   1.49 MB/s	     174 B/op	       3 allocs/op
PASS
```
2018-06-06 17:53:15 +09:30
Dan Kortschak 2791939f34 ring: reverse time discounting 2018-06-06 17:53:15 +09:30
Dan Kortschak 04df5c2aa2 revid: plumb ring.Buffer into clip handling
This drops ringbuffer and changes the behaviour from purging old
unhandled clips to dropping new unhandled clips.
2018-06-06 17:53:15 +09:30
Dan Kortschak a4497c0ea4 ring: new package replacement for ringbuffer 2018-06-06 17:53:15 +09:30
Alan Noble 16a11ec090 Added utils as a dependency. 2018-06-06 08:53:37 +09:30
Alan Noble 8ab2a5c9e4 Initial revision. 2018-06-06 08:49:14 +09:30
Alan Noble 2bbd6e0f17 Made all the first target, per our convention. 2018-06-06 08:33:35 +09:30
Alan Noble 93c8d94d64 Initial revision. 2018-06-02 18:14:55 +09:30
Alan Noble 9e5e10f413 Changed defaultRtmpUrl to use the endpoint for rig0@ausocean.org, rather than the main AusOcan YouTube channel. 2018-06-02 16:40:41 +09:30
Alan Noble 15d1b3c230 Binary name RevidCLI deprecated in favour of revid-cli. 2018-06-02 16:38:50 +09:30
kortschak 219971230c Merged in kortschak/av/cgo/nocopy (pull request #20)
rtmp: remove unused allocation and copy
2018-06-01 15:02:49 +00:00
Alan Noble 6241671275 Updated to use latest Netsender interface. 2018-06-01 20:50:56 +09:30
kortschak 6aee541256 Merged in kortschak/av/rtmp/nocrypto (pull request #21)
rtmp: do not build in crypto
2018-06-01 06:24:20 +00:00
Dan Kortschak c749523c2a rtmp: do not build in crypto 2018-06-01 15:19:26 +09:30
Alan Noble e29359fe46 Removed binaries. 2018-06-01 12:40:36 +09:30
Dan Kortschak 65a4abb24b rtmp: remove unused allocation and copy 2018-06-01 08:25:42 +09:30
kortschak 12c458b415 Merged in kortschak/av/gardening/fs (pull request #19)
all: cleaning up file names and cmd locations
2018-05-31 10:14:22 +00:00
Dan Kortschak baf19f1dc5 all: cleaning up file names and cmd locations 2018-05-31 19:24:20 +09:30
kortschak 51e2c5c4d6 Merged in kortschak/av/gardening/goimports (pull request #18)
all: clean up imports
2018-05-30 07:32:40 +00:00
Dan Kortschak d6fd3d4539 all: manual clean up of imports 2018-05-30 16:53:57 +09:30
Dan Kortschak 31e2b92598 all: run goimports and clean up 2018-05-30 16:49:13 +09:30
kortschak 3f7ca76ae9 Merged in kortschak/av/cgo/rtmpnull (pull request #17)
rtmp: fix RTMP* handling
2018-05-30 07:19:09 +00:00
Dan Kortschak fb64a47d89 rtmp: fix RTMP* handling 2018-05-30 15:52:33 +09:30
richardsonjack 369beab55c ensure only one logger is ever created 2018-05-30 12:45:37 +09:30
Saxon1 90288f546a Taking out mystery print 2018-05-30 11:57:55 +09:30
richardsonjack 1204b02ee5 remove non required crypto linking flags 2018-05-30 11:25:21 +09:30
kortschak fa1a19e0fa Merged in kortschak/av/gardening/cgo (pull request #16)
rtmp: clean up session handling and CGO interface
2018-05-29 06:27:43 +00:00
Dan Kortschak 173d7c3879 rtmp: clean up session handling and CGO interface
* Make C compilation arch-independent, including shared lib use and fix
  for broken librtmp include install.
* Provide package-root level makefile for building C lib.
* Remove package global.
* Use Go-idiomatic naming for methods.
* Restucture flow to reduce indentation.
* Use []byte len in place of additional param.
* Use unix-idiomatic return status values.
2018-05-29 15:36:28 +09:30
kortschak 093291d214 Merged in kortschak/av/gardening/syntax (pull request #14)
mpegts: fix build
2018-05-28 07:04:56 +00:00
Dan Kortschak e677b9a044 mpegts: fix build 2018-05-28 15:02:10 +09:30
richardsonjack c08a2c079f rename smartlogger 2018-05-24 13:05:29 +09:30