Audio/video stream recording forums

Attention Visitor:
You may have to register or log in before you can post:
  • Click the register link to sign up.
  • Registered members please fill in the form below and click the "Log in" button.
To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Audio/video stream recording forums > Streaming media recording forum > rtmpdump
Register FAQ Members List Calendar Mark Forums Read

Reply Post New Thread
 
Thread Tools Display Modes
  #1  
Old 04-07-2013, 01:15 PM
KSV KSV is offline
Senior Member
 
Join Date: Apr 2011
Posts: 853
KSV is on a distinguished road
Cool

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.

Last edited by KSV : 12-15-2015 at 10:13 AM. Reason: updated binaries
Reply With Quote
  #2  
Old 04-07-2013, 01:24 PM
chap chap is offline
Senior Member
 
Join Date: Feb 2011
Location: Ukraine
Posts: 1,165
chap is on a distinguished road
Default

Re: Customized rtmpdump binaries with patch file


KSV
Thanks for your work and time
Reply With Quote
  #3  
Old 04-07-2013, 01:58 PM
hasomaso hasomaso is offline
Senior Member
 
Join Date: Apr 2011
Posts: 943
hasomaso is on a distinguished road
Default

Re: Customized rtmpdump binaries with patch file


unsurpassable
Reply With Quote
  #4  
Old 04-07-2013, 06:32 PM
Larry Larry is offline
Junior Member
 
Join Date: Feb 2013
Posts: 9
Larry is on a distinguished road
Default

Re: Customized rtmpdump binaries with patch file


SO Greatly appreciated!!!
Reply With Quote
  #5  
Old 04-07-2013, 09:07 PM
Stream Ripper Stream Ripper is offline
Super Moderator
 
Join Date: Feb 2007
Location: World
Posts: 886
Stream Ripper has a reputation beyond reputeStream Ripper has a reputation beyond reputeStream Ripper has a reputation beyond reputeStream Ripper has a reputation beyond reputeStream Ripper has a reputation beyond reputeStream Ripper has a reputation beyond reputeStream Ripper has a reputation beyond reputeStream Ripper has a reputation beyond reputeStream Ripper has a reputation beyond reputeStream Ripper has a reputation beyond reputeStream Ripper has a reputation beyond repute
Default

Re: Customized rtmpdump binaries with patch file


GREAT stuff as always, KSV :-)
Reply With Quote
  #6  
Old 04-08-2013, 12:12 AM
chanc chanc is offline
Senior Member
 
Join Date: Sep 2012
Posts: 115
chanc is on a distinguished road
Default

Re: Customized rtmpdump binaries with patch file


Thanks for the great work.
Reply With Quote
  #7  
Old 04-08-2013, 09:03 AM
karlo2105 karlo2105 is offline
Senior Member
 
Join Date: Sep 2011
Posts: 318
karlo2105 is on a distinguished road
Default

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

Last edited by placebo : 05-05-2013 at 03:20 AM.
Reply With Quote
  #8  
Old 04-08-2013, 09:22 AM
KDN165 KDN165 is offline
Junior Member
 
Join Date: Feb 2013
Posts: 21
KDN165 is on a distinguished road
Thumbs up

Re: Customized rtmpdump binaries with patch file


Thank you very much KSV
Reply With Quote
  #9  
Old 04-08-2013, 10:04 AM
RedPenguin RedPenguin is offline
Member
 
Join Date: Feb 2012
Posts: 85
RedPenguin is on a distinguished road
Default

Re: Customized rtmpdump binaries with patch file


Thanks again KSV for all of your work
Reply With Quote
  #10  
Old 04-08-2013, 10:05 AM
KSV KSV is offline
Senior Member
 
Join Date: Apr 2011
Posts: 853
KSV is on a distinguished road
Cool

Re: Customized rtmpdump binaries with patch file


Quote:
Originally Posted by karlo2105 View Post
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.**.**.***.

Last edited by placebo : 05-05-2013 at 03:20 AM.
Reply With Quote
Reply Post New Thread
Tags: , , , , , ,



Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -6. The time now is 04:10 AM.


Powered by All-streaming-media.com; 2006-2011
vB forum hacked with Zoints add-ons