How to download FLV videos

This might be tricky at first, or maybe the first few times, but once you get the hang of it, it's pretty quick.

For those vidoes you can't get the video IDs from, but have the episode IDs, try this:

In the URLs you posted mention the episode IDs(1721976, 1721977)

Append one of those IDs to the end of this URL:
Code:

http://www.mtv.com/global/music/videos/ajax/playlist.jhtml?id=

Now for the "wolf watch" show (1721977), it works as intended.
It brings up a playlist of the episode, of all 4 clips.
The video ID for each clip is listed at the bottom of the page:
1002049,1002050,1002051,1002053

You would append these video IDs to the end of this URL:
Code:

http://www.mtv.com/player/includes/mediaGen.jhtml?uri=mgid:uma:video:mtv.com:

(When you get your links from the XML pages, copy starting from /gps.alias/ to append to the final URL to watch/download)

MTV cuts their episodes into clips though, so in this case 4. So if you want to download this show you will have to download all 4 clips and join them together using some sort of mp4 joiner program to create a single seamless video.

Now for the actual episode (1721976), all I'm getting is a white page when I append the ID to the end of the URL above.
If I open up the browser console, I can see that the page is coming back "ACCESS DENIED". So they are intentionally blocking access to the playlist.

This would have been the easiest way since it would list all the video clips included in that episode, along with their video IDs, but there's another way if you are determined.

In Firefox press "CTRL + SHIFT + J"
This will open up the browser console log.

Now reload the video for the episode you want to rip.
In this case, teen wolf season 3 episode 18.
http://www.mtv.com/shows/teen_wolf/t...1976/playlist/

Now when the video begins to play ("previously on teen wolf..")
Open up the browser console log and look for a bunch of text that looks like this:

Code:

    events=event24,event25,event26,event28,event49,event15,,
    products=;;;;event25=0|event26=2477.181|event28=8
    v11=Show Clip - Full Episode :  Previously On_1002038
    v12=Teen Wolf :  Full Episodes
    c13=Previously On_1002038
    v17=NO-EVENT
    c21=Show Clip - Full Episode :  Previously On_1002038
    c22=Teen Wolf :  Full Episodes
    v26=Teen Wolf
    c27=NO-EVENT
    v27=mtv.com
    v28=Show Clip - Full Episode
    v29=NO-ARTIST
    c30=mgid:uma:video:mtv.com:1002038
    v31=networkEpisodePlayer
    v32=www.mtv.com
    v33=Previously On_1002038

Right away we see the video ID for the beginning of the episode. It's 1002038.
Since the episode is always cut into multiple clips and the video IDs are almost always numbered consecutively, we can reasonably guess that the very next clip in the episode will be 1002039.
So we test it out by checking it with this URL again:
Code:

http://www.mtv.com/player/includes/mediaGen.jhtml?uri=mgid:uma:video:mtv.com:

http://www.mtv.com/player/includes/mediaGen.jhtml?uri=mgid:uma:video:mtv.com:1002039

Sure enough, it loads the XML page with the available bitrates/resolutions.
Next you would check 1002040, 1002041, etc, etc. until you have the full episode.

The numbers are not always consecutive, so if you run into a "page not available" video ID, try the next one.
For example 1002040 is a legitimate video ID, 1002041 is not. 1002042 is. So it skips over 1002041 for some reason.

No comments:

Post a Comment