View Single Post
  #14  
Old 07-08-2011, 12:04 AM
KSV KSV is offline
Senior Member
 
Join Date: Apr 2011
Posts: 853
KSV is on a distinguished road
Cool

Re: realitatea.net: Help downloading RTMPE stream. New kind of protection?


Quote:
Originally Posted by grasii View Post
1. Can you explain what have you modded? I'm just curios in the insides of the code. I wanted to look at it and try a mod but I'm no expert into this. Also I couldn't find many resources about rtmpe protocol.
in rtmp.c you can modify HandleInvoke function to handle new type of commands.

Patch:
Code:
else if (AVMATCH(&method, &av_VerifyClient))
    {
        RTMPPacket packet;
        char pbuf[256], *pend = pbuf + sizeof (pbuf);
        char *enc;
        
        packet.m_nChannel = 0x03; /* control channel (invoke) */
        packet.m_headerType = RTMP_PACKET_SIZE_MEDIUM;
        packet.m_packetType = RTMP_PACKET_TYPE_INVOKE;
        packet.m_nTimeStamp = 0;
        packet.m_nInfoField2 = 0;
        packet.m_hasAbsTimestamp = 0;
        packet.m_body = pbuf + RTMP_MAX_HEADER_SIZE;
        
        double VerificationNumber;
        VerificationNumber = AMFProp_GetNumber(AMF_GetProp(&obj, NULL, 3));

        enc = packet.m_body;
        enc = AMF_EncodeString(enc, pend, &av__result);
        enc = AMF_EncodeNumber(enc, pend, AMFProp_GetNumber(AMF_GetProp(&obj, NULL, 1)));
        *enc++ = AMF_NULL;
        enc = AMF_EncodeNumber(enc, pend, exp(atan(sqrt(VerificationNumber))) + 1);
        if (!enc)
            return FALSE;

        packet.m_nBodySize = enc - packet.m_body;
        RTMP_SendPacket(r, &packet, FALSE);
    }
Quote:
Originally Posted by grasii View Post
2. What made you think they hired morons to encode videos?
Quote:
Originally Posted by necro View Post
I downloaded videos like that with explorer and works, not so good but i was able to download some videos, but the videos get broken, every movie get one part with freezing image, is this normal? why the videos get broke? my connection is to slow?, bug?

I want this videos without freezing image..., if anyone know some way to fix this freeezing, pls reply, thanks.
Try to play the video on their website and it skip frames at same points as the downloaded video. so it's not downloader's problem. videos are broken on their server.
Reply With Quote