Hello. Do you know how the system of Megavideo works regarding the location of the FLV file for the video. For example the FLV file for this video: http://www.megavideo.com/?d=K84W4OHJ Code (markup): Is this: http://www1028.megavideo.com/files/b57fa4ec444652bbc4f51893d1255012/video.flv Code (markup): I can't seem to find a logic inside the page source of the video to acquire the location. For example, where did this string come from? - "b57fa4ec444652bbc4f51893d1255012". It's nowhere in the source code, even partially. There is a site that can get the FLV file - ClipNabber. When you enter a Megavideo link they also ask that you paste the full page source too, so getting the FLV link must be available somewhere through the video page's source code. If anybody could just help me find the logic, I will make the code myself. Just help me find where to send a POST, what to GET and what to CURL where. Thanks in advance.
I might have to insight to help you. On the sample video file, if you look for the source code, you will find flashvars.embed = "%3Cobject+width%3D%22640%22+height%3D%22363%22%3E%3Cparam+name%3D%22movie%22+value%3D%22http%3A%2F%2Fwww.megavideo.com%2Fv%2FR7T21153025e2540e17eb2696894aacf714e6874%22%3E%3C%2Fparam%3E%3Cparam+name%3D%22allowFullScreen%22+value%3D%22true%22%3E%3C%2Fparam%3E%3Cembed+src%3D%22http%3A%2F%2Fwww.megavideo.com%2Fv%2FR7T21153025e2540e17eb2696894aacf714e6874%22+type%3D%22application%2Fx-shockwave-flash%22+allowfullscreen%3D%22true%22+width%3D%22640%22+height%3D%22363%22%3E%3C%2Fembed%3E%3C%2Fobject%3E"; Code (markup): I am pretty should this contains the video file, but I try to decode it. Edit: maybe not. The code decodes to flashvars.embed = "<object+width="640"+height="363"><param+name="movie"+value="http://www.megavideo.com/v/R7T21153025e2540e17eb2696894aacf714e6874"></param><param+name="allowFullScreen"+value="true"></param><embed+src="http://www.megavideo.com/v/R7T21153025e2540e17eb2696894aacf714e6874"+type="application/x-shockwave-flash"+allowfullscreen="true"+width="640"+height="363"></embed></object>"; Code (markup): Edit 2: You can get the xml of the video http://www.megavideo.com/xml/videolink.php?v=R7T21153. The R7T21153 is visble in the source code. It seems that you need to decryt the url using the values that they give you. Maybe, these: k="" k1="63460" k2="73476" un="e4cc266e353ca79945c19eb655d639b3" s="284" You might need to google for to decoded these values. I know idea, sorry.
I have a great piece of software for that. Use FireFox together with Video Download Helper. Go to your MegaVideo, download the video. When your download is completed (or during the download, I'm not sure) right click on your video in the download manager of FireFox. You see 'copy download link'. That's all! Congratulations, you have the link of the video. This work for many sites. Almost all I think!
Don't ever paste your source code, it contains the cookie string which they can easily hack your account.
MV uses a algorithm to generate the FLV url. It not that simple and requires you to process the 4 parameters to generate the final url. Also you can only stream a MV Video,something like XMOOV. You can not just generate it on the server and send it to client. Here is something which i wrote , it generates the URL but only the server can download it due to IP locking if not using Premium account - http://www.vikaspatial.com/demos/grabbers/megavideo/
I don't need to download a specific video. I need to include it to my PHP script. I found a version that generates a FLV file link, but it uses readfile() function and sets headers of the PHP file as if it's a FLV file that is prepared to be downloaded, so I am guessing it is temporarly downloading the remote file to the local server and then sending it to the client, which is not quite useful for shared hosting and limited resources. Does anybody know if: <? readfile("http://megavideo.com/video.url.here.flv"); ?> PHP: downloads the remote file to the server and if it's reasource heavy?