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
  #21  
Old 04-10-2013, 08:47 AM
lorus lorus is offline
Junior Member
 
Join Date: Apr 2013
Posts: 7
lorus is on a distinguished road
Default

Re: Customized rtmpdump binaries with patch file


Quote:
Originally Posted by KSV View Post
Try adding -v (--live) switch.
OMG, stupid me ... big thx
Reply With Quote
  #22  
Old 04-10-2013, 07:18 PM
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


I have compiled this release into librtmp's for various systems (iOS (Apple TV, iPhone, iPod Touch), RasPi, Linux 32&64) for anyone wanting this release in their XBMC.

I can easily put exectuables up also if anyone needs but I don't know of any practical reasons off the top of my head for devices like RasPi and iOS.

http://www.mediafire.com/?x4cvp5hl4m9xr

Last edited by RedPenguin : 04-11-2013 at 04:41 PM.
Reply With Quote
  #23  
Old 04-13-2013, 03:03 PM
KDN165 KDN165 is offline
Junior Member
 
Join Date: Feb 2013
Posts: 21
KDN165 is on a distinguished road
Default

Re: Customized rtmpdump binaries with patch file


Thank you Redpenguin.

I have a problem with your xbmc apk for android.

(Sorry for my english because I´m Spanish). I installed your xbmc apk and when I click to run it crash.

Say: La aplicación XBMC (proceso org.xbmc.xbmc) se ha interrumpido inesperadamente. Inténtelo de nuevo
Reply With Quote
  #24  
Old 04-15-2013, 01:43 PM
bentzi bentzi is offline
Junior Member
 
Join Date: Mar 2013
Posts: 8
bentzi is on a distinguished road
Question

RTMPDUMP returns wrong AMF calculation


very 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
Reply With Quote
  #25  
Old 04-15-2013, 06:44 PM
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


Quote:
Originally Posted by KDN165 View Post
Thank you Redpenguin.

I have a problem with your xbmc apk for android.

(Sorry for my english because I´m Spanish). I installed your xbmc apk and when I click to run it crash.

Say: La aplicación XBMC (proceso org.xbmc.xbmc) se ha interrumpido inesperadamente. Inténtelo de nuevo
At first I had a mix up with signing the modified APK but I fixed it and most folks report it's working great.

http://forum.xbmc.org/showthread.php?tid=162307 is the support thread I maintain for my librtmp files and the APK if you wanna check it out.
Reply With Quote
  #26  
Old 04-16-2013, 12:38 AM
KSV KSV is offline
Senior Member
 
Join Date: Apr 2011
Posts: 853
KSV is on a distinguished road
Cool

Re: RTMPDUMP returns wrong AMF calculation


Quote:
Originally Posted by bentzi View Post
very 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
Post the full debug log (-V) on pastebin. if it works on everything else then it can't be code's problem.
Reply With Quote
  #27  
Old 04-16-2013, 12:50 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


Also KSV or somebody else not sure if you have a cable TV subscription or not to test:

http://www.cnn.com/video and test their "Live TV" section.

But I have noticed that the rtmpdump code must have changed sometime after 2011-07-11 because like I said before if I use KSV or normal versions since then it constantly results in "Invalid AMF Data" with rtmpsrv from RTMPDumpHelper.

From what I can tell, they (edgecfs) are simply changing the connection data on every play request and using weird characters like the Spanish upside down exclamation point.

Not sure why but the older rtmpdumps can simply flow with these odd connection data but the newer cannot and just error out, so I was wondering if this could be fixed via a patch.

Here is a sample of what I mean:

