Commit Graph

168 Commits

Author SHA1 Message Date
Trek H bbd779d28e revid: update tests to include writeRate metadata 2021-02-17 10:35:48 +10:30
Trek H 8529caacca revid: put writeRate into metadata for mts 2021-02-16 14:57:47 +10:30
Saxon Nelson-Milton fa4713f8fd device/raspistill & revid & container/mts: fixed issues with raspistill test implementations and made slight logging improvements in mts encoder and revid. 2021-02-03 12:17:23 +10:30
Saxon Nelson-Milton 0148c89c7b container/mts/encoder.go & revid: adressing PR feedback 1 2021-01-29 11:18:19 +10:30
Saxon Nelson-Milton b077752462 revid & device/raspistill & container/mts: integrating device/raspistill functionality into revid 2021-01-27 16:49:17 +10:30
Saxon Nelson-Milton 45c019a062 device: add raspistill package housing release and testing implementations 2021-01-20 14:33:47 +10:30
Saxon Nelson-Milton af519d61fa codec: renmaed mjpeg package to jpeg and alter terminology throughout av repo to use mjpeg and jpeg terms appropriately. 2021-01-18 15:29:21 +10:30
Trek H ba8050f66f pes: PCM is SID 192, ADPCM 193 2020-12-22 13:05:11 +10:30
Trek H 236d2c5f48 pes/codecutils: move SID functionality to pes from codecutils, add PCM and ADPCM encoding options 2020-12-22 12:51:20 +10:30
Trek H 5ad8a6ed2d revid: update encder test to use Rate() with float argument 2020-08-14 13:07:03 +09:30
Trek H cc8d205d67 revid: simplify write rate 2020-08-14 11:32:32 +09:30
Saxon Milton 5f5a1d03a1 Merged in psi-field-naming (pull request #414)
container/mts/psi: improved PSI structs field naming

Approved-by: Trek Hopton <trek.hopton@gmail.com>
2020-05-19 12:28:28 +00:00
Saxon a96f805e35 container/mts: add constructors for standard PAT and PMT PSI tables in psi package and have MTS encoder use these. 2020-05-12 18:15:37 +09:30
Saxon fb04d23822 container/mts/psi/helpers.go: removed TimeFrom and usage in psi_test.go 2020-05-06 22:39:46 +09:30
Saxon d17880714e container/mts: make rate and media type encoder parameters option functions 2020-05-06 20:10:55 +09:30
Saxon 13ce7cdba0 container/mts: doing logging in encoder code now 2020-05-03 16:54:12 +09:30
Saxon 18ffefd7cb give container/mts NewEncoder(...) log parameter and update code around repo accordingly 2020-05-03 14:14:31 +09:30
Ella Pietraroia 149f95af84 no package level comments in test files 2020-04-23 12:34:11 +09:30
Ella Pietraroia 945bc61a26 comtainer: mts: package level comments 2020-03-12 15:36:28 +10:30
Ella Pietraroia 75b509be48 container: flv: package level comments 2020-03-12 15:31:39 +10:30
Scott Barnard d996635232 Merged in meta-more-unit-tests (pull request #381)
add unit tests for NewFromMap and EncodeAsString methods

Approved-by: Saxon Milton <saxon.milton@gmail.com>
2020-02-29 05:29:54 +00:00
Scott 48a3aea7f4 container: add package comments to flv, pes, meta and psi packages 2020-02-26 14:32:08 +10:30
Scott 7ae9f265e0 add TestDeleteOrder to check that the order of keys is correct after deletion 2020-02-26 10:57:48 +10:30
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 fc4e88bce6 fixed bugs causing problems with GeoVision H264 RTMP to youtube streaming.
Two fixes were involved, firstly, access unit delimeters were used to denote access units and the Write timeout on rtmpSender's ringBuffer was
increased to stop the 'unable to dump old write' errors. Also made some small changes elsewhere that should fix future issues, particular with
MTS output.
2019-10-07 14:18: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