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

a dumb need help for rtmpdump

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

spock 03-23-2012 04:41 PM

a dumb need help for rtmpdump


 
Hi folks,
guess this is a common question but ... after reading most of your posts I'm more confused than ever. I'd need something like as "manual for dummies".
Uh, BTW, I'm a MacOsX user (snow leopard).

Basically I'd like to download videos from mtvondemand. Stuff as "my life as Liz" or similar.
I have tried to understand your procedure but it looks arabic to me. I have most of the programs commonly used to see/download (VLC, various downloaders, ...) but none of them is good to download any of the above episodes.

I'm willing to learn so it would be useful a step by step method to download "tester episode"
I will then try to do follow your instructions applying them to other ondemand episodes/series to became more confident and learn the basics.
Remember that I can use the "terminal" only if you specify exactly what I should write on it. Also what you consider obvious.

can any of you do it (in the simplestest/smoothest way possible) ?

thanks a lot folks. Much appreciated

svnpenn 03-23-2012 05:26 PM

Re: a dumb need help for rtmpdump


 
. .

chap 03-24-2012 12:43 AM

Re: a dumb need help for rtmpdump


 
Quote:

Originally Posted by spock (Post 42443)

Basically I'd like to download videos from mtvondemand. Stuff as "my life as Liz" or similar.

I'm willing to learn so it would be useful a step by step method to download "tester episode"

you can still download your videos with no problems rtmpdump
Code:

E:\>rtmpdump
-r "rtmpe://cp10740.edgefcs.net:1935/ondemand" -a "ondemand?ovpfv=2.1.4" -f "WIN
 11,1,102,62" -W "http://media.mtvnservices.com/player/prime/mediaplayerprime.1.
12.1.swf" -p "http://www.mtv.com/videos/my-life-as-liz-season-2-ep-12-new-beginn
ings/1663049/playlist.jhtml" -C Z: -y "mp4:mtvnorigin/gsp.originmusicstor/sites/
mtv.com/shows/my_life_as_liz/212/mt_mlal212_rt235485_s1_640x360_1200_m30.mp4" -o
 mt_mlal212_rt235485_s1_640x360_1200_m30.flv
RTMPDump v2.4 GIT-2012-03-08 (Compiled by KSV)
(c) 2010 Andrej Stepanchuk, Howard Chu, The Flvstreamer Team; license: GPL
Connecting ...
WARNING: HandShake: Type mismatch: client sent 6, server answered 9
INFO: Connected...
Starting download at: 0.000 kB
INFO: Metadata:
INFO:  duration              322.06
INFO:  moovPosition          32.00
INFO:  width                640.00
INFO:  height                360.00
INFO:  videocodecid          avc1
INFO:  audiocodecid          mp4a
INFO:  avcprofile            77.00
INFO:  avclevel              30.00
INFO:  aacaot                2.00
INFO:  videoframerate        29.97
INFO:  audiosamplerate      22050.00
INFO:  audiochannels        2.00
INFO: trackinfo:
INFO:  length                9648000.00
INFO:  timescale            29970.00
INFO:  language              eng
INFO: sampledescription:
INFO:  sampletype            avc1
INFO:  length                7101440.00
INFO:  timescale            22050.00
INFO:  language              eng
INFO: sampledescription:
INFO:  sampletype            mp4a
2954.116 kB / 20.02 sec (6.2%)


Bahman 03-24-2012 02:35 AM

Re: a dumb need help for rtmpdump


 
chap, He/She is using Mac OS and can't use rtmpexplorer so as to get parameters for other episodes!!:)

spock, Here is an instruction for downloading them at highest quality and writing rtmpdump's script manually:
Go to the webpage and find "Flash player embedded path":
Code:

http://media.mtvnservices.com/mgid:uma:videolist:mtv.com:1663049
Paste the link in browser and then you will be redirected to alternative url:
Code:

http://media.mtvnservices.com/player/prime/mediaplayerprime.1.12.1.swf?uri=mgid:uma:videolist:mtv.com:1663049&type=normal&ref=None&geo=GB&group=music&&CONFIG_URL=http%3a%2f%2fwww.mtv.com%2fplayer%2fembed%2fAS3%2fconfiguration.jhtml%3furi%3dmgid%3auma%3avideolist%3amtv.com%3a1663049%26type%3dnormal%26ref%3dNone%26geo%3dGB%26group%3dmusic%26ver%3dprime
Decode that url and then find CONFIG_URL:
Code:

