Commit Graph

1655 Commits

Author SHA1 Message Date
saxon 05f5a967fe av/stream/flac: using writerseeker to pass to wav.NewEncoder because I don't want to give it a file, but it's not working 2019-02-08 18:07:59 +10:30
saxon 631b3a27f2 av/stream/flac: wrote decode function and test to see if we can get wav. 2019-02-08 18:07:59 +10:30
saxon dda6602a47 av/stream/flac: added decode.go and flac_test.go 2019-02-08 18:07:59 +10:30
saxon b28a75d665 av/revid: removed test commands that we're not using anymore 2019-02-08 18:07:43 +10:30
saxon a6d02a2e02 stream/mts: adding some constants 2019-02-08 18:06:47 +10:30
saxon 90a85fbfbb cmd/ts-repair: updated comments and made funcs more robust 2019-02-08 18:06:47 +10:30
saxon cac7184737 cmd/ts-repair: got rid of debug prints 2019-02-08 18:06:47 +10:30
saxon 72f0087b9a cmd/ts-repair: got setting of discontinuity indicators working and also adding adaptation fields to pat and pmt for this reason. 2019-02-08 18:06:47 +10:30
saxon c7a9e0a06b mts: fixing cc 2019-02-08 18:06:47 +10:30
Saxon Milton ccb8a52db1 revid/revid.go: removing shorthand initialisations for vars already declared 2019-02-06 05:28:57 +00:00
Saxon Milton 87cb303935 revid/revid.go: again checking to see we actually have destinations before putting anything into the ring buffer 2019-02-06 05:27:35 +00:00
saxon ef4aa8efd1 revid/revid.go: reverted change regarding putting things in ringbuffer when we won't use it 2019-02-06 15:52:59 +10:30
saxon cdd6703930 } 2019-02-06 15:45:14 +10:30
Saxon Milton f96a04ece7 Merged in revid-cleanup (pull request #134)
revid: revid cleaning and implementation of burst mode

Approved-by: Alan Noble <anoble@gmail.com>
2019-02-05 00:34:04 +00:00
saxon de4f471201 revid/revid.go: defer r.wg.Done() in revid.outputClips routine 2019-02-05 10:50:21 +10:30
saxon a4d179039b revid/revid.go: removed default case in switch with revid.Update() 2019-02-05 10:49:05 +10:30
saxon ea8572a777 cmd/revid-cli: catching error in conversion of mp 2019-02-05 10:45:15 +10:30
saxon 4dcbd90449 cmd/revid-cli: removed another closed scope condition 2019-02-05 10:40:08 +10:30
saxon 35344402b8 cmd/revid-cli/main.go: not using closed scope conditions anymore 2019-02-05 10:32:16 +10:30
Saxon Milton 3f74b76eee Merged in write-psi-by-time (pull request #128)
stream/mts/encoder.go: writing psi based on time interval

Approved-by: Alan Noble <anoble@gmail.com>
2019-02-04 11:32:14 +00:00
saxon bd2958ba4e cmd/revid-cli & revid: added TODO for the use of Run() instead of send in cmd/revid-cli/main.go. Fixed filename in revid/revid.go file header. Renamed ret to cfg in revid.Config(). Catching error from call to revid.Stop() in revid.Udate() 2019-02-04 19:14:02 +10:30
saxon 1cdbfa2c66 cmd/revid-cli: setting mode to paused if ns is in burst mode. 2019-02-04 17:14:19 +10:30
saxon 8978f9edc5 cmd/revid-cli & revid: using goto to sleep for monitor period, and using wg.Done() at the end of output routine. 2019-02-04 17:12:30 +10:30
saxon 93e3899725 cmd/revid-cli: using ns.Send() rather than ns.Run() to poll 2019-02-04 17:04:49 +10:30
saxon ee7eb84d26 revid-cli: correctly using ns.Mode() and ns.SetMode() 2019-02-04 13:25:37 +10:30
saxon 6171c4e999 revid: added handling of burstPeriod to config 2019-02-03 23:43:51 +10:30
saxon 1010721dd0 cmd/revid-cli & revid: Checking revid mode differently - now using ns.Mode(), which should soon be an available feature. Also now using ns.SetMode() - which tells netreceiver that we've changed mode. 2019-02-03 23:37:38 +10:30
saxon 9095044e23 revid: using waitgroups so that revid.Stop() is safer - we can wait until the input and output routines are done before we do anything, like touch the revid config. Also started modifying revid.Update() to remove errors introduced after the copy of updateRevid from revid-cli to revid.go in the previous commit. 2019-02-03 21:55:40 +10:30
saxon 1af4b25030 cmd/revid-cli & revid: removed startRevid and stopRevid as shouldn't be required when we have revid.Start() and revid.Stop(). Created revid.Config() which returns copy of config safely using mutex. removed updateRevid in revid-cli and move to fun revid.Update() - as there's no reason why it can't just be a receiver func - even better considering we want to start moving alot of stuff from revid-cli to the revid-api anyways. 2019-02-03 21:17:44 +10:30
Alan Noble f28cb0c500 Merged in rtmp-conn-as-interface (pull request #133)
rtmp: Use a net.Conn interface instead of *net.TCPConn.

Approved-by: kortschak <dan@kortschak.io>
Approved-by: Alan Noble <anoble@gmail.com>
2019-02-02 03:37:09 +00:00
scruzin 0e34623f0f rtmp: Use a net.Conn interface instead of *net.TCPConn. 2019-02-02 12:27:21 +10:30
Saxon Milton ea89e7a5af Merged in revid-api-redesign-phase1 (pull request #130)
stream/mts: patch for revid.Start() no exit bug

Approved-by: Alan Noble <anoble@gmail.com>
2019-01-31 23:55:14 +00:00
saxon c44d6bbfd3 revid/revid.go: not during time.Duration conversion 2019-02-01 10:08:49 +10:30
saxon 9bddf343f5 revid/revid.go: moved revid.mu declaration
. Updated todo owner
2019-02-01 10:07:00 +10:30
saxon d26aa8643a revid: renamed transcode to processFrom. Using mutex for isRunning flag. Created setIsRunning func to set state of isRunning. 2019-02-01 09:47:31 +10:30
Alan Noble 0f346ea523 Merged in rtmp-refactoring-4 (pull request #121)
Rtmp refactoring 4

Approved-by: Saxon Milton <saxon.milton@gmail.com>
Approved-by: Alan Noble <anoble@gmail.com>
2019-01-31 21:26:22 +00:00
saxon 051263c144 revid/revid.go: revid.lex to revid.transcode 2019-01-31 19:58:25 +10:30
saxon 1e307fc37b revid/revid.go: made routines named rather than anonymous 2019-01-31 19:42:20 +10:30
saxon e18b1f51f0 revid/revid.go: capture error from r.Start() in error handling routine 2019-01-31 15:49:44 +10:30
saxon d53eafe215 revid/revid.go: not running r.setupInput() as routine - now getting error an returning 2019-01-31 15:15:38 +10:30
saxon ed4d97f893 stream/mts: patch for revid.Start() no exit bug 2019-01-31 15:03:50 +10:30
kortschak 197ca684a6 Merged in sliceoutputs (pull request #120)
cmd/revid-cli,revid: use a slice for output destination flags

Approved-by: Saxon Milton <saxon.milton@gmail.com>
2019-01-30 03:07:30 +00:00
Dan Kortschak 58102e5587 revid: fix http destination assignment 2019-01-30 13:19:00 +10:30
Dan Kortschak 071e6fd0f7 revid: honour difference between rtmp dst and others 2019-01-29 19:56:02 +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 Milton 286ae4334b Merged in psi-at-start (pull request #127)
stream/mts/encoder.go: writing psi at start of stream

Approved-by: Alan Noble <anoble@gmail.com>
2019-01-24 02:53:53 +00:00
saxon df146cfb17 stream/mts/encoder.go: writing psi at start of stream 2019-01-23 15:50:25 +10:30
saxon 2da8d2af85 av/rtmp/rtmp_test.go: using local rtmpSender io.writer implemntation to handle errors from rtmp 2019-01-22 13:54:56 +10:30
Saxon Milton bea48d8657 Merged in findPMT-improve (pull request #122)
mts/mpegts.go: FindPMT now also returns index

Approved-by: Alan Noble <anoble@gmail.com>
2019-01-22 01:01:18 +00:00