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

rtmpdump is not compatible with MySpace?

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

KoryLifyddhb 10-31-2010 03:09 AM

rtmpdump is not compatible with MySpace?


 
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 03:57 PM

Re: rtmpdump is not compatible with MySpace?


 
the correct command on a winxp-sp3 machine is:
Code:

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:


i've uploaded the original file too for you to test and compare thanks.
ButterBeers and OWLS (8mins04secs).zip

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, for example!)

Stream Recorder 11-03-2010 01:33 AM

Re: rtmpdump is not compatible with MySpace?


 
Quote:

Originally Posted by placebo (Post 22704)
btw, there are more user-friendly ways to download myspace songs or videos.

using rtmpdump with Replay Media Catcher is user-friendly too:
http://stream-recorder.com/forum/sho...58&postcount=7

placebo 11-03-2010 02:24 AM

Re: rtmpdump is not compatible with MySpace?


 
rtmpdump can be combined/integrated with Replay Media Catcher. 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). StreamTransport works too with myspace but i am not sure it ST is based on rtmpdump.

KoryLifyddhb 11-06-2010 10:23 AM

Re: rtmpdump is not compatible with MySpace?


 
Thanks, people! It works now. So, the key for success was to use another flash version string in "-f" parameter.

placebo 11-06-2010 01:37 PM

Re: rtmpdump is not compatible with MySpace?


 
Quote:

Originally Posted by KoryLifyddhb (Post 22799)
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 12:19 AM

Re: rtmpdump is not compatible with MySpace?


 
Unix shell script for downloading music from MySpace with rtmpdump

Code:

#!/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 03:22 AM

Re: rtmpdump is not compatible with MySpace?


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

http://www.myspace.com/yiruma/music/songs/river-flows-in-you-23016885

dansrfe 12-04-2010 10:24 PM

Re: rtmpdump is not compatible with MySpace?


 
Can anyone list the detailed instructions via placebo's and KoryLifyddhb's method?

placebo 12-05-2010 02:07 AM

Re: rtmpdump is not compatible with MySpace?


 
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.


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:


All times are GMT -6. The time now is 06:22 PM.