Commit Graph

248 Commits

Author SHA1 Message Date
Saxon 7c6719ab5a stream/mts: using packet.Packet straight away and not doing unnecessary conversions 2019-03-02 13:15:18 +10:30
Saxon 559d15d6eb revid & stream/mts: fixed file headers in mtsSender_test.go and discontinuity.go regarding licensing location 2019-03-01 10:02:43 +10:30
Saxon 31025a114a stream/mts: fixed logic regarding psi writing frequency 2019-02-28 18:19:06 +10:30
Saxon ee915b58ac stream/mts: fixed conflict 2019-02-28 16:47:24 +10:30
Saxon Milton 6228123f7d Merged in add-findpid (pull request #145)
stream/mts: added general FindPID func and FindPAT func.
2019-02-28 05:46:39 +00:00
Saxon a7989955ca stream/mts: corrected func comments for FindPat, FindPmt and FindPid 2019-02-28 11:06:27 +10:30
Saxon 1e9b6c25c9 stream/mts: lowercase PID PAT and PMT in func names 2019-02-28 11:04:40 +10:30
Saxon c1f7497078 stream/mts: using fmt.Errorf instead of fmt.Sprintf inside errors.New 2019-02-27 17:16:15 +10:30
Saxon 1e9fcda47c stream/mts: %v to %d in fmt.Sprintf usage in error message 2019-02-27 17:12:52 +10:30
Saxon 947f818bc6 stream/mts: modified error in FindPid in the case that we can't a packet with given pid so that we show pid 2019-02-27 16:36:59 +10:30
saxon c58b207419 stream: reverted timing changes from most recent PR 2019-02-17 13:35:55 +10:30
saxon 9e9e349cbf stream: reverted some changes I made to tick() in both mts encoder and rtp encoder 2019-02-17 13:27:01 +10:30
saxon ca0a008c59 revid: correct cc logic is discontinuity.go 2019-02-17 12:50:33 +10:30
saxon 3f3d587eeb revid: mtsSender test for segmenting actually working now 2019-02-17 03:35:59 +10:30
saxon a5cb1c5abb stream/mts: made modifications such that the segment test is passing 2019-02-16 23:52:40 +10:30
saxon bb091f5961 revid: wrote test for mtsSender_test.go to see if the mtsSender is segmenting properly 2019-02-16 16:33:39 +10:30
saxon 4ddf87d63d stream/mts/discontinuity.go: fixed expectedCC logic 2019-02-16 14:38:10 +10:30
saxon 361f5edbc9 stream/mts: wrote sender interface and a minimalHttpSender type 2019-02-16 14:26:51 +10:30
saxon 34daa45b46 Merge branch 'master' into mts-chunking 2019-02-16 09:17:43 +10:30
saxon da5fdccaf3 stream/mts & stream/rtp: fixed timing calculations
Currently time calculations in the mts encoder are based on the premise that each mpegts packet is a 'frame', and in the rtp encoder that
each encoding of multiple packets into one rtp packet is a 'frame', these are both false. Mpegts encoding and rtp encoding should do
timestamp calculations using a reasonable approximation of time at encoding/send.
2019-02-16 09:09:54 +10:30
saxon 281aa47fd5 stream/mts: fixing discontinuities that could be caused by ringbuffer 2019-02-16 01:40:35 +10:30
saxon 4044368837 stream/mts: fixed commenting in discontinuity.go 2019-02-15 22:24:07 +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
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
saxon b96df6d3a7 stream/mts: added general FindPID func and FindPAT func. 2019-02-13 14:40:58 +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
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 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
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 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
saxon fadc1fed1b stream/mts/meta: added ExtractAll func and added testing utilities 2019-02-08 21:31:00 +10:30
saxon db3b34c10f stream/mts/meta: meta.Delete no longer returns error - updated code accordingly 2019-02-08 10:56:19 +10:30
saxon a94bdbfe47 stream/mts/meta: meta.Get now returns ok bool rather than error - updated usage accordingly 2019-02-08 10:25:57 +10:30
saxon 8bdfed9960 stream/mts: fixing conflicts 2019-02-08 10:13:51 +10:30
saxon 330fdc6aa8 stream/mts/psi/psi.go: cleaned up and comment consts 2019-02-07 15:48:35 +10:30
saxon b4393e5136 stream/mts/psi/psi.go: checking that we have enough space in psi before creating descriptor 2019-02-07 15:23:41 +10:30
saxon 21265303d7 stream/mts/mpegts.go: reorganised exported constants and commented 2019-02-07 15:06:54 +10:30
saxon b8fc6d7e99 stream/mts/meta/meta.go: ReadFrom to Extract 2019-02-07 14:50:31 +10:30
saxon 46b5acb48c stream/mts/mpgets.go: removing unused consts 2019-02-07 13:59:43 +10:30
saxon 7a7be5580d stream/mts/metaEncode_test.go: wrote function comments for tests 2019-02-07 10:55:58 +10:30
saxon bb032778c6 stream/mts/metaEncode_test.go: fixed metaEncode_test.go by initialising Meta global in tests 2019-02-07 10:48:25 +10:30
saxon 66a2325dcb stream/mts/meta/meta_test.go: using table of tests for TestReadFrom 2019-02-07 10:42:01 +10:30
saxon f96f761b2f stream/mts/meta/meta_test.go: fixed up error logging in meta_test.go i.e. not doing err.Error() for %v format specifiers, and not using t.Errorf when we have no arguments 2019-02-07 09:01:40 +10:30
saxon ad671b520c stream/mts/encoder.go: put todo under comment for Meta meta.Data global 2019-02-07 08:31:02 +10:30
saxon 7cb58c81eb stream/mts/encoder.go: added comment to Meta meta.Data global as it unexported. 2019-02-07 08:29:51 +10:30
saxon fb2217a1f9 stream/mts/encoder.go: wrote todo to make Meta meta.Data struct not be global 2019-02-07 08:27:37 +10:30
saxon 57d1dba2fb stream/mts/meta/meta.go: updated meta.NewWith so that it just uses meta.New, and now ti can add an abitrary number of things to the map. It also overwrites keys that have been repeated 2019-02-06 12:16:44 +10:30