Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Get RTSP URL from Youtube

Tags:

I have a video URL like http://www.youtube.com/watch?v=AAAAAAAAAA

How can I get a RTSP URL for this video?

like image 825
Patrick Avatar asked Oct 29 '11 08:10

Patrick


People also ask

How do I create an RTSP URL?

You can also encode credentials into the URL by entering it prior to the IP address - for example. Example URL: rtsp://admin:[email protected]:554/Streaming/Channels/101 will bring up mainstream for channel 1, where admin is the username and 12345 is the password.

How do I make RTSP link for IP camera?

Most IP cameras can stream video using a RTSP URL request, check with your cameras manufacture to get the correct RTSP URL address for your model. Add IP camera to DS Admin using the stream URL: Open DS Admin (Start > All Programs > Pelco > DS Admin) Expand the VAU folder and click on the VAU name like a hyper link.


2 Answers

EDIT: Seems like Youtube stopped supporting this method.

Go to: http://gdata.youtube.com/feeds/api/videos/{video-id}

For example: If we want to get the RTSP link for this video: https://www.youtube.com/watch?v=rUDm2xatms4&list=PLA9nd26sR8HD62LClHOBU93tuDKnJsfKa&feature=player_detailpage#t=0

We'd use: http://gdata.youtube.com/feeds/api/videos/rUDm2xatms4

This will download an XML file for you. In there search for 'rtsp' and you'll get the full link.

Hope this helps.

like image 183
Sipty Avatar answered Jan 02 '23 14:01

Sipty


Go to this link, and Replace "VIDEOID" with the actual ID of the video you want:

http://m.youtube.com/add_favorite?v=VIDEOID

then right click the image of the video, and copy the link.

For example, if the video is http://youtube.com/watch?v=ABCDEFGHIJK, you would request http://m.youtube.com/add_favorite?v=ABCDEFGHIJK

The link is affectively permanent, but it will vary depending upon whether or not you are logged in and what preferences you have set when you request the page.

like image 22
Wazy Avatar answered Jan 02 '23 14:01

Wazy