PDA

View Full Version : rtmpdump error, RTMP_Connect0, failed to connect socket. 10061


sysoff
10-18-2012, 04:03 AM
Hi chaps,

First of all I love rtmpdump. It is an excellent tool.

I was using it to download clips from this site http://slavishow.com and it was working flawlessly until recent days. It started spitting out an error and i cannot figure it out why ...

Connecting ...
Caught signal: 2, cleaning up, just a second...
ERROR: RTMP_Connect0, failed to connect socket. 10061 (Unknown error)
DEBUG: Closing connection.


I'm using it as follows:
OS is win7

rtmpdump.exe -r "rtmp://video.slavishow.com" -y "slavishow/20121017.mp4" -s "http://www.slavishow.com/content/themes/slavishow/swf/flowplayer.rtmp-3.2.3.swf" -o d:\clip.mp4 -e -V

RTMPDump v2.3
(c) 2010 Andrej Stepanchuk, Howard Chu, The Flvstreamer Team; license: GPL
WARNING: No application or playpath in URL!
DEBUG: Protocol : RTMP
DEBUG: Hostname : video.slavishow.com
DEBUG: Port : 1935
DEBUG: Playpath : slavishow/20121017.mp4
DEBUG: tcUrl : rtmp://video.slavishow.com:1935/
DEBUG: swfUrl : http://www.slavishow.com/content/themes/slavishow/swf/flowplay
er.rtmp-3.2.3.swf
DEBUG: live : no
DEBUG: timeout : 30 sec
DEBUG: Setting buffer time to: 36000000ms
Connecting ...
ERROR: RTMP_Connect0, failed to connect socket. 10061 (Unknown error)
DEBUG: Closing connection.


and here it is the page source of this clip:

<script type="text/javascript">
flowplayer("slavishow_player", "http://www.slavishow.com/content/themes/slavishow/swf/flowplayer.commercial-3.2.7.swf",
{
key: '#$1b99e385f7e8d008f64',
contextMenu: [
{"Slavishow.com player by WITmind Ltd." : function() {
location.href = "http://www.witmind.com";
}},
"-",
"Slavishow.com player v.16212"
],
"clip":
{
"provider":"influxis",
"url":"slavishow/20121017.mp4",
"scaling": "fit",
bufferLength: 2,
"autoPlay": false,
"connectionProvider": "clustering"
},
"play": {
url: 'http://www.slavishow.com/content/themes/slavishow/images/backgrounds/player4_logo_221.png',
width: 86,
height: 86
},
"logo":
{
"opacity":1,
"right":25,
"url":"http://www.slavishow.com/content/themes/slavishow/images/logo_show_96.png",
"fullscreenOnly":false,
"top":40
},
"screen":
{
"height":"100pct",
"top":0
},
"canvas": {
"background": "url(http://www.slavishow.com/content/uploads/2012/10/4_16-640x512.jpg) no-repeat 50pct 50pct",
"backgroundGradient": "none",
},
"plugins":
{
"controls":
{
"buttonOffColor":"rgba(130,130,130,1)","timeColor":"#ffffff","borderRadius":"0px","bufferGradient":"none","sliderColor":"#000000","zIndex":2,"backgroundColor":"rgba(0, 0, 0, 0.6)","scrubberHeightRatio":0.6,"tooltipTextColor":"#ffffff","volumeSliderGradient":"none",
"spacing":{"time":6,"volume":8,"all":2},"sliderGradient":"none","timeBorderRadius":20,"timeBgHeightRatio":0.8,"volumeSliderHeightRatio":0.6,"time":true,"progressGradient":"none","height":26,"volumeColor":"#4599ff","tooltips":{"marginBottom":5,"buttons":false},"name":"controls",
"timeSeparator":" ","opacity":1,"volumeBarHeightRatio":0.3,"timeFontSize":12,"left":"50pct","tooltipColor":"rgba(0, 0, 0, 0)","volumeSliderColor":"rgba(0, 0, 0, 1)","border":"0px","bufferColor":"#a3a3a3","buttonColor":"#ffffff",
"durationColor":"rgba(184, 217, 255, 1)","autoHide":{"enabled":true,"hideDelay":500,"hideStyle":"fade","mouseOutDelay":500,"hideDuration":400,"fullscreenOnly":true},"backgroundGradient":"none","width":"100pct","display":"block","sliderBorder":"1px solid rgba(128, 128, 128, 0.7)",
"buttonOverColor":"rgba(184, 217, 255, 1)","url":"http://www.slavishow.com/content/themes/slavishow/swf/flowplayer.controls-3.2.5.swf","progressColor":"#4599ff","timeBorder":"0px solid rgba(0, 0, 0, 0.3)","timeBgColor":"rgb(0, 0, 0, 0)","scrubberBarHeightRatio":0.3,"bottom":0,"builtIn":false,"volumeBorder":"1px solid rgba(128, 128, 128, 0.7)","margins":[2,12,2,12]
},
"influxis":
{
"url":"http://www.slavishow.com/content/themes/slavishow/swf/flowplayer.rtmp-3.2.3.swf"
},
"clustering":
{
"url":"http://www.slavishow.com/content/themes/slavishow/swf/flowplayer.cluster-3.2.8.swf",
"netConnectionUrl":"rtmp://audio.slavishow.com",

"hosts": [
{"host":"rtmp://audio.slavishow.com"},
{"host":"rtmp://video.slavishow.com"}
]
}
}
}
);
</script>

