daasker
03-02-2012, 06:50 PM
hey guys,
one question to you: is it possible, to download the stream without a direct rmtp:// link?
At http://www.myvideo.de/watch/8375222/Sean_Paul_She_Doesn_t_Mind you only have the player code and a encoded XML data (http://www.myvideo.de/dynamic/get_player_video_xml.php?ID=8375222&flash_playertype=D&autorun=yes).
Or is it possible to decode this data direct?
greenythebeast
03-02-2012, 07:15 PM
Have you tried using RTMPexplorer?
pseudo code required to decrypt xml
$key = md5("c8407a08b3c71ea418ec9dc662f2a56e40cbd6d5a114aa50fb 1e1079e17f2b83" . md5($id))
$decrypted_xml = rc4.decrypt(hex_decode($encrypted_xml), $key)
$id is the ID used in url to retrieve xml.
http://www.myvideo.de/dynamic/get_player_video_xml.php?ID=8375222&flash_playertype=D&autorun=yes
i successfully tested the above method to decrypt xml and download video with rtmpdump.
here is a sample php script. it's not a full downloader but it shows you the relevant info.
<?php
/* Open the cipher */
$td = mcrypt_module_open('arcfour', '', 'stream', '');
/* Create the IV */
$iv = "";
/* Create key */
$id = $argv[1];
$key = md5("c8407a08b3c71ea418ec9dc662f2a56e40cbd6d5a114aa50fb 1e1079e17f2b83" . md5($id));
/* Intialize encryption */
mcrypt_generic_init($td, $key, $iv);
/* Encrypted data */
$enc_xml = file_get_contents("http://www.myvideo.de/dynamic/get_player_video_xml.php?ID=$id&flash_playertype=D&autorun=yes");
$enc_xml = explode("=", $enc_xml, 2);
$enc_xml = $enc_xml[1];
$encrypted = pack("H*", $enc_xml);
/* Decrypt encrypted string */
$decrypted = mdecrypt_generic($td, $encrypted);
/* Terminate decryption handle and close module */
mcrypt_generic_deinit($td);
mcrypt_module_close($td);
/* Show info */
$xml = simplexml_load_string($decrypted);
$video_params = $xml->{"playlist"}->{"videos"}->{"video"}->attributes();
echo "Title : " . rawurldecode($video_params->{"title"}) . "\n";
echo "RTMP : " . rawurldecode($video_params->{"connectionurl"}) . "\n";
echo "Playpath : " . rawurldecode($video_params->{"source"}) . "\n";
echo "HTTP : " . rawurldecode($video_params->{"path"} . $video_params->{"source"}) . "\n";
?>Usage:
php MyVideoTV.php your_video_id
video_id is available in video url.
http://www.myvideo.de/watch/8375222/Sean_Paul_She_Doesn_t_Mind
daasker
03-06-2012, 05:58 PM
Hi,
thank you for your help.
I got a 2 kinds of links, all rmtpe links. The first one works,
but here is the second one, i got 6 9 missmatch:
/usr/local/bin/rtmpdump -r "rtmpe://myvideo2fs.fplive.net/myvideo2flash/" -a "myvideo2flash" -W "http://is5.myvideo.de/de/player/mingR11b/ming.swf" -f "WIN 10,1,82,76" -p "http://www.myvideo.de/watch/7572095/Sisqo_Thong_Song" -y "flv:movie19/42/7572095" -o "test.mp4"
Dont know what to do, that are the only information in the quellcode.
Problem is only at the "myvideo2flash"-Links, the other one works fine.
Edit: hmm it's funny, sometimes it works, sometimes not?!
_Nazar_
03-26-2012, 09:54 AM
How do you get all these parameters?
/usr/local/bin/rtmpdump -r "rtmpe://myvideo2fs.fplive.net/myvideo2flash/" -a "myvideo2flash" -W "http://is5.myvideo.de/de/player/mingR11b/ming.swf" -f "WIN 10,1,82,76" -p "http://www.myvideo.de/watch/7572095/Sisqo_Thong_Song" -y "flv:movie19/42/7572095" -o "test.mp4"
I have only this in my XML
<video title="Juice Newton -- Queen Of Hearts" token="Berlinale" token_offset="-5" token_duration="18000" token_current_time="1332501752" clipping="" video_link="/watch/7265637/Juice_Newton_Queen_Of_Hearts" length="03:23" date="14.08.2007" rateCount="2" commentCount="1" views="1231" rate="5" keywords="Juice Newton, Queen Of Hearts, Pop, Country" userid="1220166" nickname="EMI" description="Juice Newton Queen Of Hearts : Juice Newton Queen Of Hearts" preview="http://is4.myvideo.de/de/movie7/46/thumbs/7265637_1.jpg" source="movie7/46/7265637.flv" path="http://is4.myvideo.de/de/" connectionurl="rtmpe://myvideo3fs.fplive.net/myvideo3/?token=c3RhcnRfdGltZT0yMDEyMDMyMzExMjIyNyZlbmRfdGl tZT0yMDEyMDMyMzE2MjIzMiZkaWdlc3Q9OGJjODczMmNlMmM1O DA1OGEwMDRhYmNjMjFmMjVlZmY=" id="7265637"/>
How do you get all these parameters?
http://stream-recorder.com/forum/showpost.php?p=41417&postcount=2
yishaofang
04-01-2012, 12:12 AM
Hi,
thank you for your help.
I got a 2 kinds of links, all rmtpe links. The first one works,
but here is the second one, i got 6 9 missmatch:
/usr/local/bin/rtmpdump -r "rtmpe://myvideo2fs.fplive.net/myvideo2flash/" -a "myvideo2flash" -W "http://is5.myvideo.de/de/player/mingR11b/ming.swf" -f "WIN 10,1,82,76" -p "http://www.myvideo.de/watch/7572095/Sisqo_Thong_Song" -y "flv:movie19/42/7572095" -o "test.mp4"
Dont know what to do, that are the only information in the quellcode.
Problem is only at the "myvideo2flash"-Links, the other one works fine.
Edit: hmm it's funny, sometimes it works, sometimes not?!
rtmpdump -r "rtmp://myvideo2fs.fplive.net/myvideo2flash/movie19/42/7572095" -o video.flv
you can try idm as well
_Nazar_
04-02-2012, 02:26 AM
The answer to my question was "Use rtmpsrv":D
dakota
04-13-2012, 09:50 AM
hey ksv, thanks a lot for your explanation about decrypting the xml. where do you get the hex-string you're using to create the rc4 key (c8407a08b3c71ea418ec9dc662f2a56e40cbd6d5a114aa50f b1e1079e17f2b83) from? sorry if i missed something, just want to make sure i can find it in case they change something in the encryption.
thx
dakota
where do you get the hex-string you're using to create the rc4 key (c8407a08b3c71ea418ec9dc662f2a56e40cbd6d5a114aa50f b1e1079e17f2b83) from?
decompile the flash player.
vBulletin® , Copyright ©2000-2025, Jelsoft Enterprises Ltd.