http://media.mtvnservices.com/player/prime/mediaplayerprime.1.12.1.swf?uri=mgid:uma:videolist:mtv.com:1663049&type=normal&ref=None&geo=GB&group=music&&CONFIG_URL=http://www.mtv.com/player/embed/AS3/configuration.jhtml?uri=mgid:uma:videolist:mtv.com:1663049&type=normal&ref=None&geo=GB&group=music&ver=prime
Paste Config url in browser again, you will see (I've removed unneeded parts):
Code:

<title>
<b>My Life As Liz (Season 2) | Ep. 12 | New Beginnings </b>
</title>
<description>
When Liz recieves a note from a mystery man she has to decide if her true feelings lie with Bryson or Louis.
</description>
<link>
http://www.mtv.com/videos/my-life-as-liz-season-2-ep-12-new-beginnings/1663049/playlist.jhtml
</link>
<item>
<title>Tour</title>
<description>
Louis tells Liz that he's going on tour for three months and Sully tries to push Bryson back together with Liz.
</description>
<pubDate>Wed, 04 May 2011 00:00:00 EDT</pubDate>
<link>
http://www.mtv.com/videos/my-life-as-liz-season-2-ep-12-new-beginnings/1663049/playlist.jhtml#vid=647981
</link>
.
.
.
<media:player url="http://media.mtvnservices.com/mgid:uma:videolist:mtv.com:1663049/cp~instance%3Dfullepisode%26autoPlay%3Dfalse%26id%3D1663049%26uri%3Dmgid%3Auma%3Avideolist%3Amtv.com%3A1663049"/>
<media:content type="text/xml" medium="video" isDefault="true" duration="322" url="http://www.mtv.com/player/includes/mediaGen.jhtml?uri=mgid:uma:video:mtv.com:647981&id=1663049&vid=647981&ref=None&viewUri=mgid:uma:videolist:mtv.com:1663049"/>
</media:group>

.
.
.
<item><title>The Note</title>
.
.
.
<media:content type="text/xml" medium="video" isDefault="true" duration="299" url="http://www.mtv.com/player/includes/mediaGen.jhtml?uri=mgid:uma:video:mtv.com:647982&id=1663049&vid=647982&ref=None"/>
</media:group>
.
.
.
<title>Amazing</title>
.
.
.
<media:content type="text/xml" medium="video" isDefault="true" duration="295" url="http://www.mtv.com/player/includes/mediaGen.jhtml?uri=mgid:uma:video:mtv.com:647983&id=1663049&vid=647983&ref=None"/>
</media:group>
.
.
.
<title>I Love You</title>
.
.
.
<media:content type="text/xml" medium="video" isDefault="true" duration="346" url="http://www.mtv.com/player/includes/mediaGen.jhtml?uri=mgid:uma:video:mtv.com:647984&id=1663049&vid=647984&ref=None"/>
</media:group>

As you see, for each title, there is a media:content tag!! So, try to find them and then paste them in browser(for example 1st one):
Code:

http://www.mtv.com/player/includes/mediaGen.jhtml?uri=mgid:uma:video:mtv.com:647981&id=1663049&vid=647981&ref=None&viewUri=mgid:uma:videolist:mtv.com:1663049
Code:

<item>
<rendition cdn="level3" duration="322" width="384" height="216" type="video/mp4" bitrate="400">
<src>
rtmpe://viacommtvstrmfs.fplive.net/viacommtvstrm/gsp.originmusicstor/sites/mtv.com/shows/my_life_as_liz/212/mt_mlal212_rt235485_s1_384x216_400_m30.mp4
</src>
</rendition>
<rendition cdn="level3" duration="322" width="512" height="288" type="video/mp4" bitrate="750">
<src>
rtmpe://viacommtvstrmfs.fplive.net/viacommtvstrm/gsp.originmusicstor/sites/mtv.com/shows/my_life_as_liz/212/mt_mlal212_rt235485_s1_512x288_750_m30.mp4
</src>
</rendition>
<rendition cdn="level3" duration="322" width="640" height="360" type="video/mp4" bitrate="1200">
<src>
rtmpe://viacommtvstrmfs.fplive.net/viacommtvstrm/gsp.originmusicstor/sites/mtv.com/shows/my_life_as_liz/212/mt_mlal212_rt235485_s1_640x360_1200_m30.mp4
</src>
</rendition>
<rendition cdn="level3" duration="322" width="768" height="432" type="video/mp4" bitrate="1700">
<src>
rtmpe://viacommtvstrmfs.fplive.net/viacommtvstrm/gsp.originmusicstor/sites/mtv.com/shows/my_life_as_liz/212/mt_mlal212_rt235485_s1_768x432_1700_m30.mp4
</src>
</rendition>
<rendition cdn="level3" duration="322" width="960" height="540" type="video/mp4" bitrate="2200">
<src>
rtmpe://viacommtvstrmfs.fplive.net/viacommtvstrm/gsp.originmusicstor/sites/mtv.com/shows/my_life_as_liz/212/mt_mlal212_rt235485_s1_960x540_2200_m31.mp4
</src>
</rendition>
<rendition cdn="level3" duration="322" width="1280" height="720" type="video/mp4" bitrate="3500">
<src>
rtmpe://viacommtvstrmfs.fplive.net/viacommtvstrm/gsp.originmusicstor/sites/mtv.com/shows/my_life_as_liz/212/mt_mlal212_rt235485_s1_1280x720_3500_h32.mp4
</src>
</rendition>

Right now, you are ready to write script:
Code:

rtmpdump -r "rtmpe://viacommtvstrmfs.fplive.net/viacommtvstrm" -a "viacommtvstrm" -W "http://media.mtvnservices.com/player/prime/mediaplayerprime.1.12.1.swf" -y "mp4:gsp.originmusicstor/sites/mtv.com/shows/my_life_as_liz/212/mt_mlal212_rt235485_s1_1280x720_3500_h32.mp4" -o mt_mlal212_rt235485_s1_1280x720_3500_h32.flv
Code:

RTMPDump v2.4
(c) 2010 Andrej Stepanchuk, Howard Chu, The Flvstreamer Team; license: GPL
Connecting ...
WARNING: HandShake: Type mismatch: client sent 6, server answered 9
INFO: Connected...
Starting download at: 0.000 kB
INFO: Metadata:
INFO:  duration              322.06
INFO:  moovPosition          32.00
INFO:  width                1280.00
INFO:  height                720.00
INFO:  videocodecid          avc1
INFO:  audiocodecid          mp4a
INFO:  avcprofile            100.00
INFO:  avclevel              32.00
INFO:  aacaot                2.00
INFO:  videoframerate        29.97
INFO:  audiosamplerate      22050.00
INFO:  audiochannels        2.00
INFO: trackinfo:
INFO:  length                9648000.00
INFO:  timescale            29970.00
INFO:  language              eng
INFO: sampledescription:
INFO:  sampletype            avc1
INFO:  length                7101440.00
INFO:  timescale            22050.00
INFO:  language              eng
INFO: sampledescription:
INFO:  sampletype            mp4a
21.000 kB / 1.07 sec (0.3%)

;)