sysoff
10-23-2012, 08:24 AM
i was able to resolve my problem alone .. :D
it seems that developers on the site have changed the rtmp server and and the old one wasn't ...there at all :) . They haven't changed the server name on the web page though, something like redirecting was happening...idk... How did i found that ? Well i did "netstat -f" on my win 7 while watching a clip at the same time in my browser ..

cheers

svnpenn
10-23-2012, 01:31 PM
Please post working command and/or netstat output

Ivaila
10-26-2012, 07:13 PM
I am trying to download from this website as well but it's not working.

Example video: http://www.slavishow.com/%D0%B2%D0%B8%D0%BA%D1%82%D0%BE%D1%80-%D0%BA%D0%B0%D0%BB%D0%B5%D0%B2-%D0%B2-%D0%BE%D0%B1%D1%80%D0%B0%D0%B7%D0%B0-%D0%BD%D0%B0-%D1%81%D0%B8%D0%BB%D0%B2%D0%B8%D1%8F-%D0%BA%D0%B0%D1%86%D0%B0%D1%80%D0%BE/

My latest attempt:

rtmpdump -r rtmp://audio.slavishow.com/slavishow/20121023_KACAROVA.mp4 -W http://www.slavishow.com/content/themes/slavishow/swf/flowplayer.cluster-3.2.8.swf -p http://www.slavishow.com/%D0%B2%D0%B8%D0%BA%D1%82%D0%BE%D1%80-%D0%BA%D0%B0%D0%BB%D0%B5%D0%B2-%D0%B2-%D0%BE%D0%B1%D1%80%D0%B0%D0%B7%D0%B0-%D0%BD%D0%B0-%D1%81%D0%B8%D0%BB%D0%B2%D0%B8%D1%8F-%D0%BA%D0%B0%D1%86%D0%B0%D1%80%D0%BE/ -y slavishow/20121023_KACAROVA.mp4 -f "WIN 11,4,31,204" -t rtmp://audio.slavishow.com -o k:/test.mp4

Error:

INFO: Connected...
Starting download at: 0.000 kB
INFO: Metadata:
INFO: duration 515.02
INFO: bitrates:
INFO: height 360.00
INFO: languages:
INFO: tracks:
INFO: id 1.00
INFO: content video
INFO: bitrate 785236.00
INFO: language INVALID TYPE 0x05
INFO: codec h264
INFO: id 2.00
INFO: content audio
INFO: bitrate 75969.00
INFO: language INVALID TYPE 0x05
INFO: codec aac
INFO: type file
INFO: width 640.00
248.398 kB / 2.40 sec (0.4%)
ERROR: RTMP_ReadPacket, failed to read RTMP packet header
357.985 kB / 3.72 sec (0.7%)
Download may be incomplete (downloaded about 0.70%), try resuming

It always fails after a few seconds. By constantly resuming I get decent audio in the end but no video. Any ideas?

placebo
10-27-2012, 12:29 PM
audio.slavishow.com server accepts only small buffer times like 2000 ms, use option -b:
rtmpdump -r rtmp://audio.slavishow.com -y slavishow/20121023_KACAROVA.mp4 -b 2000 -o 20121023_KACAROVA.flv

Ivaila
10-27-2012, 03:18 PM
Thanks, it downloads fine now, but the resulting video is a white blur, actually the same result as when I repeatedly resumed. Is it the same for you?

Ivaila
12-08-2012, 09:39 AM
Still haven't been able to figure this out. :( Anyone know what could cause the audio to be fine but video to be a grey mess?