PDA

View Full Version : rtmpdump url parsing error?


plokijuh
09-05-2012, 10:33 PM
Hey all, pretty new to all this but I'm having issues getting rtmpdump working with the NPR flash streaming audio (specifically trying to get the first look for the xx's new album coexist).

So uh, I use the IP rerouting command:

iptables -t nat -A OUTPUT -p tcp --dport 1935 -m owner \! --uid-owner root -j REDIRECT

Run rtmpsuck and get this:

pageUrl: http://www.npr.org
Processing connect
app: ondemand?_fcs_vhost=cp42356.edgefcs.net&akmfv=1.7
flashVer: LNX 11,2,202,238
swfUrl: http://www.npr.org/player/v2/audioPlayer.swf
ERROR: RTMP_ReadPacket, failed to read RTMP packet header
tcUrl: rtmp://165.254.148.45:1935/ondemand?_fcs_vhost=cp42356.edgefcs.net&akmfv=1.7

I then overwrite the IP redirect with:

iptables -t nat -D OUTPUT -p tcp --dport 1935 -m owner \! --uid-owner root -j REDIRECT

And try to feed the tcURL into rtmpdump and it with this:

rtmpdump -r "rtmp://165.254.148.45:1935/ondemand?_fcs_vhost=cp42356.edgefcs.net&akmfv=1.7"

And it gives me this:

ERROR: You must specify a playpath (--playpath) or url (-r "rtmp://host[:port]/playpath") containing a playpath

So, uh, what do I do? This is the url correct? Thanks for any and all help!

chap
09-05-2012, 11:36 PM
http://pd.npr.org/anon.npr-mp3/npr/fl/2012/08/20120830_fl_xxfull.mp3?orgId=1&topicId=1039&aggIds=98679384
http://pd.npr.org/npr-mp4/npr/fl/2012/08/20120830_fl_xxfull.mp4?orgId=1&topicId=1039&aggIds=98679384

plokijuh
09-06-2012, 12:27 AM
Thanks man, could I ask how you found the correct URLs?

I can find the play('mp3:anon.npr-mp3/npr/fl/2012/08/20120830_fl_xx10?orgId=1&topicId=1039&aggIds=98679384&v1st=null&mt=1') through wireshark, which is sort of similar, but how did you know the correct directory was pd.npr.org? And how to strip various url arguments?

svnpenn
09-22-2012, 08:29 PM
If you truly want definitive answers quickly and without
delay, please include link(s) to the web-page(s) with video(s)

stream-recorder.com/forum/announcement.php?f=4 (stream-recorder.com/forum/announcement.php?f=4)

chap
09-22-2012, 11:12 PM
I can find the play('mp3:anon.npr-mp3/npr/fl/2012/08/20120830_fl_xx10?orgId=1&topicId=1039&aggIds=98679384&v1st=null&mt=1') through wireshark, which is sort of similar, but how did you know the correct directory was pd.npr.org? And how to strip various url arguments?
http://pd.npr.org/anon.npr-mp3/npr/fl/2012/08/20120830_fl_xx10.mp3?orgId=1&topicId=1039&aggIds=98679384&v1st=null&mt=1