spock 03-24-2012 07:28 AM

Re: a dumb need help for rtmpdump


 
Bahman
thanks.
Guess there is another basic problem: when I paste any of the three url into a browser it appears an image (Liz's) followed by a full screen message: sorry we are unable to offer this video to users in your region.

This was my mistake. I gave you the link of the US mtv site to be sure you could provide a "working example". I should however be able to substitute that link with anyone suitable for my area (italy). I guess that the coding system is exactly the same.

You should be able to see this link although you'll have problems in playing any of the episodes.
http://ondemand.mtv.it/serie-tv/my-life-as-liz
i.e. the first episode link is

Bottom line: how should I insert any of the links I may be interested in, in the protocol you use.

thanks for your patience

Bahman 03-24-2012 09:09 AM

Re: a dumb need help for rtmpdump


 
I think it's better if you use US proxies or VPNs!! Because:
1. The quality of Videos that are stored in US MTV are far better (HD 1280x720)!!
2. The instruction of MTV.it is a little bit hard!!:D

Anyway, again Go to the webpage and find "Flash player embedded path":
Code:

http://media.mtvnservices.com/mgid:uma:videolist:mtv.it:688423
Paste the link in browser and then you will be redirected to alternative url:
Code:

http://media.mtvnservices.com/player/prime/mediaplayerprime.1.9.0.swf?uri=mgid:uma:videolist:mtv.it:688423&type=normal&ref=None&geo=IT&group=intl&&CONFIG_URL=http%3a%2f%2fmedia.mtvnservices.com%2fpmt%2fe1%2fplayers%2fmgid%3auma%3avideolist%3amtv.it%3a%2fcontext1%2fconfig.xml%3furi%3dmgid%3auma%3avideolist%3amtv.it%3a688423%26type%3dnormal%26ref%3dNone%26geo%3dIT%26group%3dintl%26
Decode that url and then find CONFIG_URL:
Code:

http://media.mtvnservices.com/player/prime/mediaplayerprime.1.9.0.swf?uri=mgid:uma:videolist:mtv.it:688423&type=normal&ref=None&geo=IT&group=intl&&CONFIG_URL=http://media.mtvnservices.com/pmt/e1/players/mgid:uma:videolist:mtv.it:/context1/config.xml?uri=mgid:uma:videolist:mtv.it:688423&type=normal&ref=None&geo=IT&group=intl&
Paste Config url in browser again, you will see (I've removed unneeded parts):
Code:

<player>
<feed>
http://intl.esperanto.mtvi.com/www/xml/fullepisode.jhtml?uri={uri}&version=as3&keyValues=partner%3Dviral
</feed>
<config>

Add the URI string to that blue highlighted url:
Code:

http://intl.esperanto.mtvi.com/www/xml/fullepisode.jhtml?uri=
+
Code:

mgid:uma:videolist:mtv.it:688423
=
Code:

http://intl.esperanto.mtvi.com/www/xml/fullepisode.jhtml?uri=mgid:uma:videolist:mtv.it:688423
if you have FireFox 11 or Chrome, you can browse that final URL! but with IE, you can't!! If you are insist on opening that on IE, you should use Media RSS reader/Feed Validator!!

Then, You can see the IDs of each part of Vid (the IDs are: 688432, 688433, 688434, 688435)!! but all of them shows only one rtmpe url!! So, Use one of them so as to see it:
Code:

http://intl.esperanto.mtvi.com/www/xml/media/mediaGen.jhtml?uri=mgid:uma:video:mtv.it:688432
Code:

<item startTime="0.040" endTime="190.920">
<rendition cdn="akamai" duration="190" width="384" height="288" type="video/mp4" bitrate="400">
<src>
rtmpe://cp24806.edgefcs.net/ondemand/mtviestor/_!/intlod/it/ontv/my_life_as_liz/it_mylifeasliz_212_384x288_400_m30.mp4
</src>
</rendition>
<rendition cdn="akamai" duration="190" width="448" height="336" type="video/mp4" bitrate="600">
<src>
rtmpe://cp24806.edgefcs.net/ondemand/mtviestor/_!/intlod/it/ontv/my_life_as_liz/it_mylifeasliz_212_448x336_600_m30.mp4
</src>
</rendition>
<rendition cdn="akamai" duration="190" width="480" height="360" type="video/mp4" bitrate="900">
<src>
rtmpe://cp24806.edgefcs.net/ondemand/mtviestor/_!/intlod/it/ontv/my_life_as_liz/it_mylifeasliz_212_480x360_900_m30.mp4
</src>
</rendition>
<rendition cdn="akamai" duration="190" width="576" height="432" type="video/mp4" bitrate="1200">
<src>
rtmpe://cp24806.edgefcs.net/ondemand/mtviestor/_!/intlod/it/ontv/my_life_as_liz/it_mylifeasliz_212_576x432_1200_m30.mp4
</src>
</rendition>
<rendition cdn="akamai" duration="190" width="640" height="480" type="video/mp4" bitrate="1600">
<src>
rtmpe://cp24806.edgefcs.net/ondemand/mtviestor/_!/intlod/it/ontv/my_life_as_liz/it_mylifeasliz_212_640x480_1600_m30.mp4
</src>
</rendition>

As you see, Vids aren't HQ!!

Anyway, rtmpdump pattern script:
Code:

rtmpdump -r "rtmpe://cp24806.edgefcs.net/ondemand/" -a "ondemand/" -W "http://media.mtvnservices.com/player/prime/mediaplayerprime.1.10.8.swf" -y "mp4:mtviestor/_!/intlod/it/ontv/my_life_as_liz/it_mylifeasliz_212_640x480_1600_m30.mp4" -o it_mylifeasliz_212_640x480_1600_m30.flv
Code:

RTMPDump v2.4
(c) 2010 Andrej Stepanchuk, Howard Chu, The Flvstreamer Team; license: GPL
Connecting ...
WARNING: HandShake: Type mismatch: client sent 6, server answered 9
INFO: Connected...
Starting download at: 0.000 kB
INFO: Metadata:
INFO:  duration              1267.12
INFO:  moovPosition          36.00
INFO:  width                640.00
INFO:  height                480.00
INFO:  videocodecid          avc1
INFO:  audiocodecid          mp4a
INFO:  avcprofile            77.00
INFO:  avclevel              30.00
INFO:  aacaot                2.00
INFO:  videoframerate        25.00
INFO:  audiosamplerate      44100.00
INFO:  audiochannels        2.00
INFO: trackinfo:
INFO:  length                3167900.00
INFO:  timescale            2500.00
INFO: sampledescription:
INFO:  sampletype            avc1
INFO:  length                55878656.00
INFO:  timescale            44100.00
INFO: sampledescription:
INFO:  sampletype            mp4a
INFO:  length                600.00
INFO:  timescale            600.00
INFO: sampledescription:
INFO:  length                600.00
INFO:  timescale            600.00
INFO: sampledescription:
64.062 kB / 0.37 sec (0.0%)

Last thing, I couldn't understand your last question!!! ;)

spock 03-31-2012 11:34 AM

Re: a dumb need help for rtmpdump


 
hi,
tough week but now I'm back.

(btw I'm also using Firefox, … or Chrome or Opera or Safari. I don't think IE is anymore in use for Apple-ers)

I'm now following carefully your instruction



Ok, I need an url decoder.
I use to get the "esperanto" url.

Did it.

FF asks me now if I want subscribe to the feed with bookmarkLive or NetNewsWire or …

However, I can see "my life as Liz - 2x12 - nuovi inizi - part 1/4"

In each of them there are "multimedia files" corresponding to Hi and Lo (resolution, I guess)

Code:

http://www.mtv.it/www/xml/flv/flvgen.jhtml?vid=688432&hiLoPref=hi
Code:

http://www.mtv.it/www/xml/flv/flvgen.jhtml?vid=688432&hiLoPref=lo
I see, I should copy now the number related to the part I'm interested in, into
Code:

http://intl.esperanto.mtvi.com/www/xml/fullepisode.jhtml?uri=mgid:uma:videolist:mtv.it:xxxx
did it. The browser tell me that the resolution is
384x288_400_m30.mp4

urgh!!

I don't understand how you got the
code:
<item startTime="0.040" endTime="190.920">
...
</src>
</rendition>

however, once I understand how to do it, I'll copy
rtmpe://viacommtvstrmf...500_h32.mp4

and … write a script !?!?

bottom line … I can do it all … except for the very last passage.:confused:

thanks :) :) :) :)