rtmpdump -r "rtmpe://cp99921.live.edgefcs.net:1935/live" -a "live?auth=daEdabcbS
bfdrdlcNa.dudNbld5cebQaKan-brBoEc-hca-lxy_GFs&aifp=v001&slist=tvehln104_1_low@s8
9305" -f "WIN 11,7,700,169" -W "http://z.cdn.turner.com/xslo/cvp/plugins/akamai/
streaming/osmf1.6/2.11.3/AkamaiAdvancedStreamingPlugin.swf" -p "http://www.cnn.c
om/video/#/video/cvptve/cvpstream2" --live -C Θ: -y "tvehln104_1_low@s89305?auth
=daEdabcbSbfdrdlcNa.dudNbld5cebQaKan-brBoEc-hca-lxy_GFs&aifp=v001&slist=tvehln10
4_1_low@s89305" -o "tvehln104_1_low@s89305.flv"

ERROR: Invalid AMF parameter: Θ:

It's as if the command would easily work with zero issues if it was not for the strange ASCII characters.

Though not sure if this would be something the actual RTMPDump would need to code.

Last edited by RedPenguin : 04-16-2013 at 01:48 AM.
Reply With Quote
  #28  
Old 04-16-2013, 06:02 AM
bentzi bentzi is offline
Junior Member
 
Join Date: Mar 2013
Posts: 8
bentzi is on a distinguished road
Default

Re: Customized rtmpdump binaries with patch file


here is the log:

the "bad" box-
Quote:
DEBUG: RTMP_ClientPacket, received: invoke 34 bytes
DEBUG: (object begin)
DEBUG: Property: <Name: no-name, STRING: verifyClient>
DEBUG: Property: <Name: no-name, NUMBER: 120781448.00>
DEBUG: Property: NULL
DEBUG: Property: <Name: no-name, NUMBER: 96.73>
DEBUG: (object end)
DEBUG: HandleInvoke, server invoking <verifyClient>
DEBUG: VerificationNumber: 96.73
DEBUG: (object begin)
DEBUG: Property: <Name: no-name, STRING: _result>
DEBUG: Property: <Name: no-name, NUMBER: 120781448.00>
DEBUG: Property: NULL
DEBUG: Property: <Name: no-name, NUMBER: 97.73>
DEBUG: (object end)
the number given back in response is 97.73 (should be 5.35)
here is the "good" box-
Quote:
DEBUG: RTMP_ClientPacket, received: invoke 34 bytes
DEBUG: (object begin)
DEBUG: Property: <Name: no-name, STRING: verifyClient>
DEBUG: Property: <Name: no-name, NUMBER: 120781448.00>
DEBUG: Property: NULL
DEBUG: Property: <Name: no-name, NUMBER: 86.61>
DEBUG: (object end)
DEBUG: HandleInvoke, server invoking <verifyClient>
DEBUG: VerificationNumber: 86.61
DEBUG: (object begin)
DEBUG: Property: <Name: no-name, STRING: _result>
DEBUG: Property: <Name: no-name, NUMBER: 120781448.00>
DEBUG: Property: NULL
DEBUG: Property: <Name: no-name, NUMBER: 5.32>
DEBUG: (object end)
DEBUG2: RTMP_SendPacket: fd=4, size=29
it's a mediadirect.ro server, so the number is a random number given by server to get the response
rest of the log is the same for both boxes (until hang up)
Reply With Quote
  #29  
Old 04-16-2013, 10:04 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


@bentzi

your problem seems like a bug in math library (libm.so). try upgrading glibc to newer version. it's also possible that your compiler optimization is breaking it. try compiling static binary with no optimizations.
Code:
LDFLAGS="-static" OPT="-g -O0"
@RedPenguin

does this happens also with rtmpsuck? also post the verbose log of successful and failed attempt.

Code:
-z 2> Debug.txt
Reply With Quote
  #30  
Old 04-16-2013, 12:59 PM
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


Quote:
Originally Posted by KSV View Post

@RedPenguin

does this happens also with rtmpsuck? also post the verbose log of successful and failed attempt.

Code:
-z 2> Debug.txt
For some reason rtmpsuck has never worked with these streams (rtmpsuck claims it fails and video continues in browser) this is what it always does with 2011-07-11 and identical error with your latest compile.

http://pastebin.com/VkbqL0vQ
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:51 AM.


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