Audio/video stream recording forums (http://stream-recorder.com/forum/index.php)
-   Video stream recording (http://stream-recorder.com/forum/forumdisplay.php?f=4)
-   -  

[SOLVED]Problem with RTMPDump and moshcam.com.

(http://stream-recorder.com/forum/showthread.php?t=9375)

bat999 06-11-2011 06:49 PM

[SOLVED]Problem with RTMPDump and moshcam.com.


 
Hi
I used to be able to download from moshcam.com using rtmpdump.
But when I try now, it's not working any more.:mad:
Errors like this:-

Quote:

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.

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

KSV 06-12-2011 01:43 AM

Re: Problem with RTMPDump and moshcam.com (RTMPE)


 
They have switched to RTMPE type 9 handshake. currently rtmpdump doesn't support it.

Stream Recorder 06-12-2011 04:15 AM

Re: Problem with RTMPDump and moshcam.com (RTMPE)


 
This is interesting because CooJah + Blader uses rtmpdump as well.

KSV 06-12-2011 05:17 AM

Re: Problem with RTMPDump and moshcam.com (RTMPE)


 
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.

Code:

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

Re: Problem with RTMPDump and moshcam.com (RTMPE)


 
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

Re: Problem with RTMPDump and moshcam.com (RTMPE)


 
Thanks KSV.

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

KSV 06-12-2011 06:39 AM

Re: Problem with RTMPDump and moshcam.com (RTMPE)


 
This change was made in r562.

Code:

------------------------------------------------------------------------
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:
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

Re: Problem with RTMPDump and moshcam.com (RTMPE)


 
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:-
Quote:

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:


All times are GMT -6. The time now is 11:37 PM.