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

6 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...

The complex ability matching innovation utilized by Upwork ensures that each organization or scout is coordinated with the ideal QA analyzer independent. The cycle for finding open ability on Upwork simplifies it and helpful to find qualified QA competitors. The Mobilunity programming improvement group is framed after an extremely cautious and expert technique that considers the task's sort, particulars, and numerous different viewpoints. The main thought in the advancement cycle for remote groups is the product's quality. Mobilunity generally incorporates a profoundly gifted QA engineer educated with the cutting edge QA instruments and robotization systems in the far off improvement groups to keep an excellent and strong security of the item>> qa tester part time remote