Commit Graph

1890 Commits

Author SHA1 Message Date
scruzin 89d9bf3eef Return errors from the loop in connect() rather than breaking. 2019-01-20 10:28:05 +10:30
scruzin efe40a6778 Move test for empty RTMP 'app' into parseURL(). 2019-01-20 09:59:28 +10:30
scruzin a362d1d2ab connect() now closes c.link.conn upon an error. 2019-01-20 09:50:51 +10:30
scruzin 04ad1fec25 Log packet size before la and ra. 2019-01-20 09:20:56 +10:30
scruzin fbad21bc76 connect() now constructs its packet with a buf to avoid needless packet resizing later. 2019-01-20 08:52:58 +10:30
scruzin 969e2f4fa9 packet.resize() now only makes a new buf when necessary. 2019-01-20 08:41:32 +10:30
scruzin ddd1e4ab17 readFrom() now logs a warning if it is reading a large packet (which I suspect never happens). 2019-01-20 08:09:49 +10:30
scruzin 828cc3780a Removed superfluous packet.bytesRead. 2019-01-20 07:56:55 +10:30
scruzin 42be87d98a sendConnectPacket() now encodes required link info in one go using amf.Encode(). 2019-01-20 07:33:43 +10:30
scruzin adfb87dcf9 TypeString now exported (was typeString). 2019-01-20 07:30:24 +10:30
Dan Kortschak 92ba9c89a2 cmd/revid-cli,revid: use a slice for output destination flags 2019-01-19 20:01:42 +10:30
Alan Noble 54d351a55e Merged in rtmp-refactoring-3 (pull request #119)
Rtmp refactoring 3
2019-01-19 07:56:35 +00:00
scruzin 6959243d50 packet.info renamed streamID and made a uint32 along with Conn.streamID. 2019-01-19 17:51:34 +10:30
scruzin de07f1ae40 dStreamId renamed streamID. 2019-01-19 17:20:34 +10:30
scruzin 45f5817307 headBytes renamed buf. 2019-01-19 16:41:22 +10:30
scruzin 8b8afd08b0 Merge branch 'rtmp-refactoring-3' of https://bitbucket.org/ausocean/av into rtmp-refactoring-3 2019-01-19 16:39:41 +10:30
scruzin b77283aa3b packet.header renamed buf. 2019-01-19 16:38:40 +10:30
Alan Noble 9bb6b3ae6d rtmp/session.go deleted (replaced by conn.go) 2019-01-19 04:52:32 +00:00
scruzin 5548345439 Fix comments munged by /.s/.c search and replaces. 2019-01-19 15:18:10 +10:30
scruzin 9cc0e5631c Session now Conn, and NewSession()+Open() replaced by Dial(). 2019-01-19 13:25:05 +10:30
scruzin fc7ae413d3 Session renamed Conn. 2019-01-19 13:18:15 +10:30
scruzin ce95901b66 Session renamed Conn and NewSession() and Open() replaced with Dial(). 2019-01-19 13:16:46 +10:30
scruzin 998d41c96f Session now Conn, init() moved into Dial(), and connectStream() merged into connect(). 2019-01-19 13:12:24 +10:30
scruzin a73c73617a Session now Conn. 2019-01-19 13:11:19 +10:30
scruzin fd903b4add rtmp.Session now rtmp.Conn and rtmp.NewSession() and Open() replaced with Dial(). 2019-01-19 13:10:38 +10:30
scruzin 974d9a484b Fixed packetTypeBytesReadReport case in handlePacket and added debug logging. 2019-01-19 11:30:59 +10:30
saxon 98d89a4e4e mts: got rid of LocationStrBytes func 2019-01-18 13:21:35 +10:30
Dan Kortschak 35d63f664f revid: add v4l properties and fix default device handling
Also fix logging typos found during work.
2019-01-17 17:04:59 +10:30
Dan Kortschak 7d989a17f2 rtmp: fix build 2019-01-17 16:20:51 +10:30
Saxon Milton ddb8fc1e1c Merged in rtp-ringbuff-bypass (pull request #88)
Rtp ringbuff bypass

Approved-by: Alan Noble <anoble@gmail.com>
Approved-by: kortschak <dan@kortschak.io>
2019-01-16 23:22:18 +00:00
Saxon Milton a58a784a16 Merged in clean-up-revid-consts (pull request #111)
revid: clean up some revid constants

Approved-by: kortschak <dan@kortschak.io>
2019-01-16 07:37:07 +00:00
saxon 95349f461d revid/revid.go: removed unused logging consts 2019-01-16 17:52:49 +10:30
saxon d3c8f31c08 revid/revid.go: actually fixed conflict 2019-01-16 17:49:22 +10:30
saxon 606c1a5885 revid/revid.go: fixed conflict 2019-01-16 17:47:57 +10:30
saxon 59024fea79 revid/revid.go: further split up miscy consts 2019-01-16 17:46:17 +10:30
Saxon Milton ef6811d3b8 Merged in webcam (pull request #86)
revid: addition of webcam input

Approved-by: kortschak <dan@kortschak.io>
2019-01-16 07:12:30 +00:00
saxon 582f12d157 revid/revid.go: in execution of ffmpeg, the device path is replaced by r.config.InputFileName 2019-01-16 17:29:56 +10:30
saxon e184b091d3 revid/revid.go: rtmp connection properties comment changed to RTMP 2019-01-16 16:42:37 +10:30
Saxon Milton a76be1fd5b Merged in single-frame-h264 (pull request #108)
av: allow for single h264 frame streaming

Approved-by: kortschak <dan@kortschak.io>
2019-01-16 05:28:20 +00:00
Alan Noble b9d99cc78a Merged in rtmp-refactoring-2 (pull request #107)
Second pass at RTMP refactoring.

Approved-by: Saxon Milton <saxon.milton@gmail.com>
Approved-by: kortschak <dan@kortschak.io>
Approved-by: Alan Noble <anoble@gmail.com>
2019-01-15 04:31:26 +00:00
scruzin 9e6d875089 Remove ! after Dan. 2019-01-15 14:59:30 +10:30
scruzin a1d328b376 Remove unnecessary underscores from for loops with ranges. 2019-01-15 10:04:36 +10:30
scruzin 65d0952dd3 Improved Property doc comment. 2019-01-15 09:57:59 +10:30
saxon 59cc2d409a Revert "revid: removed redundant error logging"
This reverts commit eacbfb9ee3.
2019-01-14 16:37:18 +10:30
saxon eacbfb9ee3 revid: removed redundant error logging 2019-01-14 16:31:43 +10:30
Saxon Milton ae34ebe368 Merged in revid-start-stop-errors (pull request #114)
Return errors from revid.Start and revid.Stop

Approved-by: kortschak <dan@kortschak.io>
2019-01-14 04:27:34 +00:00
scruzin 3ab2c1f69a Reverted Session.clientBW2 to uint8. 2019-01-14 10:31:42 +10:30
Saxon Milton 137943af82 Merged in revid-config-safer (pull request #112)
Made revid's Config() func safer

Approved-by: kortschak <dan@kortschak.io>
2019-01-13 23:57:27 +00:00
scruzin e778488aba Session.inChunkSize, outChunkSize, nBytesIn, nBytesInSent, serverBW, clientBW and clientBW2 now all uint32 to avoid needless conversions. 2019-01-14 10:17:47 +10:30
scruzin b680e3e164 EncodeInt24 and EncodeInt32 now take unsigned integers for consistency with decoder counterparts. 2019-01-14 10:14:25 +10:30