86 Commits

Author SHA1 Message Date
Richard Stanway
fb3fa52a65 Add graceful socket shutdown to RTMPPublisher and fix a few bugs 2013-07-25 05:32:04 -04:00
Richard Stanway
1dc66f2f9a Fix crash if shutdown attempted before connected 2013-07-22 21:06:43 -04:00
Richard Stanway
dcedbe9573 Further netcode improvements:
Handle socket errors properly
Ignore multiple stop requests (and subsequent auto reconnects)
Use event polling for ideal send backlog (TCP buffer size)
2013-07-22 21:02:11 -04:00
Richard Stanway
b46899d069 Major netcode refactoring (needs lots of testing!):
Shutdown is now orderly, triggered via ~RTMPPublisher
All pending frames / buffered data are properly sent before closing
Network loop processing improved to avoid late FD_READ events
Downside, 'Stop Stream' now takes a few seconds longer
2013-07-21 09:06:59 -04:00
Richard Stanway
1b7d01985e Actually resolve the hostname before logging interface info 2013-07-21 03:58:24 -04:00
Richard Stanway
fe2aa5e04c Fix improper String usage 2013-07-21 03:51:16 -04:00
Richard Stanway
b9af69fd3b Log network interface type 2013-07-21 03:49:09 -04:00
Richard Stanway
68eab3311b Improved librtmp error messages 2013-05-07 22:28:22 -04:00
jp9000
010503a0df increased the frame drop thresholds ever so slightly because people with poor connections seem to have drop issues with it 2013-05-06 14:24:40 -07:00
Richard Stanway
6ab9f303da Show kbps as a measure of network rate, not queuing rate 2013-04-30 22:35:56 -04:00
Richard Stanway
f18301002b Make auto-reconnect more robust, continue retrying even on network errors 2013-04-05 01:33:56 -04:00
Richard Stanway
9aceaadbcc Some small code cleanups via static analysis (cppcheck) 2013-04-04 03:20:02 -04:00
jp9000
c2a13e8321 Fixed a bug with RTMP publisher queued packets being inserted potentially out of order, and also fixed a bug with proper code not being called on the first keyframe 2013-04-02 22:58:32 -07:00
jp9000
abfef72d85 0.48.007 - removed circular list usage until I can verify it's 100% safe to use, removed a potential memory leak from directshow sources, other minor checks and tweaks 2013-03-31 05:47:11 -07:00
jp9000
7c9302b7eb added yet -another- tiny buffer to the rtmp code to ensure packets are properly ordered when sent out to prevent any weirdness on the server in terms of decoding or transcoding.
also, last commit I added some new audio code, ensures audio now is always totally seamless when sent out
2013-03-27 07:17:41 -07:00
jp9000
da4de110a7 fixed delay, added timed bframe-only dropping 2013-03-05 19:54:58 -07:00
jp9000
4d94812121 new network code 2013-03-05 19:54:58 -07:00
Richard Stanway
57106fe406 Zero error code on socket shutdown to prevent misleading log info 2013-02-17 21:41:04 -05:00
jp9000
99c8112e45 fixed more potential holes in the status bar update thing
fixed slight miscalculation of lost frames in the log file
fixed issue where frames would still preprocess and such even if disabled
2013-02-10 15:49:49 -07:00
Richard Stanway
0e83579b7b Fix crash when MP4FileStream causes ProcessEvents to fire mid-shutdown 2013-02-07 18:23:46 -05:00
Richard Stanway
1636ecf473 Never decrease the socket buffer on congestion 2013-02-06 19:23:59 -05:00
Richard Stanway
47ca0d63a9 Fix spurious newline log message 2013-02-04 15:30:35 -05:00
Richard Stanway
8f4cbaa708 Use SIO_IDEAL_SEND_BACKLOG_QUERY IOCTL on congestion 2013-02-04 04:40:35 -05:00
jp9000
e1fe865a1b something about copyTextures not being NUM_RENDER_BUFFERS 2013-02-01 04:16:39 -07:00
Richard Stanway
0ad353685f Alternative low latency mode and associated settings 2013-01-30 23:04:44 -05:00
Richard Stanway
a673d6e712 Fix deadlock when aborting stream with a full R1CHbuffer™ 2013-01-27 01:38:08 -05:00
jp9000
e2ea43ca93 merging develepment branch. don't kill me! 2013-01-24 20:30:22 -07:00
Richard Stanway
6176a1d2fb Add low latency mode to reduce network strain
Remove remnant send buffer code
2013-01-20 01:51:36 -05:00
Richard Stanway
2db898684f Log librtmp errors to the log file and show connection errors 2013-01-16 15:12:31 -05:00
Richard Stanway
95c1c2aa78 Fix RTMP server logging, disable remnnant send buffer code 2013-01-07 02:54:01 -05:00
Richard Stanway
cc2c3c501d Someone forgot to set their whitespace settings! 2012-12-23 11:54:47 -05:00
Richard Stanway
49c2bbc1f1 Fix some uninitialized memory crashes during RTMP setup 2012-12-23 11:52:14 -05:00
Richard Stanway
05c7ad925f Improved network event handling, recv() discard 2012-12-18 17:23:25 -05:00
Richard Stanway
6ee24fe349 Log which RTMP service / server are used 2012-12-16 23:48:12 -05:00
jp9000
307903f372 fixed a crash with audio levels, added the ability to crop win8 capture 2012-12-16 13:32:04 -07:00
jp9000
74851f4d1d final little bugfixes before 0.455 2012-12-13 12:01:41 -07:00
Richard Stanway
215df6573b Fix some network shutdown race conditions 2012-12-12 01:39:18 -05:00
Richard Stanway
be525a0623 Cleanup logging code, improve error handling in buffered sender 2012-12-10 08:21:38 -05:00
Richard Stanway
769181e17a Fix RTMP shutdown with the new buffering system 2012-12-10 07:59:41 -05:00
Richard Stanway
a5f3a5113b Dynamic buffer size
Move RTMP close prior to network code shutdown
2012-12-08 07:15:42 -05:00
Richard Stanway
cbf58f984f Local buffering test 2012-12-08 05:28:29 -05:00
Richard Stanway
b06488b20c Bind to network interface option 2012-12-06 22:18:03 -05:00
jp9000
6ebf3633d9 tons of bug fixes, added send buffer again, fixed japanese localization, added outline 2012-12-05 19:43:44 -07:00
Muf
6b0966a7ea Fix % that was on the wrong side, make GetPacketStrain gradual again 2012-12-06 01:46:43 +01:00
jp9000
286704a176 another CTS/DTS fix, fixed network issues, removed send buffer, fixed some graphics capture crashes, fixed win 8 sleep problems 2012-12-04 03:17:34 -07:00
jim
10df6ddbc2 accidently network thread priority code 2012-12-01 05:52:08 -07:00
jim
ff1517e99d adjusted settings dialog size, fixed cts problem, added cbr option, made some other tweaks 2012-11-30 14:16:16 -07:00
jim
8d039f66c8 testing a new revision of frame drop code 2012-11-28 19:22:19 -07:00
jim
b6c6a5ab79 tweaked framedrop code again 2012-11-28 13:29:52 -07:00
jim
32f3493276 testing time-based frame drop code 2012-11-27 13:41:46 -07:00