Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Downloading You tube videos? [closed]

I want to download you tube videos programatically (using Java). How can i convert you tube video link to a downloadable URL.

Browser plays youtube videos with following code.

I tried downloading from URL http://www.youtube.com/v/OdAE3cWlmHw but it is not returning video bytes.

Thanks Lalit

like image 209
lalit Avatar asked Mar 23 '10 08:03

lalit


1 Answers

Youtube API allows you to search & list videos and obtain the mediaplayer URL, so that you can play videos within your web page

Youtube Data API

Youtube Java Data API - Search and List Videos

Youtube Java Data API - Getting Started

It does not allow you to download the byte content of videos - because Google is protecting their own rights and the rights of the content creators.

Google API Terms of Service
Prohibitions:

Your API Client will not, and You will not encourage or create functionality for Your users or other third parties to:
...

  • promote separately the audio or video components of any YouTube audiovisual content made available through the YouTube API;
  • access any portion of any YouTube audiovisual content by any means other than use of a YouTube player or other video player expressly authorized by YouTube;
  • store copies of YouTube audiovisual content;
    ...
like image 133
Glen Best Avatar answered Sep 23 '22 21:09

Glen Best