mmh I should also learn how to find "working" US proxies or vpn (what! :D )

Bahman 03-31-2012 11:44 AM

Re: a dumb need help for rtmpdump


 
^HotSpot Shield or AdvOr!! ;)

spock 04-02-2012 02:53 AM

Re: a dumb need help for rtmpdump


 
HotSpot Shield is used for VPNs. Correct?
It seems however the only choice because AdvOr is available for Win, only.

thanks

when you have time, will you be so kind to explain me the last two steps of the procedure? As you can see I'm "manually" stacked at:

<item startTime="0.040" endTime="190.920"> :confused:


as I said I'm totally new in this kind of approaches-
:D

thanks a lot

spock 04-12-2012 03:38 PM

Re: a dumb need help for rtmpdump


 
Please,
any feedback to my last post? :confused:
I'm stacked in the last part of the procedure. What should I do exactly? Remember that I'm a Mac user.
thanks a lot folks :)


Quote:

Originally Posted by Bahman (Post 42464)
...

if you have FireFox 11 or Chrome, you can browse that final URL! but with IE, you can't!! If you are insist on opening that on IE, you should use Media RSS reader/Feed Validator!!

Then, You can see the IDs of each part of Vid (the IDs are: 688432, 688433, 688434, 688435)!! but all of them shows only one rtmpe url!! So, Use one of them so as to see it:
Code:

