Commit Graph

3954 Commits

Author SHA1 Message Date
saxon b6bf41b17d stream/mts: made mtsSender more general
The mtsSender can now use any loadSender to send fixed and segmented mts data to.
2019-02-15 23:35:45 +10:30
saxon 31d36577b1 stream/mts: ausOceanSender => mtsSender 2019-02-15 23:17:13 +10:30
saxon 4044368837 stream/mts: fixed commenting in discontinuity.go 2019-02-15 22:24:07 +10:30
saxon 3aa94887eb revid/senders.go: commenting of ausOceanSender 2019-02-15 14:33:18 +10:30
saxon 6964ac513e stream/mts: adding discontinuity.go which contains discontinuity repairer 2019-02-15 13:49:37 +10:30
saxon 694ec5d009 stream/mts: fixed build errors 2019-02-15 13:43:01 +10:30
Trek H 14f8e7d29c ADPCM: correct calls to adpcm functions in test 2019-02-15 13:31:16 +10:30
saxon d3a8bb20de revid: using ausOceanSender if we're doing http output with mpegtrs packetization 2019-02-15 13:05:48 +10:30
saxon 7d03830a4e revid & stream/mts: senders now handle clip duration and cc fixing for mts.
Removed rtpSender as we now put in loadSender slice. Removed packer write method as no longer required to do clip duration logic. For initialisation of encoders, they are now no longer writing
to packer, but now straight to the ring buffer. Wrote ausOceanSender which will deal with clip logic and cc fixing for mts. Added some functionality to mts/mpegts.go that allows adding
of adaptation fields to mts packets.
2019-02-15 12:01:07 +10:30
Trek H bd70144deb ADPCM: Simplified for loops for creating and encoding/decoding blocks 2019-02-13 17:30:11 +10:30
Trek H 78a3127632 ADPCM: changed adpcm_test.go to use pre-allocation of byte slices 2019-02-13 16:58:21 +10:30
Trek H 7d3829d19f ADPCM: pre-allocating memory for entire known length of output byte slice 2019-02-13 16:53:25 +10:30
saxon b96df6d3a7 stream/mts: added general FindPID func and FindPAT func. 2019-02-13 14:40:58 +10:30
Trek H 43c6027888 ADPCM: added helper function for adding int16s without overflowing 2019-02-13 12:43:13 +10:30
Trek H c30b3de7c3 ADPCM: fixed spacing and overflow check 2019-02-13 11:53:06 +10:30
Trek H 790dfaba7e Merge branch 'master' into audio-compression 2019-02-13 10:04:43 +10:30
saxon c3743174da cmd/revid-cli: initialisation of logger actually usses what was given as revid-cli verbosity flag input 2019-02-12 18:37:15 +10:30
saxon 3ee2683ca9 cmd/revid-cli & revid: outputFileNamePtr => outputPathPtr, config.OutputFileName=>config.OutputPath, inputFileNamePtr=>inputPathPtr and finally, config.InputFileName=>config.InputPath 2019-02-12 18:22:46 +10:30
Trek H eed8cf7b3f ADPCM: added decode test, named constants and added comments 2019-02-12 14:49:16 +10:30
saxon 2a61f2d08d cmd/revid-cli: added space before rv declaration 2019-02-12 11:37:50 +10:30
saxon e2d80b423c cmd/revid-cli: removed comment we don't need anymore 2019-02-12 11:33:48 +10:30
saxon 69029889fe cmd/revid-cli: using closure for readPin func so that we don't have to have global revid 2019-02-12 11:32:02 +10:30
saxon b9c53791d8 cmd/revid-cli: updated readPin func comment 2019-02-12 10:42:26 +10:30
saxon 4e1c8e7c45 cmd/revid-cli: made Revid global so that revid.Bitrate() can be accessed in readPin 2019-02-12 10:39:23 +10:30
saxon f67fb1ec8a cmd/revid-cli: replaced use of send() with netsender.Run() and implemented readPin func. 2019-02-11 16:49:28 +10:30
Saxon Milton bfdefa97f8 Merged in meta-keys-func (pull request #140)
stream/mts/meta: added Keys() func and appropriate testing

Approved-by: kortschak <dan@kortschak.io>
2019-02-11 06:09:10 +00:00
Trek H ec06c0759d ADPCM: removed unneeded files and renamed files 2019-02-11 15:58:33 +10:30
Trek H 317376cd54 ADPCM: removed unneeded test programs 2019-02-11 15:47:45 +10:30
Trek H a68b8ec5de ADPCM: removed todo comments 2019-02-11 15:25:10 +10:30
saxon 934653991d Merge branch 'master' into meta-keys-func 2019-02-11 15:01:49 +10:30
saxon dad70b37b4 stream/mts/meta/meta.go: reduced verbosity of local vars in meta.Keys 2019-02-11 14:30:37 +10:30
Trek H a447a20229 ADPCM: moved commands and adpcm codec to appropriate folders 2019-02-11 12:11:26 +10:30
Trek H 2c24f72703 ADPCM: removed unneccessary debug code and added comments for exported functions 2019-02-11 11:35:16 +10:30
Trek H eabea6ce26 ADPCM: removed unneccessary code for commands and updated their file names 2019-02-11 11:01:38 +10:30
Trek H 5a2129f00f ADPCM: added programs to test encoding and decoding of raw PCM files 2019-02-11 10:10:12 +10:30
Trek H f03c8052d6 ADPCM: Encoding and decoding blocks fully functional. 2019-02-11 10:02:24 +10:30
kortschak dfb282cd25 Merged in ts-repair-repair (pull request #139)
exp: fix build

Approved-by: Saxon Milton <saxon.milton@gmail.com>
2019-02-10 23:08:40 +00:00
Dan Kortschak 14ca8e8b27 circle-ci: make test data available 2019-02-10 09:11:21 +10:30
saxon ce92dd37d8 stream/mts/meta: added Keys() func and appropriate testing
A meta.Keys(d []byte) []string, error func has been added that will extract the keys of a metadata string. A test has also been added
to test that this function performs as expected.
2019-02-10 08:58:38 +10:30
Saxon Milton 07d0b7cd5b Merged in add-extract-all (pull request #138)
stream/mts/meta: added ExtractAll func

Approved-by: Alan Noble <anoble@gmail.com>
Approved-by: kortschak <dan@kortschak.io>
2019-02-09 12:30:38 +00:00
saxon 1f3d34b6bb stream/mts/meta/meta_test.go: corrected func comment for TestGetFrom 2019-02-09 22:27:25 +10:30
saxon cc0becf58c stream/mts/meta: simplified meta checking for Get and GetAll 2019-02-09 22:25:36 +10:30
Dan Kortschak b24e72caa5 experimentation: rename to exp 2019-02-09 22:14:21 +10:30
Dan Kortschak 46ab4b200e exp/ts-repair: fix assignment 2019-02-09 22:12:55 +10:30
Saxon Milton 073678f190 Merged in rtp-encoder-buffer-fix (pull request #137)
stream/rtp/encoder.go: more sensible use of encoder buffer

Approved-by: kortschak <dan@kortschak.io>
2019-02-09 11:07:24 +00:00
saxon 50575270b9 stream/mts/meta: checking if given slice is nil or empty and returning error if either. Also updated some func comments 2019-02-09 21:35:35 +10:30
saxon 716a92a72c stream/rtp/encoder.go: sendLen to sendSize and capturing error from e.Encode() 2019-02-09 19:31:15 +10:30
saxon 01513fbb3f stream/rtp/encoder.go: correct encoder.Write to work if an abitrary number of bytes are written 2019-02-09 13:22:18 +10:30
saxon e796a5a3b7 stream/mts/meta: updating function comments and test function names according to Extract->Get and ExtractAll->GetAll change 2019-02-09 12:16:57 +10:30
saxon f9d8accdae stream/mts/meta/meta.go: Extract and ExtractAll to Get and GetAll 2019-02-09 12:14:32 +10:30