Howto get the RTSP streaming URL of a YouTube Video

THIS SOLUTION DOES NO LONGER WORK!

You can get low quality streaming URLs of a YouTube video by parsing:

http://gdata.youtube.com/feeds/mobile/videos/VIDEO_ID

e.g.:

http://gdata.youtube.com/feeds/api//videos/fdJc1_IBKJA (XML)

One or more tags named “<media:content” with the attribute “type=’video/3gpp'” will contain an URL for a RTSP stream of the video.

For the above video that would be rtsp://r2—sn-4g57kuek.c.youtube.com/CiILENy73wIaGQmQKAHy11zSfRMYESARFEgGUgZ2aWRlb3MM/0/0/0/video.3gp

Tweet about this on TwitterShare on Google+Share on FacebookPin on PinterestShare on RedditShare on LinkedInShare on StumbleUponEmail this to someone

2 thoughts on “Howto get the RTSP streaming URL of a YouTube Video

  1. Hi,
    There are two rtsp links with format=1 and format=6 Among that which one i have to use for my Application?

    • Just try it. You will notice though that all streams offered are low-res. High-res streams are only available to mobile clients.

Please Post Your Comments & Reviews

Your email address will not be published or shared.