PDA

View Full Version : rtmpdump is not compatible with MySpace?


KoryLifyddhb
10-31-2010, 04:09 AM
Hi,
I tried to used rtmpdump (Windows one) to download song from MySpace.
I performed following steps:
1. Run rtmpsrv.exe
2. Redirected all traffic for port 1935 to localhost.
3. Open http://www.myspace.com/diagonalleyband
4. rtmpsrv.exe returned following error:

RTMPDump v2.3
(c) 2010 Andrej Stepanchuk, Howard Chu, The Flvstreamer Team; license: GPL
Connecting ...
WARNING: HandShake: Type mismatch: client sent 6, server answered 8
INFO: Connected...
ERROR: RTMP_ReadPacket, failed to read RTMP packet header

Command line follows:

rtmpdump -r "rtmpe://l3fms-music02.myspacecdn.com:1935/myspace-music02" -a "myspace-music02" -f "WIN 10,1,85,3" -W "http://lads.myspacecdn.com/videos/MSMusicPlayer.swf" -p "http://www.myspace.com/diagonalleyband" -C O:1 -C O:0 -y "mp3:183/std_a648310a02ce4981b971b1a296d5a301" -o std_a648310a02ce4981b971b1a296d5a301.flv

I tried multiple times with different songs, however, this error persists.
Is there any way to download MySpace music with rtmpdump now?

placebo
11-02-2010, 04:57 PM
the correct command on a winxp-sp3 machine is:
rtmpdump -r "rtmpe://l3fms-music02.myspacecdn.com:1935/myspace-music02" -a "myspace-music02" -f "WIN 10,1,82,76" -W "http://lads.myspacecdn.com/videos/MSMusicPlayer.swf" -p "http://www.myspace.com/diagonalleyband" -C O:1 -C O:0 -y "mp3:25/std_ddcb5c6f3989c63d68d9b780b18ae261" -o std_ddcb5c6f3989c63d68d9b780b18ae261.flv


see screenshot:
http://img143.imageshack.us/img143/1126/rtmpdumpdownloadsflvfro.jpg

