Getting RTSP Streams From the YouTube API Without Redirects


So if you want RTSP streams from the YouTube API you probably looked at our documentation for the format parameter and made a request like

http://gdata.youtube.com/feeds/api/videos?format=1

or

http://gdata.youtube.com/feeds/api/videos?format=6

or even

http://gdata.youtube.com/feeds/api/videos?format=1,6

But you may have noticed you get a lot of redirects, which may upset your RTSP player. What you should be doing is requesting the mobile projection. So your request should look like

http://gdata.youtube.com/feeds/mobile/videos?format=1

5 comments:

kusu said...

Can anyone tell me what is Google RTSP variant ? What are its applications ?

dominity said...

Hi. I've got question regarding youtube rtsp protocol and this post.

I'm using Java Client lib for Youtube API. I'm able to retrieve rtsp urls for certain video. But I can't play this video using QuickTime, WinAMP, Windows Media or VLC player. Nither using general url nor mobile url.

What's wrong with it?
Here is samples of rtsp stream url:
rtsp://rtsp2.youtube.com/CjcLENy73wIaLgkCo6RfCuxKFhMYDSANFEIQdGVzdC1kb21pbml0eS0wMUgGUglwbGF5bGlzdHMM/0/0/0/video.3gp
or for mobile
rtsp://vwvx.rtsp-youtube.l.google.com/CkQLENy73wIaOwkCo6RfCuxKFhMYDSANFC0xVu__MMmHmP_______wFCEHRlc3QtZG9taW5pdHktMDFIBlIGdmlkZW9zDA==/0/0/0/video.3gp.
Both those streams have you tube format '1'.
Here is link to media:
Media

I'm retrieving those locations from YouTubeMediaContent instance.
Could you explain me how should I handle that?

Also, there is no possibility to pass new post into you tube group. COuld anybody fix it?

Best regards, Alexander.

Muhammad Adil said...

did you get RTSP link for youtube video in HTML if yes kindly email me on madil.ssuet@gmail.com

kosovohp said...

Girl Xinh | Hot Girl | Cute Girl | Sexy Girl | Hot Girl Asian
Hot Girl | Lexi Belle | Sexy Girl | Cute Girl | Hot Asian Girl | Leah Dizon | Hot Girl Asian | Girl Xinh
socks proxy | socks5 | proxy free |proxy list

me said...

I've just read a tutorial about gdata here.
But just wondering how to get high-quality video? RTSP video seem too bad quality :(