Commit Graph

550 Commits

Author SHA1 Message Date
Alan Noble 05c6c376b4 Payload data has now moved onto Pin struct. 2018-06-16 19:04:32 +09:30
kortschak 4c0d219fbf Merged in revid/nilcheck (pull request #33)
revid: fix nil dereference on RTMP reconnect
2018-06-16 04:10:17 +00:00
Dan Kortschak 36ebb5d58a revid: remove unused field in Revid 2018-06-15 21:18:22 +09:30
Alan Noble 53f923afb1 netsender.MakePins() now takes a 2nd arg. 2018-06-15 19:34:50 +09:30
Alan Noble 82f58ec996 NetReceiver vars updating again. sendTo() now takes a *netsender.Sender. 2018-06-15 17:29:59 +09:30
Alan Noble 5ba5327f33 httpSender now implemented as a NetSender client, rather than a generic HTTP client. 2018-06-15 16:42:29 +09:30
Dan Kortschak a995a36ad7 revid: fix nil dereference on RTMP reconnect 2018-06-14 22:54:44 +09:30
Alan Noble 3f59d353c7 Netsender changes, notably common X pins now being handled now by the former. 2018-06-14 16:37:57 +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