http://intl.esperanto.mtvi.com/www/xml/media/mediaGen.jhtml?uri=mgid:uma:video:mtv.it:688432
Code:

<item startTime="0.040" endTime="190.920">
<rendition cdn="akamai" duration="190" width="384" height="288" type="video/mp4" bitrate="400">
<src>
rtmpe://cp24806.edgefcs.net/ondemand/mtviestor/_!/intlod/it/ontv/my_life_as_liz/it_mylifeasliz_212_384x288_400_m30.mp4
</src>
</rendition>
<rendition cdn="akamai" duration="190" width="448" height="336" type="video/mp4" bitrate="600">
<src>
rtmpe://cp24806.edgefcs.net/ondemand/mtviestor/_!/intlod/it/ontv/my_life_as_liz/it_mylifeasliz_212_448x336_600_m30.mp4
</src>
</rendition>
<rendition cdn="akamai" duration="190" width="480" height="360" type="video/mp4" bitrate="900">
<src>
rtmpe://cp24806.edgefcs.net/ondemand/mtviestor/_!/intlod/it/ontv/my_life_as_liz/it_mylifeasliz_212_480x360_900_m30.mp4
</src>
</rendition>
<rendition cdn="akamai" duration="190" width="576" height="432" type="video/mp4" bitrate="1200">
<src>
rtmpe://cp24806.edgefcs.net/ondemand/mtviestor/_!/intlod/it/ontv/my_life_as_liz/it_mylifeasliz_212_576x432_1200_m30.mp4
</src>
</rendition>
<rendition cdn="akamai" duration="190" width="640" height="480" type="video/mp4" bitrate="1600">
<src>
rtmpe://cp24806.edgefcs.net/ondemand/mtviestor/_!/intlod/it/ontv/my_life_as_liz/it_mylifeasliz_212_640x480_1600_m30.mp4
</src>
</rendition>

As you see, Vids aren't HQ!!

Anyway, rtmpdump pattern script:
Code:

rtmpdump -r "rtmpe://cp24806.edgefcs.net/ondemand/" -a "ondemand/" -W "http://media.mtvnservices.com/player/prime/mediaplayerprime.1.10.8.swf" -y "mp4:mtviestor/_!/intlod/it/ontv/my_life_as_liz/it_mylifeasliz_212_640x480_1600_m30.mp4" -o it_mylifeasliz_212_640x480_1600_m30.flv
Code:

RTMPDump v2.4
(c) 2010 Andrej Stepanchuk, Howard Chu, The Flvstreamer Team; license: GPL
Connecting ...
WARNING: HandShake: Type mismatch: client sent 6, server answered 9
INFO: Connected...
Starting download at: 0.000 kB
INFO: Metadata:
INFO:  duration              1267.12
INFO:  moovPosition          36.00
INFO:  width                640.00
INFO:  height                480.00
INFO:  videocodecid          avc1
INFO:  audiocodecid          mp4a
INFO:  avcprofile            77.00
INFO:  avclevel              30.00
INFO:  aacaot                2.00
INFO:  videoframerate        25.00
INFO:  audiosamplerate      44100.00
INFO:  audiochannels        2.00
INFO: trackinfo:
INFO:  length                3167900.00
INFO:  timescale            2500.00
INFO: sampledescription:
INFO:  sampletype            avc1
INFO:  length                55878656.00
INFO:  timescale            44100.00
INFO: sampledescription:
INFO:  sampletype            mp4a
INFO:  length                600.00
INFO:  timescale            600.00
INFO: sampledescription:
INFO:  length                600.00
INFO:  timescale            600.00
INFO: sampledescription:
64.062 kB / 0.37 sec (0.0%)

Last thing, I couldn't understand your last question!!! ;)



All times are GMT -6. The time now is 04:04 AM.