Commit Graph

4094 Commits

Author SHA1 Message Date
Alan Noble 3f59d353c7 Netsender changes, notably common X pins now being handled now by the former. 2018-06-14 16:37:57 +09:30
Dan Kortschak 3e6a3283e1 revid: use correct address for HTTP 2018-06-14 13:42:54 +09:30
kortschak b72d9bdd0d Merged in config/ctrlCctrlV (pull request #31)
revid: fix incorrect assignment
2018-06-13 05:25:35 +00:00
kortschak 5a4ce1aa9c Merged in sender/nilfix (pull request #30)
revid: fix nil dereference panic
2018-06-13 05:25:15 +00:00
Dan Kortschak b89514847d revid: fix incorrect assignment 2018-06-13 14:45:03 +09:30
Dan Kortschak f953216f31 revid: fix nil dereference panic 2018-06-13 12:42:33 +09:30
kortschak 9d6836f585 Merged in gardening/weeds (pull request #29)
revid: various cleanups
2018-06-12 05:46:33 +00:00
Alan Noble 79fc58af63 netsender.Send now takes the payload param. 2018-06-12 13:30:30 +09:30
Dan Kortschak 820dae7b4c revid: various cleanups 2018-06-09 14:58:33 +09:30
kortschak b46ed2a954 Merged in revid/loadsender (pull request #28)
revid: use loadSender for clip sending
2018-06-09 05:17:08 +00:00
Dan Kortschak 1105ee3ea9 revid: use loadSender for clip sending 2018-06-09 14:08:48 +09:30
Dan Kortschak 3881cb9712 revid: avoid monomorphic interface 2018-06-09 11:31:21 +09:30
kortschak 709de3f119 Merged in netsend-fail (pull request #27)
cmd/revid-cli: handle failure to start netsender
2018-06-09 01:10:31 +00:00
Dan Kortschak 165c2ea23e cmd/revid-cli: handle failure to start netsender 2018-06-09 10:16:04 +09:30
kortschak 5bc18e7ed9 Merged in gardening/cmd-revid (pull request #26)
cmd/revid-cli: minor clean-ups
2018-06-09 00:17:26 +00:00
Dan Kortschak e2c2093e28 cmd/revid-cli: move creation code to near call site 2018-06-08 22:26:20 +09:30
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