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

7 comments:

Unknown said...

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

Unknown 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

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

augustwalker said...

On the off chance that you are searching for the answer for fix your different Garmin gives at that point profit our Garmin Gps Troubleshoot Support. Associate with our specialized group..

JacobHarman said...
This comment has been removed by the author.
John Fei said...

Attract Group's ERP software development services are exceptional in their ability to streamline business processes and improve efficiency. Their team of experts combines technical expertise with a deep understanding of business needs to create customized solutions that meet clients' unique requirements. By leveraging cutting-edge technologies, Attract Group delivers innovative and reliable ERP software solutions that drive growth and success for businesses across industries. Collaboration with Attract Group ensures a seamless integration of ERP systems that optimize operations and enhance overall performance.