Commit Graph

139 Commits

Author SHA1 Message Date
Scott 9a9dba0cd2 add unit tests for NewFromMap and EncodeAsString methods 2020-02-26 10:57:48 +10:30
Scott 813c1d38e7 container/mts/meta: make Delete method correctly update order field 2020-02-26 10:53:22 +10:30
Scott cca292ea17 mts/meta: created EncodeAsString and GetAllFromString methods 2020-02-19 13:10:05 +10:30
Scott 6855244424 mts/meta: created NewFromMap method 2020-02-19 12:57:25 +10:30
Scott d0adae710e PR fixes 2019-12-19 14:21:32 +10:30
Ella Pietraroia 0ec0a08e0e comments and some other small changes made to revid.go encoder.go and config.go 2019-12-19 11:15:47 +10:30
Ella Pietraroia 222864108f making a time based psi method for when to send packets
Added a case that allows packets to be sent by unit of time (in seconds) rather than by number of packets or nal methods. Also made a variable that can be changed in vidgrinder to choose the amount of time, called PsiTime
2019-12-19 09:56:24 +10:30
Scott e116e197ae Changed all %v's to %w's where appropriate 2019-12-04 14:12:20 +10:30
Saxon d554173d7c container/mts/encoder.go: fixed typo in comment for global Meta var 2019-09-24 12:57:38 +09:30
Saxon 4ecd99b0f5 container/mts/encoder.go: gave MJPEG stream ID unique value 2019-09-24 12:54:12 +09:30
Saxon 191be04b11 revid: added support for MJPEG packetisation
Changes included adding support for variable InputCodec that may be set via netreceiver/vidgrind to set to H264/MJPEG. Also setting revid's lexTo
function to mjpeg.Lex in the case of an MJPEG InputCodec. Added options parameter to mts.NewEncoder function so that we can change options of the
encoder, namely whether it bases PSI interval on NAL type, or number of frames - in the case of MJPEG we based PSI interval on number of frames.
2019-09-24 07:42:26 +09:30
Dan Kortschak 8a9d914283 container/mts: use uint16 for media PID 2019-09-15 09:27:26 +09:30
Trek H c3df750175 mts: set nalbasedpsi to false for audio 2019-09-12 23:12:55 +09:30
Trek H e7a02a818f mts: fixed type conversion 2019-09-12 21:29:40 +09:30
Trek H 2c7e28206d Merge branch 'master' into adpcm-mts 2019-09-12 21:11:50 +09:30
Trek H 96035f6d8b adpcm and mts: comments and pid change 2019-09-12 19:16:11 +09:30
Saxon e0509e7e61 codec/containter/mts/encoder_test.go: fixed bug in test 2019-09-11 09:57:45 +09:30
Saxon e57e14678a container/mts: using RealTime type from utils package instead of global vars with mutator functions 2019-08-26 13:29:07 +09:30
Saxon b9cd6b3f13 container/mts/encoder.go: using NALTypeSPS from h264dec package 2019-08-26 09:24:18 +09:30
Saxon 817cc86a34 revid: now have MinPeriod and ClipDuration params
This change included a rename of IntraRefreshPeriod to MinPeriod, and the addition of the ClipDuration param. PSI are now written before IDR. Clips are no longer outputed
based on PSI but rather a time ClipDuration, where ClipDuration >= MinPeriod, however, PSI must still be at the beginning of each clip. Also created functionality to update
meta time even if we don't have a response to update.
2019-08-25 20:42:01 +09:30
Saxon c9d30ad807 codec/h264/h264dec: added helper function to get first MediaPID found in a stream map 2019-08-07 16:15:50 +09:30
Saxon Milton f6c296de01 Merged in media-pids (pull request #220)
container/mts/mpegts.go: added Programs, Streams and MediaStreams functions

Approved-by: Alan Noble <anoble@gmail.com>
2019-08-06 12:01:11 +00:00
Saxon a19c0f4ec3 container/mts/mpegts.go: fixed nil map bug in FindPSI 2019-08-06 15:40:37 +09:30
Saxon ed11fac655 container/mts/mpegts.go: FindPSI now returns a map[uint16]uint8 containing program PIDs and their types instead of []psi.PmtElementaryStream 2019-08-06 15:38:34 +09:30
Saxon 0cb9a50af8 container/mts/mpegts_test.go: added some more interesting test cases for FindPSI 2019-08-05 14:11:28 +09:30
Trek H 3f29f0c84e Merge branch 'master' into revid-audio 2019-08-02 23:32:21 +09:30
Saxon c55cd9a64e container/mts: wrote test for FindPSI and corrected bugs
Wrote the FindPSI test which revealed a bug regarding creation of a PMT using comcast gots. This was fixed by writing Payload function and
extracting payload of PMT packet before giving to psi.NewPMT.
2019-07-26 14:16:05 +09:30
Saxon 0825799cfa container/mts/mpegts.go: renamed IndexPid to FindPSIs and change such that only looked for PSI
We have only ever used this function to find PSI so it makes sense to make it exclusive for this. It now also returns the streams found in the PMT. So that
we can actually retrieve the PIDs of the media and their types.
2019-07-24 12:39:18 +09:30
Saxon 4807b4fcb6 container/mts/mpegts.go: added some commenting to MediaStreams 2019-07-24 00:17:57 +09:30
Saxon bdc3b4cfc5 container/mts/mpegts.go: added Programs, Streams and MediaStreams functions 2019-07-24 00:04:10 +09:30
scruzin e76b8b3800 Tidy up errors used by GetPTS(). 2019-07-13 09:17:44 +09:30
scruzin 9e5bc3806f Added GetPTS. 2019-07-12 14:24:30 +09:30
scruzin aa67134969 Added GetPTS() function. 2019-07-12 14:01:49 +09:30
scruzin 01351a308b Added tests for IndexPid. 2019-07-11 19:29:46 +09:30
scruzin c717595adc Added length check to IndexPid. 2019-07-11 18:16:33 +09:30
scruzin c8a0b7df07 Fix IndexPid. 2019-07-11 17:33:16 +09:30
scruzin 4b57407e36 Don't wrap error unnecessarily. 2019-07-11 14:57:47 +09:30
scruzin b1e5890554 Update prev in IndexPid. 2019-07-11 14:54:06 +09:30
scruzin feea069758 Factored metaFromPMT out of ExtractMeta and added LastPid and IndexPid. 2019-07-11 14:51:23 +09:30
scruzin 90efebdc91 Added BasePMT which is a PMT without specific data, and removed StandardPMT. 2019-07-10 10:17:34 +09:30
scruzin 1728c3a531 Export StandardPAT, StandardPMT and MaxPTS. 2019-07-10 09:26:54 +09:30
Saxon 36f1e8c78b container/mts/payload.go: fixed date in license 2019-07-04 19:48:30 +09:30
Saxon 09d772e9c3 container/mts/mpegts.go: equivalent -> identical in TrimToMetaRange error message 2019-07-04 19:47:34 +09:30
Saxon d2278cb914 container/mts/payload_test.go: corrected comment for TestExtract 2019-07-04 14:40:59 +09:30
Saxon 346dda0f4f container/mts/payload.go: corrected comment for errors used in TrimToMetaRange 2019-07-04 14:40:21 +09:30
Saxon cf600d4aa8 container/mts/payload.go: corrected comment for TimeToPTSRange 2019-07-04 14:39:38 +09:30
Saxon 081fb49d54 container/mts/payload.go: corrected comment for errors used in TrimToPTSRange 2019-07-04 14:39:07 +09:30
Saxon 0f92f7d727 container/mts/payload.go: fix spelling error in comment 2019-07-04 14:38:15 +09:30
Saxon b66f11db19 container/mts/payload.go: removed space after comment 2019-07-04 14:37:43 +09:30
Saxon ac0384127c container/mts/payload.go: removed TODO that's been resolved 2019-07-04 14:37:10 +09:30