PDA

View Full Version : [SOLVED]Problem with RTMPDump and moshcam.com.


bat999
06-11-2011, 06:49 PM
Hi
I used to be able to download from moshcam.com using rtmpdump (http://all-streaming-media.com/record-video-stream/rtmpdump-freeware-console-RTMP-downloading-application.htm).
But when I try now, it's not working any more.:mad:
Errors like this:-

WARNING: No application or playpath in URL!
Connecting ...
WARNING: HandShake: Type mismatch: client sent 6, server answered 8


These are two examples:-
___http://www.moshcam.com/the-pretenders/enmore-theatre-849.aspx#
___http://www.moshcam.com/propagandhi/metro-theatre-495.aspx

I've tried using RTMPDump-v2.3 and also RTMPDump-v2.3 r569, but no joy.:confused:

I can download the files in Windows using CooJah + Blader (http://all-streaming-media.com/record-video-stream/Blader-freeware-RTMP-downloader.htm).

But is there a way to use RTMPDump with this website?:cool:

KSV
06-12-2011, 01:43 AM
They have switched to RTMPE type 9 handshake. currently rtmpdump doesn't support it.

Stream Recorder
06-12-2011, 04:15 AM
This is interesting because CooJah + Blader (http://all-streaming-media.com/record-video-stream/Blader-freeware-RTMP-downloader.htm) uses rtmpdump (http://all-streaming-media.com/record-video-stream/rtmpdump-freeware-console-RTMP-downloading-application.htm) as well.

KSV
06-12-2011, 05:17 AM
I have added the parameters directly to blader from same command line which fails with rtmpdump and was able to download the video. so it means it supports the new handshake.

url: rtmpe://streaming.moshcam.com
app:
flashVer: WIN 10,3,181,14
swfUrl: http://www.moshcam.com/chooktv/modules/Container.swf
pageUrl: http://www.moshcam.com/propagandhi/metro-theatre-495.aspx
playPath: mp4:Propaghandi_1502009_m_Moshcam_H264_700k_CBR_WS _Stereo.mp4


however bat999's output suggests that server is responding with RTMPE type 8 handshake which AFAIK is supported by rtmpdump but it's little weird that it's not working with this video.

KSV
06-12-2011, 05:47 AM
I investigated it further. it is actually using Type 8 handshake. it's a bug in later versions of rtmpdump. same command works fine with older versions of rtmpdump.

bat999
06-12-2011, 05:51 AM
Thanks KSV.

Is there a fix for the bug?
Which earlier version will work for moshcam?

KSV
06-12-2011, 06:39 AM
This change was made in r562.

------------------------------------------------------------------------
r563 | hyc | 2011-03-22 20:43:18 +0530 (Tue, 22 Mar 2011) | 2 lines

Fix prev commit

------------------------------------------------------------------------
r562 | hyc | 2011-03-20 05:02:53 +0530 (Sun, 20 Mar 2011) | 2 lines

Drop back on the handshake version, avoid rtmpe 9

affected code:
/* clientsig[4] = 128;
clientsig[6] = 3; */
clientsig[4] = 9;
clientsig[6] = 0x7c;

reverting those values will fix the problem with current server but may create problems with other servers requesting Type 9 handshake.

bat999
06-12-2011, 07:35 AM
Hi KSV
Like you said, earlier versions of RTMPDump do work OK.:)

Using v2.3 with Linux or Windows (Wine) both the Pretenders and Propaghandi files download OK.
Using v2.3 r569 with Linux or Windows (Wine) results in errors:-
WARNING: No application or playpath in URL!
Connecting ...
INFO: Connected...
ERROR: rtmp server sent error
ERROR: rtmp server requested close

These were the commands used:- __http://pastebin.com/eAjBMWDx

I agree, reverting the values may create other problems.:confused:
Probably nobody will look into it any deeper.
So I'll keep both versions of RTMPDump available on my system.:cool: