PDA

View Full Version : Stream recording by rtmpdump on Ubuntu


opus18
10-25-2014, 11:46 PM
Hi All,

I have been struggling find the solution of this problem.:confused: I would really appreciate if any could give any tip on it.

I am trying to record(or say download) live streaming audio whose streaming information is hidden.

1. The streaming site is
"http://mini.imbc.com/v2/index.html?s=rd_PC#./datas/pagedata_home.js"

2. URL Snooper could get some information
URL: "rtmp://101.79.241.158:1935/pmfm/_definst_?id=2101&si=8&secure=MDRkMDc1OGYyMjc5MDJjYTB"
Flash: "http://mini.imbc.com/v2/lib/player/FlashPlayer.swf"

3. So I did
rtmpdump -r "rtmp://101.79.241.158:1935/pmfm/_definst_?id=2101&si=8&secure=MDRkMDc1OGYyMjc5MDJjYTB" -W "http://mini.imbc.com/v2/lib/player/FlashPlayer.swf"

4. Then, I got
INFO: Connected...
Caught signal: 13, cleaning up, just a second...
ERROR: WriteN, RTMP send error 32 (42 bytes)
ERROR: RTMP_ReadPacket, failed to read RTMP packet header


Raw packet contents (I replaced non-printable characters to '.')
"app...pmfm/_definst_?id=2101&si=8&secure=MDRkMDc1OGYyMjc5MDJjYTBmZGFjYzRmNWVhMGYxMzg 3MjdiYzZjODQ0NTI0YmEyM.WZhMWQzMzVkMGU0MzcxY2QyNTdj NDgwMDljYmMyOTZhY2Q5NGNlMjg0OGI1OTlhNDI5NWI2NDNhN2 U2MzI1ZGMwZjYxN2IwNmI3YWUwNzg2MmEzNzc1ZTViZGQ5YjNh M.DdlZDA3NzI2YjI3YWFiMDBlMWIwODFkNDU5NjM4NGJkZTAxZ GY5NDQ3MDhlMTBjMDAxNjYyYTE3MGMxYjYxZGZlYWRiZDY4MGZ kNWRhOWU2NjExNmUwY2RmOThkMGY2N.TUxNTc4M2E5YjA0YWZi OWY2Mzk3MDRhZWMzOTdkOWJkZTUxNDZmYzlkN2I2YjMx&csu=false..flashVer...WIN.15,0,0,189..swfUrl..2htt p://mini.imbc..com/v2/lib/player/FlashPlayer.swf..tcUrl...rtmp://101.79.241.158:1935/pmfm/_definst_?id=2101&si=8&secure=MDRkMDc1OGYyMjc5MDJjYTB.mZGFjYzRmNWVhMGYxMz g3MjdiYzZjODQ0NTI0YmEyMWZhMWQzMzVkMGU0MzcxY2QyNTdj NDgwMDljYmMyOTZhY2Q5NGNlMjg0OGI1OTlhNDI5NWI2NDNhN2 U2MzI1ZGM.wZjYxN2IwNmI3YWUwNzg2MmEzNzc1ZTViZGQ5YjN hMDdlZDA3NzI2YjI3YWFiMDBlMWIwODFkNDU5NjM4NGJkZTAxZ GY5NDQ3MDhlMTBjMDAxNjYyYTE3MGMxYjYxZGZ.lYWRiZDY4MG ZkNWRhOWU2NjExNmUwY2RmOThkMGY2NTUxNTc4M2E5YjA0YWZi OWY2Mzk3MDRhZWMzOTdkOWJkZTUxNDZmYzlkN2I2YjMx&csu=false..fpad....cap.abilities..m........audioCo decs...........videoCodecs..o.......videoFunction. ?.........pageUrl..Chttp://mini.imbc.com/v2/index..html?s=rd_PC#./datas/pagedata_home.js..objectEncoding..........."

blimey
10-26-2014, 12:57 AM
The entire url must be used, including all of the suffix code. The urls are issued on demand, and appear to be for one-time or temporary use.

rtmp url is called from, for example;

http://miniplay.imbc.com/WebLiveURL.ashx?channel=sfm&protocol=RTMP&nocash=0.04251753957942128&callback=jarvis.miniInfo.loadOnAirComplete

m3u8 url is called from, for example;

http://miniplay.imbc.com/WebLiveURL.ashx?channel=sfm&protocol=M3U8&agent=android&androidversion=16&nocash=0.04251753957942128&callback=jarvis.miniInfo.loadOnAirComplete

opus18
10-26-2014, 12:04 PM
Awesome~Thanks a lot.

By the way how could you figure out the address "http://miniplay.imbc.com/WebLiveURL.ashx?......"

hasomaso
10-29-2014, 05:23 AM
http://shoutmini.imbc.com:8003/listen.pls

mms://relay1.imbc.com/MFM