Get RTSP URL from Youtube

2019-01-22 12:50发布

问题:

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

How can I get a RTSP URL for this video?

回答1:

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.



回答2:

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.



回答3:

I made a javascript function that can give you the rtsp of any youtube video, you just have to set the original youtube url as param. Maybe it is what you are looking for.

Here's the github link. Hope this helps!



回答4:

Or you can always follow this simple 45 second video tutorial. And it will show you how to get the RTSP from any youtube video also.



回答5:

Use the below format and replace VIDEO_ID with your VIDEO's ID. To view the same in android(chrome) enable "Request desktop site". For more details see this article.

m.youtube.com/watch?v=VIDEO_ID&app=m&itct=CIYBEKQwGAAiEwjYqrOwmabLAhWII74KHWhnDt8yCmctaGlnaC1yY2g%3D&hl=en&client=mv-google



回答6:

According to my experience. 1) Browse the video.The url wud look like this http://www.youtube.com/watch?v=oHRpGg2_Yqs 2) After replacement of www with m http://m.youtube.com/watch?v=oHRpGg2_Yqs 3) Right click on the image now loaded in the browser during step 2 (dat wud be the rtsp addr)



回答7:

I have an old BlackBerry Bold 9900, and when using the stock web browser on the YouTube website and play a video, it plays via rstp (in the browser), so I can just go and copy the url out of the url bar. That's probably kind of an inconvenient method of finding it, but it works. Maybe if you changed your user agent to that of an old BlackBerry (mine is on os 6.x.x)?

Hope this is useful,

jBit

EDIT: Just figured out how to do this.
1. Install user agent switcher chrome extension here
2. Open it and go to "options"
3. Click the big green "New User-Agent" button
4. Put "Blackberry" in the name field
5. Paste this into the user-agent field: headers: 'User-Agent: BlackBerry9800/6.6.0.207 Profile/MIDP-2.0 Configuration/CLDC-1.1/UCWEB8.1.0.104/161/999' result: { browser: { name: 'UC Browser', version: '8.1', type: browser }, engine: { name: Gecko }, os: { name: 'BlackBerry OS', version: '6.6' }, device: { type: mobile, subtype: smart, manufacturer: RIM, model: 'BlackBerry Torch 9800' } } readable: 'UC Browser 8.1 on a RIM BlackBerry Torch 9800 running BlackBerry OS 6.6'
6. Press save
7. Go to youtube; notice the much older ui 8. Search for a video of your choice and click on it
9. There will be a box with a video thumbnail underneath which there will be a "Watch video" hyperlink
10. Right-click it and press "copy link address" 11. You now have a streamable rtsp link
12. Profit!



标签: url youtube rtsp