i've uploaded the original file too for you to test and compare thanks.
ButterBeers and OWLS (8mins04secs).zip (http://www.mediafire.com/?223gf4gddrv4a7o)

you can extract the mp3 file with any good tool. i recommend FLVExtract.

(btw, there are more user-friendly ways to download myspace songs or videos. try GetFLV (http://all-streaming-media.com/record-video-stream/GetFLV-Download-and-convert-flash-video-streaming.htm), for example!)

Stream Recorder
11-03-2010, 02:33 AM
btw, there are more user-friendly ways to download myspace songs or videos.
using rtmpdump (http://all-streaming-media.com/record-video-stream/rtmpdump-freeware-console-RTMP-downloading-application.htm) with Replay Media Catcher (http://all-streaming-media.com/record-video-stream/Replay-Media-Catcher-HTTP-RTMP-FLV-MP3-ripper-recorder.htm) is user-friendly too:
http://stream-recorder.com/forum/showpost.php?p=20358&postcount=7

placebo
11-03-2010, 03:24 AM
rtmpdump (http://all-streaming-media.com/record-video-stream/rtmpdump-freeware-console-RTMP-downloading-application.htm) can be combined/integrated with Replay Media Catcher (http://all-streaming-media.com/record-video-stream/Replay-Media-Catcher-HTTP-RTMP-FLV-MP3-ripper-recorder.htm). but it is a challenge to make it work smoothly because the command for rtmpdump is extremely long (a long line, a single command) and RMC4 has problems handling such etc ...

it is more convenient to use GUI downloaders which are entirely based on rtmpdump, for example blader.exe (CJB (http://all-streaming-media.com/record-video-stream/Blader-freeware-RTMP-downloader.htm)). StreamTransport (http://all-streaming-media.com/record-video-stream/StreamTransport-Download-HTTP-RTMP-RTMPE-streams.htm) works too with myspace but i am not sure it ST is based on rtmpdump.

KoryLifyddhb
11-06-2010, 11:23 AM
Thanks, people! It works now. So, the key for success was to use another flash version string in "-f" parameter.

placebo
11-06-2010, 02:37 PM
Thanks, people! It works now. So, the key for success was to use another flash version string in "-f" parameter.

hi. nope. the key to success was the editing back of your hosts file. for the rmtpsrv to work, you must edit the hosts file (, which you did!). then you press Ctrl+C to interrupt everything. and edit the hosts file back to its original state. finally the rtmpdump command (copy/paste the full single line) works.

anyway. congrats! ;)

any ANONYMOUS forum user
11-07-2010, 01:19 AM
Unix shell script for downloading music from MySpace with rtmpdump (http://all-streaming-media.com/record-video-stream/rtmpdump-freeware-console-RTMP-downloading-application.htm)

#!/bin/bash --
echo "MySpace music downloader by 360percents"

if [ -z "$1" ]; then
echo "";echo "Usage: `basename $0` [URL]";echo "";
exit
fi

type -P rtmpdump &>/dev/null || {
read -n1 -p "I need a program called rtmpdump, do you wan to install it now? (y/n) "
echo
[[ $REPLY = [yY] ]] && sudo apt-get install rtmpdump || { echo "You didn't answer yes, or installation failed. Install it manually. Exiting...";}
>&2; exit 1; }

echo "[+] Requesting $1"
page=`wget -L "$1" --quiet --user-agent="Mozilla" -O -`
userid=`echo "$page" | grep 'userID' | sed -e 's/.*userID=//' -e 's/".*//' | uniq`
artistid=`echo "$page" | grep 'artid' | sed -e 's/.*artid=//' -e 's/&.*//' | uniq`
echo "[+] Requesting XML playlist"
link="http://musicservices.myspace.com/Modules/MusicServices/Services/MusicPlayerService.ashx?action=getArtistPlaylist&artistId=$artistid&artistUserId=$userid"
xml=`wget --quiet -L "$link" --user-agent="Mozilla" -O -`
songs=`echo "$xml" | tr ">" "\n" | grep 'songId' | tr ' ' "\n" | grep 'songId' | cut -d '"' -f 2`
songcount=`echo "$songs" | wc -l`
echo "[+] Found $songcount songs."

for i in `seq 1 $songcount`
do
songid=`echo "$songs" | sed -n "$i"p`
link="http://musicservices.myspace.com/Modules/MusicServices/Services/MusicPlayerService.ashx?action=getSong&ptype=4&sample=0&songId=$songid"
songpage=`wget -L "$link" --quiet --user-agent="Mozilla" -O -`
title=`echo "$songpage" | tr "<" "\n" | grep 'title' | tr ">" "\n" | grep -v 'title' | sed -e '/^$/d' | sort -u`
rtmp=`echo "$songpage" | tr "<" "\n" | tr ">" "\n" | grep 'rtmp://' | uniq`
echo "Downloading $title..."
rtmpdump -r "$rtmp" -o "$title.flv" -q
done

dansrfe
12-04-2010, 04:22 AM
hi guys i just got ubuntu and when running the shell script via:

sh myspacedownloader.sh

it gives me an error of Syntax error: word unexpected (expecting "do")

personally I would really appreciate if someone could tell me how to get this done in windows xp sp3 since that is what i use.

thanks

this is the link i want to download from: http://www.myspace.com/yiruma/music/songs/river-flows-in-you-23016885

dansrfe
12-04-2010, 11:24 PM
Can anyone list the detailed instructions via placebo's and KoryLifyddhb's method?

placebo
12-05-2010, 03:07 AM
hi, your hosts file should look like this (edit and save it!):

~~~~~~~~~~~snip~~~~~~~~~~
# 127.0.0.1 localhost
127.0.0.1 l3fms-music01.myspacecdn.com
~~~~~~~~~~~snap~~~~~~~~~~

then start rtmpsrv.exe, then goto your webpage, then play the §$%&! song, then check your command window. then press Alt+C (or Alt+X or etc.) to interrupt the rtmpsrv process. then your hosts file should look like this (edit and save it!):

~~~~~~~~~~~snip~~~~~~~~~~
127.0.0.1 localhost
# 127.0.0.1 l3fms-music01.myspacecdn.com
~~~~~~~~~~~snap~~~~~~~~~~

then copy/paste the full command to a new command line and run it, see screenshot. rtmpdump.exe will download your file. the following screenshot is self-explanatory, it shows everything.
http://img94.imageshack.us/img94/364/snap2ap.jpg

take the flv file and, from it, extract the mp3 file with FLVExtract. you will see that the mp3 file is encoded in 96kbps and uses LAME3.96. well, that's what my mp3 tools report.

"Clouded topics"? .. guess why we write in this cloudy way! :rolleyes: (myspace staff, emusic staff, thumbplay staff, zune staff, etc. .. they ALL read our topics and threads which are easily found with google search; so i better be careful what to disclose and what not)

Yiruma? wtf??! :p Another yiruma request or example or case, and i will ignore. i *ate yiruma music :mad:

Stream Recorder
12-05-2010, 07:10 AM
Another way:
How to use rtmpdump.exe as RTMPE downloading plugin for Replay Media Catcher 4

KoryLifyddhb
12-06-2010, 04:10 AM
Hi again, guys,
it looks like after MySpace Beta publication it become problematic to download music again.
I used following command line:

rtmpdump -r "rtmpe://l3fms-music02.myspacecdn.com:1935/myspace-music02" -a "myspace-music02" -f "WIN 10,2,161,23" -W "http://lads.myspacecdn.com/videos/MSMusicPlayer.swf" -p "http://www.myspace.com/437693023/" -C O:1 -C O:0 -y "mp3:272/std_5e68eda504d147d68edbf77959d0ede4" -o std_5e68eda504d147d68edbf77959d0ede4.flv

And I receive following error:
-----------------------------------------------------------------------
RTMPDump v2.3
(c) 2010 Andrej Stepanchuk, Howard Chu, The Flvstreamer Team; license: GPL
Connecting ...
WARNING: HandShake: Type mismatch: client sent 6, server answered 8
INFO: Connected...
ERROR: rtmp server sent error
ERROR: rtmp server requested close
----------------------------------------------------------------------

I got this command line directly from rtmpsrv.exe, so I am not sure that is possible cause of problem. Can anyone advice how to bypass this problem?

placebo
12-06-2010, 06:51 AM
i get the same error.
i dont mind.
i dont use myspace.

:)

( :D )

btw, you better post your test-url (the full webpage, and the particular song you've tested) otherwise nobody on this forum will feel tempted to assist