Commit Graph

2612 Commits

Author SHA1 Message Date
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
richardsonjack 6578511dc8 Fix missed log updates 2018-05-24 12:23:25 +09:30
richardsonjack 898b231521 Update log API call 2018-05-24 12:20:41 +09:30
richardsonjack 63f56a964f Merge branch 'master' of https://bitbucket.org/ausocean/av/src 2018-05-24 12:13:05 +09:30
richardsonjack 9b4d2127b0 fix spelling error 2018-05-24 12:12:53 +09:30
Saxon1 074eab0fb2 Merge branch 'master' of https://bitbucket.org/ausocean/av/src 2018-05-24 11:59:12 +09:30
richardsonjack 7dbb48f5c1 Update to use new logger 2018-05-24 11:58:53 +09:30
Saxon1 8282cd3880 printing clearing output chan less 2018-05-24 11:58:49 +09:30
Saxon1 e76deb3864 Merge branch 'master' of https://bitbucket.org/ausocean/av/src 2018-05-24 11:52:50 +09:30
Saxon1 2ff683160a changing verbosity 2018-05-24 11:52:24 +09:30
Alan Noble 06fd89b0cc Initial revision. 2018-05-19 11:13:17 +09:30
Saxon Milton 0741643ac6 fix bitrate update 2018-05-17 16:39:36 +09:30
Saxon Milton 8e806b59dc Merge branch 'master' of https://bitbucket.org/ausocean/av 2018-05-14 16:24:45 +09:30
Saxon Milton 839ac9d922 updating changes 2018-05-14 16:23:55 +09:30
Alan Noble 3792c7953d Export GetBitrate(). 2018-05-14 15:43:19 +09:30
Alan Noble e30ec5d49d Added X23 pin to report revid's bitrate. 2018-05-14 15:42:46 +09:30
Saxon1 4aa0fed8b8 Merge branch 'RevidCLI' 2018-05-08 16:22:12 +09:30