B"H<br>Hello<br><br>I'm running lubuntu 11.04<br><br>
I'm using the latest rtmpdump from git (commit
c58cfb3e9208c6e6bc1aa18f1b1d650d799084e5 - although the date `git log`
gives is off - it says Aug 11. for the latest commit.)<br><br>I'm trying to download the stream on this page:<br><a href="http://www.chabad.org/therebbe/article_cdo/aid/551143/jewish/14-Adar-5724.htm">http://www.chabad.org/therebbe/article_cdo/aid/551143/jewish/14-Adar-5724.htm</a><br>
<br>This works when playing it through the browser.<br><br>rtmpsrv gave me the following command:<br>---<br>/usr/local/bin/rtmpdump -r "rtmp://<a href="http://rtmp01.hddn.com/play">rtmp01.hddn.com/play</a>" -a "play" -f "LNX 10,3,183,7" -W "<a href="http://www.chabad.org/images/multimedia/mediaplayer/player.swf?v=3.0.1.6">http://www.chabad.org/images/multimedia/mediaplayer/player.swf?v=3.0.1.6</a>" -p "<a href="http://www.chabad.org/therebbe/article_cdo/aid/551143/jewish/14-Adar-5724.htm">http://www.chabad.org/therebbe/article_cdo/aid/551143/jewish/14-Adar-5724.htm</a>" -C B:0 -y "mp3:vod/vod.chabadorg1/JEM/SichosKodesh/5724/1536563_JEMSK0766_-_14_Adar_5724_Sicha_3" -o 1536563_JEMSK0766_-_14_Adar_5724_Sicha_3.flv<br>
---<br><br>However, that didn't work. When I run that (with debug) I get a " Connection failed: Application rejected connection" error:<br>--<br>DEBUG: RTMP_ClientPacket, received: invoke 231 bytes<br>DEBUG: (object begin)<br>
DEBUG: Property: <Name: no-name., STRING: _error><br>DEBUG: Property: <Name: no-name., NUMBER: 1.00><br>DEBUG: Property: NULL<br>DEBUG: Property: <Name: no-name., OBJECT><br>
DEBUG: (object begin)<br>DEBUG: Property: <Name: level, STRING: error><br>DEBUG: Property: <Name: code, STRING: NetConnection.Connect.Rejected><br>DEBUG: Property: <Name: description, STRING: Connection failed: Application rejected connection.><br>
DEBUG: Property: <Name: ex, OBJECT><br>DEBUG: (object begin)<br>DEBUG: Property: <Name: redirect, STRING: rtmp://<a href="http://173.208.109.173:1935/play">173.208.109.173:1935/play</a>><br>
DEBUG: Property: <Name: code, NUMBER: 302.00><br>DEBUG: (object end)<br>DEBUG: Property: <Name: clientid, NUMBER: 1483116424.00><br>DEBUG: (object end)<br>DEBUG: (object end)<br>
DEBUG: HandleInvoke, server invoking <_error><br>
ERROR: rtmp server sent error<br>DEBUG2: RTMP_ReadPacket: fd=5<br>DEBUG2: 0000: 03 00 00 00 00 00 12 14 00 00 00 00 ............ <br>DEBUG2: 0000: 02 00 05 63 6c 6f 73 65 00 00 00 00 00 00 00 00 ...close........ <br>
DEBUG2: 0010: 00 05 .. <br>DEBUG: RTMP_ClientPacket, received: invoke 18 bytes<br>DEBUG: (object begin)<br>DEBUG: Property: <Name: no-name., STRING: close><br>
DEBUG: Property: <Name: no-name., NUMBER: 0.00><br>DEBUG: Property: NULL<br>DEBUG: (object end)<br>DEBUG: HandleInvoke, server invoking <close><br>ERROR: rtmp server requested close<br>DEBUG: Closing connection.<br>
--<br><br>It offers a redirect, which rtmpdump does not follow (I don't know if this is a bug or intended behavior). <br><br>So I switched the rtmpdump command to use the redirect link:<br>--<br>/usr/local/bin/rtmpdump --debug -r "rtmp://<a href="http://173.208.109.173:1935/play">173.208.109.173:1935/play</a>" -a "play" -f "LNX 10,3,183,7" -W "<a href="http://www.chabad.org/images/multimedia/mediaplayer/player.swf?v=3.0.1.6">http://www.chabad.org/images/multimedia/mediaplayer/player.swf?v=3.0.1.6</a>" -p "<a href="http://www.chabad.org/therebbe/article_cdo/aid/551143/jewish/14-Adar-5724.htm">http://www.chabad.org/therebbe/article_cdo/aid/551143/jewish/14-Adar-5724.htm</a>" -C B:0 -y "mp3:vod/vod.chabadorg1/JEM/SichosKodesh/5724/1536563_JEMSK0766_-_14_Adar_5724_Sicha_3" -o 1536563_JEMSK0766_-_14_Adar_5724_Sicha_3.flv<br>
--<br><br>This time it seems to start, but goes very slow and seems to give the same command, "DEBUG2: RTMP_ReadPacket: fd=5" and then freeze for several seconds, spit out a couple lines and then repeat itself. Here is some of that output:<br>
---<br>DEBUG: RTMP_ClientPacket, received: invoke 201 bytes<br>DEBUG: (object begin)<br>DEBUG: Property: <Name: no-name., STRING: onStatus><br>DEBUG: Property: <Name: no-name., NUMBER: 0.00><br>
DEBUG: Property: NULL<br>DEBUG: Property: <Name: no-name., OBJECT><br>DEBUG: (object begin)<br>DEBUG: Property: <Name: level, STRING: status><br>DEBUG: Property: <Name: code, STRING: NetStream.Publish.Start><br>
DEBUG: Property: <Name: description, STRING: Publishing vod/vod.chabadorg1/JEM/SichosKodesh/5724/1536563_JEMSK0766_-_14_Adar_5724_Sicha_3.><br>DEBUG: Property: <Name: clientid, NUMBER: 961863286.00><br>
DEBUG: (object end)<br>DEBUG: (object end)<br>DEBUG: HandleInvoke, server invoking <onStatus><br>DEBUG: HandleInvoke, onStatus: NetStream.Publish.Start<br>Starting download at: 0.000 kB<br>DEBUG2: RTMP_ReadPacket: fd=5<br>
DEBUG2: 0000: 02 00 00 00 00 00 06 04 00 00 00 00 ............ <br>DEBUG2: 0000: 00 06 00 00 50 a1 ....P. <br>DEBUG: HandleCtrl, received ctrl. type: 6, len: 6<br>
DEBUG: HandleCtrl, Ping 20641<br>DEBUG: sending ctrl. type: 0x0007<br>DEBUG2: RTMP_SendPacket: fd=5, size=6<br>DEBUG2: 0000: 42 00 00 00 00 00 06 04 B....... <br>DEBUG2: 0000: 00 07 00 00 50 a1 ....P. <br>
DEBUG2: RTMP_ReadPacket: fd=5<br>DEBUG2: 0000: 02 00 00 00 00 00 06 04 00 00 00 00 ............ <br>DEBUG2: 0000: 00 06 00 00 9f b8 ...... <br>DEBUG: HandleCtrl, received ctrl. type: 6, len: 6<br>
DEBUG: HandleCtrl, Ping 40888<br>DEBUG: sending ctrl. type: 0x0007<br>DEBUG2: RTMP_SendPacket: fd=5, size=6<br>DEBUG2: 0000: c2 . <br>DEBUG2: 0000: 00 07 00 00 9f b8 ...... <br>
DEBUG2: RTMP_ReadPacket: fd=5<br>DEBUG2: 0000: 02 00 00 00 00 00 06 04 00 00 00 00 ............ <br>DEBUG2: 0000: 00 06 00 00 ee 73 .....s <br>DEBUG: HandleCtrl, received ctrl. type: 6, len: 6<br>
DEBUG: HandleCtrl, Ping 61043<br>DEBUG: sending ctrl. type: 0x0007<br>DEBUG2: RTMP_SendPacket: fd=5, size=6<br>DEBUG2: 0000: c2 . <br>DEBUG2: 0000: 00 07 00 00 ee 73 .....s <br>
DEBUG2: RTMP_ReadPacket: fd=5<br><br>---<br><br>Most of the time it just kept on going, spitting out new lines every 5-10 seconds. When I wanted to exit I had to kill it from the command line:<br>Once, after a while, it errored out like this, but this only happened once:<br>
---<br>DEBUG2: RTMP_ReadPacket: fd=5<br>DEBUG2: RTMP_SendPacket: fd=5, size=112<br>DEBUG2: 0000: 43 00 00 00 00 00 70 14 C.....p. <br>DEBUG2: 0000: 02 00 0b 46 43 55 6e 70 75 62 6c 69 73 68 00 40 ...FCUnpublish.@ <br>
DEBUG2: 0010: 1c 00 00 00 00 00 00 05 02 00 55 6d 70 33 3a 76 ..........Ump3:v <br>DEBUG2: 0020: 6f 64 2f 76 6f 64 2e 63 68 61 62 61 64 6f 72 67 od/vod.chabadorg <br>DEBUG2: 0030: 31 2f 4a 45 4d 2f 53 69 63 68 6f 73 4b 6f 64 65 1/JEM/SichosKode <br>
DEBUG2: 0040: 73 68 2f 35 37 32 34 2f 31 35 33 36 35 36 33 5f sh/5724/1536563_ <br>DEBUG2: 0050: 4a 45 4d 53 4b 30 37 36 36 5f 2d 5f 31 34 5f 41 JEMSK0766_-_14_A <br>DEBUG2: 0060: 64 61 72 5f 35 37 32 34 5f 53 69 63 68 61 5f 33 dar_5724_Sicha_3 <br>
DEBUG: Invoking FCUnpublish<br>DEBUG2: RTMP_SendPacket: fd=5, size=34<br>DEBUG2: 0000: 43 00 00 00 00 00 22 14 C.....". <br>DEBUG2: 0000: 02 00 0c 64 65 6c 65 74 65 53 74 72 65 61 6d 00 ...deleteStream. <br>
DEBUG2: 0010: 40 20 00 00 00 00 00 00 05 00 3f f0 00 00 00 00 @ ........?..... <br>DEBUG2: 0020: 00 00 .. <br>DEBUG: Invoking deleteStream<br>ERROR: RTMP_ReadPacket, failed to read RTMP packet header<br>
0.000 kB / 0.00 sec<br>DEBUG: RTMP_Read returned: 0<br>Download complete<br>DEBUG: Closing connection.<br>---<br><br>I then tried to switch to a live stream, to see if that would work any better.<br>---<br>/usr/local/bin/rtmpdump --debug -v -r "rtmp://<a href="http://173.208.109.173:1935/play">173.208.109.173:1935/play</a>" -a "play" -f "LNX 10,3,183,7" -W "<a href="http://www.chabad.org/images/multimedia/mediaplayer/player.swf?v=3.0.1.6">http://www.chabad.org/images/multimedia/mediaplayer/player.swf?v=3.0.1.6</a>" -p "<a href="http://www.chabad.org/therebbe/article_cdo/aid/551143/jewish/14-Adar-5724.htm">http://www.chabad.org/therebbe/article_cdo/aid/551143/jewish/14-Adar-5724.htm</a>" -C B:0 -y "mp3:vod/vod.chabadorg1/JEM/SichosKodesh/5724/1536563_JEMSK0766_-_14_Adar_5724_Sicha_3" -o 1536563_JEMSK0766_-_14_Adar_5724_Sicha_3.flv<br>
---<br><br>It did start downloading the file, but consistently failed at around 5% (just about a minute of audio. Here's the error message it gave:<br>----<br>DEBUG2: RTMP_ReadPacket: fd=5<br>DEBUG2: 0000: 46 00 00 1a 00 00 69 08 F.....i. <br>
DEBUG2: 0000: 2e ff f3 40 c0 b6 16 39 22 b1 98 d6 b0 92 6c b4 ...@...9".....l. <br>DEBUG2: 0010: a6 00 99 f1 39 1b 71 51 ec 89 89 95 2c 89 b1 58 ....9.qQ....,..X <br>DEBUG2: 0020: 7d 5f 1b 02 bc 22 b0 42 ec 56 a8 76 17 18 db 21 }_...".B.V.v...! <br>
DEBUG2: 0030: 6e aa 4d 7f 32 07 fe 05 59 2c b1 4b 0a 83 61 cc n.M.2...Y,.K..a. <br>DEBUG2: 0040: 98 d6 a5 32 49 55 2c 77 b2 b5 29 9e a5 79 64 73 ...2IU,w..)..yds <br>DEBUG2: 0050: 1b a9 cf ab 62 d6 b3 bb 57 0a a0 0c 3a 95 a6 be ....b...W...:... <br>
DEBUG2: 0060: 50 03 15 82 de d1 09 13 5f P......._ <br>DEBUG2: RTMP_ReadPacket: fd=5<br>DEBUG2: 0000: 02 00 00 00 00 00 06 04 00 00 00 00 ............ <br>DEBUG2: 0000: 00 1f 00 00 00 01 ...... <br>
DEBUG: HandleCtrl, received ctrl. type: 31, len: 6<br>DEBUG: HandleCtrl, Stream BufferEmpty 1<br>DEBUG2: RTMP_ReadPacket: fd=5<br>DEBUG: RTMPSockBuf_Fill, recv returned -1. GetSockError(): 11 (Resource temporarily unavailable)<br>
ERROR: RTMP_ReadPacket, failed to read RTMP packet header<br>307.405 kB / 68.20 sec (5.3%)<br>DEBUG: RTMP_Read returned: 0<br>Download may be incomplete (downloaded about 5.30%), try resuming<br>DEBUG: Closing connection.<br>
<br>DEBUG2: RTMP_SendPacket: fd=5, size=34<br>DEBUG2: 0000: 43 00 00 00 00 00 22 14 C.....". <br>DEBUG2: 0000: 02 00 0c 64 65 6c 65 74 65 53 74 72 65 61 6d 00 ...deleteStream. <br>
DEBUG2: 0010: 40 14 00 00 00 00 00 00 05 00 3f f0 00 00 00 00 @.........?..... <br>DEBUG2: 0020: 00 00 .. <br>DEBUG: Invoking deleteStream<br>----<br>
<br>
this is where I'm stuck. Changing the buffer size doesn't seem to make any difference. <br><br>Any ideas? Any information I should have included but didn't? Should rtmpdump have automatically followed the redirect?<br>
<br>Thanks,<br>Menachem<br>