Audio/video stream recording forums (http://stream-recorder.com/forum/index.php)
-   rtmpdump (http://stream-recorder.com/forum/forumdisplay.php?f=54)
-   -  

Customized rtmpdump binaries with patch file

(http://stream-recorder.com/forum/showthread.php?t=16103)

KSV 04-07-2013 12:15 PM

Customized rtmpdump binaries with patch file


 
Anonymous recently shared some good patches with me so i thought of reviving the release thread again. apart from all my patches till date this release includes following new enhancements.

Anonymous's Contribution:

1. Better resume support:
rtmpdump can now resume from corrupted files by automatically searching the file for valid audio video frames.

2. Invalidate "Play2" command:
rtmpsuck now invalidates this transition command so flash player isn't able to adaptively switch the stream to another quality during capture.

3. Generate unique filenames:
if detected filename is longer than 128 characters it generates short unique name instead.

4. fixed a bug in AMF3 decoding

5. few other minor fixes

My Fixes:

1. add timestamp to detected filename (rtmpsrv and rtmpsuck) to avoid overwriting the streams

2. replace invalid characters in filename with underscore

3. fixed a crash in rtmpsuck when closed using 'q' command

4. fixed generation of invalid flv file in some rare cases

5. few other minor fixes

Update 17/04/2013:

1. fixed rtmpsrv command generation in some specific cases + other minor fixes

Update 22/04/2013:

1. enhanced keyframe search for much better resume functionality
2. fixed a bug in RTMP_FindPrefixProperty and RTMP_FindFirstMatchingProperty function

Update 25/04/2013:

1. added onFCSubscribe response to rtmpsrv to detect more streams
2. show complete debug info in rtmpsuck when connection is closed
3. fixed a small bug in redirect handling (allocating 1 byte less than required)

Update 07/05/2013:

1. fixed timestamp generation on some platforms

Update 15/05/2013:

1. added support for featve.com changes

Update 19/05/2013:

1. added support for wfctv.com

Update 11/06/2013:

1. updated support for webvideocore.net servers

Update 14/09/2013:

1. added support for yycast.com changes

Update 18/10/2013:

1. added support for yukons.net, axcast.com changes

Update 14/03/2014:

1. also check client signature to detect if server wanna use old rtmp handshake
(fixes handshake problems with some lousy servers)
2. added support for ddoss.me, streampiraten.ws changes
3. handle NetConnection.Connect.Rejected for onStatus response along with _error

Update 21/03/2014:

1. updated support for streampiraten.ws and clones
2. fixed a small bug

Update 11/09/2014:

1. updates for some site changes

Update 28/10/2014:

1. cleaned-up and merged --ccommand | -K switch patch (provided by @denobis)
2. rewrote the support for 3dbuzz.com authentication

Update 19/01/2015:

1. some minor fixes

Update 09/02/2015:

1. updated support for mips.tv and clones

Update 01/05/2015:

1. save and resume support for more than 4 GB files
2. add null encoding support in AMF object ( -C NZ:name: )
3. other minor fixes

Update 05/05/2015:

1. added basic support for AMF_REFERENCE type
2. added support for tvb.com streams

Update 11/12/2015:

1. fixed some AMF3 decoding issues (videostream.dn.ua)
2. fixed a crash in rtmpsuck
3. other minor fixes

Update 15/12/2015:

1. sync with rtmpdump upstream

==========
This release supersedes all previous releases.
Code:

https://github.com/K-S-V/Scripts/releases
==========

Compiling with Patch for other systems:

assuming you have all tools (gcc, binutils etc.) and dependencies (OpenSSL, Zlib) installed correctly for your distribution.

1. clone the repository
Code:

git clone git://git.ffmpeg.org/rtmpdump
2. copy patch from package to rtmpdump directory and apply it
Code:

patch -p0 -i Patch.diff
3. then just compile and install normally
Code:

make
sudo make install prefix=/usr

Mac users should add SYS=darwin while compiling. you can also add XLDFLAGS="-s -static" to statically link and strip the resulting binary.

chap 04-07-2013 12:24 PM

Re: Customized rtmpdump binaries with patch file


 
KSV
Thanks for your work and time:cool:

hasomaso 04-07-2013 12:58 PM

Re: Customized rtmpdump binaries with patch file


 
unsurpassable

Larry 04-07-2013 05:32 PM

Re: Customized rtmpdump binaries with patch file


 
SO Greatly appreciated!!!

Stream Ripper 04-07-2013 08:07 PM

Re: Customized rtmpdump binaries with patch file


 
GREAT stuff as always, KSV :-)

chanc 04-07-2013 11:12 PM

Re: Customized rtmpdump binaries with patch file


 
Thanks for the great work.

karlo2105 04-08-2013 08:03 AM

Re: Customized rtmpdump binaries with patch file


 
Thanks KSV for your time. ;)
But I already have a question. When I watch this stream in browser, it works fine but with rtmpdump it fails many times before good start.

Code:

rtmpdump -v -r "rtmp://cp99495.live.edgefcs.net:80
/live/Flash_live_KTO_TV@27823" -W "http://www.ktotv.com/templates/ktotv/swf/player.swf" | vlc -
RTMPDump v2.4 GIT-2012-12-30 (Compiled by KSV)
(c) 2010 Andrej Stepanchuk, Howard Chu, The Flvstreamer Team; license: GPL
WARNING: You haven't specified an output file (-o filename), using stdout
Connecting ...
INFO: Connected...
Starting Live Stream
INFO: Metadata:
INFO:  audiocodecid            2.00
INFO:  audiodatarate          0.00
INFO:  canseektoend            FALSE
INFO:  creationdate            Mon Apr 08 14:37:19 2013
INFO:  duration                0.00
INFO:  framerate              25.00
INFO:  height                  450.00
INFO:  lastkeyframetimestamp  0.00
INFO:  lasttimestamp          0.00
INFO:  metadatacreator        On2 Flix SDK for Dshow_2.7.4.0
INFO:  On2                    Technologies
INFO:  profile                VP6-E
INFO:  videocodecid            4.00
INFO:  videodatarate          0.00
INFO:  width                  800.00
125.581 kB / 0.02 sec
Download complete


KDN165 04-08-2013 08:22 AM

Re: Customized rtmpdump binaries with patch file


 
Thank you very much KSV

RedPenguin 04-08-2013 09:04 AM

Re: Customized rtmpdump binaries with patch file


 
Thanks again KSV for all of your work :)

KSV 04-08-2013 09:05 AM

Re: Customized rtmpdump binaries with patch file


 
Quote:

Originally Posted by karlo2105 (Post 61434)
Thanks KSV for your time. ;)
But I already have a question. When I watch this stream in browser, it works fine but with rtmpdump it fails many times before good start.

i have tried it few times and it works every time. maybe your localized server having issues. try with IP 124.**.**.***.


All times are GMT -6. The time now is 03:29 PM.