Audio/video stream recording forums
|
Attention Visitor: |
You may have to register or log in before you can post:
|
|
|
Thread Tools | Display Modes |
|
#1
|
|||
|
|||
Customized rtmpdump binaries with patch fileAnonymous 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 Code:
patch -p0 -i Patch.diff Code:
make sudo make install prefix=/usr Last edited by KSV : 12-15-2015 at 10:13 AM. Reason: updated binaries |
#2
|
|||
|
|||
Re: Customized rtmpdump binaries with patch fileKSV
Thanks for your work and time |
#3
|
|||
|
|||
Re: Customized rtmpdump binaries with patch fileunsurpassable
|
#4
|
|||
|
|||
Re: Customized rtmpdump binaries with patch fileSO Greatly appreciated!!!
|
#5
|
|||
|
|||
Re: Customized rtmpdump binaries with patch fileGREAT stuff as always, KSV :-)
|
#6
|
|||
|
|||
Re: Customized rtmpdump binaries with patch fileThanks for the great work.
|
#7
|
|||
|
|||
RTMPDUMP returns wrong AMF calculationvery weird problem: I'm using unofficial KSV version. on one of my boxes it doesnt work properly: I investigated and found that the server asks for an answer which on other boxes is calculated well, but on this box no... checked python, and there it calculates well
so, on this thing: enc = AMF_EncodeNumber(enc, pend, exp(atan(sqrt(VerificationNumber))) + 1) the "bad" box returns ((VerificationNumber) + 1) any idea? I'm totally cluless btw, it's a linux box |
#8
|
|||
|
|||
Re: RTMPDUMP returns wrong AMF calculationQuote:
|
#9
|
|||
|
|||
Re: Customized rtmpdump binaries with patch fileQuote:
After some testing. Unfortunately,latest release still overwrites live stream Every time it's saved with the same filename. I use RTMPDumpHelper+RTMPSuck Code:
WARNING: Trying different position for client digest! Processing connect app : live?ovpfv=2.1.4 flashVer : WIN 11,6,602,180 swfUrl : http://www.c-span.org/cspanVideoHD.swf?src=cspan1 tcUrl : rtmp://cp82346.live.edgefcs.net:1935/live?ovpfv=2.1.4 pageUrl : http://www.c-span.org/Live-Video/C-SPAN/ live : yes Playpath : CSPAN1@14845 Saving as : CSPAN1@14845.flv INFO: Metadata: INFO: presetname Custom INFO: creationdate Sun Mar 10 09:55:08 2013 INFO: videodevice Osprey-230 Video Device 1 INFO: framerate 30.00 INFO: width 320.00 INFO: height 240.00 INFO: videocodecid VP62 INFO: videodatarate 300.00 INFO: videokeyframe_frequency 5.00 INFO: audiodevice Osprey-230 Audio Device 1 INFO: audiosamplerate 22050.00 INFO: audiochannels 2.00 INFO: audioinputvolume 75.00 INFO: audiocodecid .mp3 INFO: audiodatarate 40.00 WARNING: ignoring too small audio packet: size: 0 ERROR: Request timeout/select failed, ignoring request Closing connection... done! WARNING: ignoring too small audio packet: size: 0 ERROR: RTMP_ReadPacket, failed to read RTMP packet header Closing connection... done! WARNING: Trying different position for client digest! Processing connect app : live?ovpfv=2.1.4 flashVer : WIN 11,6,602,180 swfUrl : http://www.c-span.org/cspanVideoHD.swf?src=cspan1 tcUrl : rtmp://cp82346.live.edgefcs.net:1935/live?ovpfv=2.1.4 pageUrl : http://www.c-span.org/Live-Video/C-SPAN/ live : yes Playpath : CSPAN1@14845 Saving as : CSPAN1@14845.flv INFO: Metadata: INFO: presetname Custom INFO: creationdate Sun Mar 10 09:55:08 2013 INFO: videodevice Osprey-230 Video Device 1 INFO: framerate 30.00 INFO: width 320.00 INFO: height 240.00 INFO: videocodecid VP62 INFO: videodatarate 300.00 INFO: videokeyframe_frequency 5.00 INFO: audiodevice Osprey-230 Audio Device 1 INFO: audiosamplerate 22050.00 INFO: audiochannels 2.00 INFO: audioinputvolume 75.00 INFO: audiocodecid .mp3 INFO: audiodatarate 40.00 WARNING: ignoring too small audio packet: size: 0 WARNING: ignoring too small audio packet: size: 0 WARNING: Trying different position for client digest! Processing connect app : samaalive flashVer : WIN 11,6,602,180 swfUrl : http://beta.cdn.livestation.com/play...ion-player.swf tcUrl : rtmp://38.96.148.99:1935/samaalive pageUrl : http://www.livestation.com/ live : yes Playpath : samaalive Saving as : samaalive.flv INFO: Metadata: INFO: width 480.00 INFO: height 270.00 INFO: framerate 25.00 INFO: videodatarate 200.00 INFO: videocodecid avc1 INFO: audiodatarate 40.00 INFO: audiocodecid mp4a WARNING: ignoring too small audio packet: size: 0 live : yes Playpath : samaalive Saving as : samaalive.flv INFO: Metadata: INFO: width 480.00 INFO: height 270.00 INFO: framerate 25.00 INFO: videodatarate 200.00 INFO: videocodecid avc1 INFO: audiodatarate 40.00 INFO: audiocodecid mp4a WARNING: ignoring too small audio packet: size: 0 ERROR: Request timeout/select failed, ignoring request Closing connection... done! Last edited by alexanderd : 04-22-2013 at 06:03 AM. Reason: added after some testing |
#10
|
|||
|
|||
Re: Customized rtmpdump binaries with patch filei have fixed another rtmpdump bug in which flv header was set with wrong data type (audio/video marker) which is yet another regression due to those array types. though file may play normally in most players rtmpdump was looking for the wrong type of keyframes while resuming.
another enhancement included is that upon resuming it was looking for keyframes with timestamp 0 only but now it searches other non zero timestamps too (timestamps are adjusted accordingly for this resume drift). so it's able to resume in those cases also where our required keyframe has nonzero timestamp. Test case for both bugs: Code:
rtmpdump -r "rtmpt://h2a.rtp.pt/vodrtp" -y "nas2.share/videos/auto/planetamusica/planetamusica_1_20120317" -o planetamusica_1_201203171.flv your problem seems more like server configuration issue because the same response is accepted by other servers without any problem. anyway i have disabled it in my patches for compatibility reasons. @alexanderd it seems like you are using old binaries not the updated ones posted in first post. |
Tags: binaries, binary, patch, patches, rtmpdump, rtmpsrv, rtmpsuck |
Thread Tools | |
Display Modes | |
|
|