Commit Graph

69 Commits

Author SHA1 Message Date
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 8bdfed9960 stream/mts: fixing conflicts 2019-02-08 10:13:51 +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 2b7ab27763 cmd/revid-cli & stream/mts/meta: added meta.NewWith function that creates a new meta.Data and adds an initial entry. Using meta.NewWith in revid-cli to initialise mts' global meta.Data with some preamble data. 2019-02-06 10:19:12 +10:30
saxon 6b32064a2b stream/mts/encoder.go: changed updateMeta signature to return bytes slice rather than passing in pointer to byte slice. 2019-02-05 23:24:00 +10:30
saxon dc46d9f0b2 stream/mts/encoder.go: not doing scoped conditional in writePSI when calling updateMeta 2019-02-05 23:18:05 +10:30
saxon 6425403fcb stream/mts/encoder.go: adding copyright meta first thing 2019-02-05 13:14:42 +10:30
saxon 0a96d18a10 stream/mts/encoder.go: finished comment for updateMeta function 2019-02-04 22:17:39 +10:30
saxon 1570974ab7 stream/mts/encoder.go: removed init func where Meta was being initialised - just doing initialisation on same line 2019-02-04 22:14:17 +10:30
saxon eb54871402 stream/mts/encoder.go: simplified updateMeta 2019-02-01 11:39:47 +10:30
saxon 1f1546a284 revid: updated code in senders.go to work with meta changes 2019-01-31 21:30:08 +10:30
saxon d373f85b85 stream/mts: wrote test in metaEncode_test.go and found bug which was fixed 2019-01-30 15:37:15 +10:30
saxon 7dd1ce99e1 stream/mts: started writing metaEncode_test.go file 2019-01-30 13:23:07 +10:30
saxon 1786ed2661 stream/mts/psi: finished writing AddDescriptor 2019-01-29 16:14:00 +10:30
saxon 3bb1ca9379 stream/mts: wrote NewMeta func to initialize map in the Meta struct. Also wrote two tests, one TestAddAndGet to see if we can add and get metadata, and also second TestUpdate to see if we can correctly update metadata with the same key using Meta.Add 2019-01-27 17:57:42 +10:30
saxon 9171b56d31 stream/mts: created new type to represent Descriptor (typedef of []bytes) so that we can create receiver functions. Wrote AddDescriptor func to add or update a descriptor in a pmt. Wrote ProgramInfoLen func to return the program info length i.e. len of descriptors. Wrote HasDescriptor to check if descriptor exists, if so return the descriptor so that we can update. Wrote descriptors which returns []byte of all descriptors. Wrote create descriptor, which adds a descriptor to the existing if any i.e. shifts data downwards to accomodate new data. Wrote update func to update a descriptor. 2019-01-27 16:55:00 +10:30
saxon 6f421ab706 stream/mts/psi.go: added more to AddDescriptor and added signature for edistDesc 2019-01-26 23:35:31 +10:30
saxon ecf7263bc1 stream/mts/meta.go: started using mutex where I was supposed to 2019-01-26 22:42:31 +10:30
saxon 8f5a2352b2 stream/mts: added meta.go file to contain struct and methods relating to Metadata and operations 2019-01-26 21:57:14 +10:30
saxon 87ded6bf2e stream/mts/encoder.go: implemented metadata receiver functions: Add, Get, All and Delete 2019-01-26 21:53:19 +10:30
saxon d107231224 stream/mts: starting to work out meta logistics in encoder.go and added incomplete AddDescriptor function in psi package 2019-01-26 18:04:21 +10:30
saxon aea41fb710 stream/mts: adding some constants 2019-01-25 16:25:01 +10:30
saxon 31b9ec07e9 stream/mts/encoder.go: no need to have a now field to capture current time - this can be local to encode function 2019-01-24 14:39:14 +10:30
saxon 42c9fb1d09 stream/mts/encoder.go: writing psi based on time interval rather than number of packets interval 2019-01-24 14:33:22 +10:30
saxon df146cfb17 stream/mts/encoder.go: writing psi at start of stream 2019-01-23 15:50:25 +10:30
saxon 46f5ffd6f2 mts: PktSize to PacketSize 2019-01-12 17:36:35 +10:30
saxon 010abcfd0c mts: ccMask to continuityCounterMask in encoder.go 2019-01-12 17:34:43 +10:30
saxon 662d71bf54 mts+psi: fixed conflicts with master 2019-01-12 17:03:55 +10:30
Dan Kortschak 65e2ab3f6a stream/mts{,psi}: fix comments 2019-01-11 22:29:48 +10:30
saxon f88115f811 mts: fixed comment 2019-01-11 10:57:53 +10:30
saxon 7fe8356b11 mts: nonembeded mutex in TimeLocation 2019-01-10 17:26:48 +10:30
saxon 304d5501ac mts: improved some commenting 2019-01-10 11:12:33 +10:30
saxon 459b1895de mts: got rid of blank line 2019-01-09 09:16:57 +10:30
saxon f432950c28 mts: GetLocation()=>Location() and GetTimeStamp()=>TimeStamp() 2019-01-09 09:15:08 +10:30
saxon c76c4aafb9 mts: fixed some commenting 2019-01-09 09:12:46 +10:30
saxon 6cb56421d3 mts: add getters and setters with mutex to the TimeLocation struct. 2019-01-08 20:01:30 +10:30
saxon ddf7a94ab8 mts: made standard pat and pmt tables unexported 2019-01-08 19:46:24 +10:30
saxon a63013ca4a mts: UCed some words and any std => standard 2019-01-08 19:44:33 +10:30
saxon b75dfaa4de mts: added full stops to some comments 2019-01-08 19:42:46 +10:30
saxon ffc1af2cd4 psi: removed declaration and initialisation of standard psi structures in std.go as this is dangerous 2019-01-07 17:13:50 +10:30
saxon 239e1dfc93 psi: made TimeLocation struct member vars exported 2019-01-07 12:05:05 +10:30
saxon 7a73f69fe9 psi: MetaData struct => TimeLocation and also not initialising anymore 2019-01-07 11:59:46 +10:30
saxon 1436d1f256 mts: fixed build error 2019-01-02 10:36:46 +10:30
saxon 52b8f7bf54 mts: replaced usage of Len with Size for PktSize and PayloadSize etc 2019-01-02 10:23:02 +10:30
saxon c739b10f86 mts: removed repeated use of addPadding func 2018-12-27 14:11:23 +10:30
saxon b28861d690 pes: MaxPesSize to MaxPesLen 2018-12-27 13:36:38 +10:30
saxon 49a6acbde8 mts: some more const naming improvements 2018-12-27 13:29:08 +10:30
saxon 3a872d46c8 mts: improved some const naming 2018-12-27 13:25:51 +10:30