Audio/video stream recording forums
|
Attention Visitor: |
You may have to register or log in before you can post:
|
|
|
Thread Tools | Display Modes |
#1
|
|||
|
|||
Specify the tcURL or rtmpdump might not workFound a nasty bug in rtmpdump. The buffer that is used internally to construct the tcUrl, if it isn't explicitily passed, is too small. Here's an example from the BBC. First what I passed rtmpdump and then you can see the information it echoed back. That's not just a truncated display of the tcUrl, that's actually what it is passing the server. The work-around is to explicitly pass the tcUrl, and everything is dandy.
rtmpdump -a "a1414/e3?as=adobe-hmac-sha256&av=1&te=connect&mp=iplayerstream/secure_auth/480kbps/MP/b00tyr8w_1320405462.mp4,iplayerstream/secure_auth/480kbps/MP/b00tyr8w_1320405462.mp4,iplayerstream/secure_auth/1500kbps/MP/b00tyr8w_1320405154.mp4,iplayerstream/secure_auth/400kbps/b00tyr8w_1320405462.mp4,iplayerstream/secure_auth/800kbps/MP/b00tyr8w_1320405470.mp4,iplayerstream/secure_auth/1500kbps/MP/b00tyr8w_1320405154.mp4,iplayerstream/secure_auth/800kbps/MP/b00tyr8w_1320405470.mp4,iplayerstream/secure_auth/100kbps/b00tyr8w_1320405462.mp4,prod_3gp_mpeg4_med/iplayerstream/prod_3gp_mpeg4_med/wifi_CBeebies_Bedtime_Stories_Episode_179_b00tyr8w _1320405462.mp4&et=1320450031&fmta-token=22853c1460014856485cfba5469a8b4014e6434ef464 a015f6fb0ef6d6ec4432" --host "bbcmedia.fcod.llnwd.net" --playpath "mp4:iplayerstream/secure_auth/1500kbps/MP/b00tyr8w_1320405154.mp4" -s "http://www.bbc.co.uk/emp/iplayer/revisions/617463_618125_3/617463_618125_3_emp.swf" --port 1935 --protocol "rtmp" -o activedl.flv RTMPDump v2.3 (c) 2010 Andrej Stepanchuk, Howard Chu, The Flvstreamer Team; license: GPL DEBUG: Protocol : RTMP DEBUG: Hostname : bbcmedia.fcod.llnwd.net DEBUG: Port : 1935 DEBUG: Playpath : mp4:iplayerstream/secure_auth/1500kbps/MP/b00tyr8w_1320405154.mp4 DEBUG: tcUrl : rtmp://bbcmedia.fcod.llnwd.net:1935/a1414/e3?as=adobe-hmac-sha256&av=1&te=connect&mp=iplayerstream/secure_auth/480kbps/MP/b00tyr8w_1320405462.mp4,prod_3gp_mpeg4_med/iplayerstream/prod_3gp_mpeg4_med/wifi_CBeebies_Bedtime_Stories_Episode_179_b00tyr8w _1320405462.mp4,iplayerstream/secure_auth/1500kbps/MP/b00tyr8w_1320405154.mp4,iplayerstream/secure_auth/400kbps/b00tyr8w_1320405462.mp4,iplayerstream/secure_auth/800kbps/MP/b00tyr8w_1320405470.mp4,iplayerstream/secure_auth/100kbps/b00tyr8w_1320405462.mp4,iplayer DEBUG: swfUrl : http://www.bbc.co.uk/emp/iplayer/rev...8125_3_emp.swf DEBUG: pageUrl : http://www.bbc.co.uk/iplayer/episode..._Perfect_Baby/ DEBUG: app : a1414/e3?as=adobe-hmac-sha256&av=1&te=connect&mp=iplayerstream/secure_auth/480kbps/MP/b00tyr8w_1320405462.mp4,prod_3gp_mpeg4_med/iplayerstream/prod_3gp_mpeg4_med/wifi_CBeebies_Bedtime_Stories_Episode_179_b00tyr8w _1320405462.mp4,iplayerstream/secure_auth/1500kbps/MP/b00tyr8w_1320405154.mp4,iplayerstream/secure_auth/400kbps/b00tyr8w_1320405462.mp4,iplayerstream/secure_auth/800kbps/MP/b00tyr8w_1320405470.mp4,iplayerstream/secure_auth/100kbps/b00tyr8w_1320405462.mp4,iplayerstream/secure_auth/480kbps/MP/b00tyr8w_1320405462.mp4,iplayerstream/secure_auth/1500kbps/MP/b00tyr8w_1320405154.mp4,iplayerstream/secure_auth/800kbps/MP/b00tyr8w_1320405470.mp4&et=1320449266&fmta-token=cfbab6649ad53ebf96a89308615c66c7849520b86a9a c12c2c25d49dcfcad134 DEBUG: live : yes DEBUG: timeout : 30 sec DEBUG: Setting buffer time to: 36000000ms Connecting ... DEBUG: RTMP_Connect1, ... connected, handshaking DEBUG: HandShake: Type Answer : 03 DEBUG: HandShake: Server Uptime : 189404762 DEBUG: HandShake: FMS Version : 4.0.3.1 DEBUG: HandShake: Handshaking finished.... DEBUG: RTMP_Connect1, handshaked |
#2
|
|||
|
|||
Re: Specify the tcURL or rtmpdump might not workyeah buffer size is 512 bytes and it fells short for long auth string. after increasing it to 1024 bytes everything works fine. you should also post the bug report at rtmpdump official mailing list.
|
#3
|
|||
|
|||
Re: Specify the tcURL or rtmpdump might not workWhy don't you check with the latest rtmpdump 2.4?
|
#4
|
|||
|
|||
Re: Specify the tcURL or rtmpdump might not workproblem is with the latest version too. though i have increased buffer size in my local sources you have to report it to mailing list to get it fixed in official version.
|
#5
|
|||
|
|||
Re: Specify the tcURL or rtmpdump might not workAs you are deeply involved into rtmpdump development, I think your releases should be official releases of rtmpdump. ;-)
|
#6
|
|||
|
|||
Re: Specify the tcURL or rtmpdump might not workQuote:
Whatever you're using to generate this stream info needs to be smarter too. You don't need multiple copies of "iplayerstream/secure_auth/480kbps/MP/b00tyr8w_1320405462.mp4" in the URL. Just pick the single string for the bitrate you wanted to play and drop the others. |
#7
|
|||
|
|||
Re: Specify the tcURL or rtmpdump might not workQuote:
rtmpsrv generates all those strings. Using this page:- ____http://www.bbc.co.uk/programmes/p00l79x0 rtmpsrv generated output is here:- ____http://pastebin.com/pVmeyggG It shows an 800Kbps string and a 1500Kbps string too. |
#8
|
|||
|
|||
Re: Specify the tcURL or rtmpdump might not workrtmpsrv doesn't generate anything. It merely reports what the Adobe client sent. If you haven't figured out by now, Adobe code is pathetically inefficient.
|
Tags: tcurl |
Thread Tools | |
Display Modes | |
|
|