Results 1 to 12 of 12
  1. #1
    Join Date
    Jan 2009
    Posts
    12
    Rep Power
    0

    Default download youtube video

    I want to download you tube videos using java code.
    Please help.


    Thanks
    Lalit

  2. #2
    PhHein's Avatar
    PhHein is offline Senior Member
    Join Date
    Apr 2009
    Location
    Germany
    Posts
    1,430
    Rep Power
    7

    Default

    Help with what? Where is your code? What goes Wrong?

    How to ask good questions
    Math problems? Call 1-800-[(10x)(13i)^2]-[sin(xy)/2.362x]
    The Ubiquitous Newbie Tips

  3. #3
    Join Date
    Jan 2009
    Posts
    12
    Rep Power
    0

    Default

    I am searching the java code to download you tube video. I do not have idea. Because i did not find any URL provided by youtube to download videos.

  4. #4
    FON
    FON is offline Senior Member
    Join Date
    Dec 2009
    Location
    Belgrade, Serbia
    Posts
    368
    Rep Power
    5

  5. #5
    Join Date
    Jan 2009
    Posts
    12
    Rep Power
    0

    Default

    I did not find any method in API to download video. I have a youtube URL . By this URL i want to download video on my local file system as a file. So that i can view any time.

  6. #6
    gcalvin is offline Senior Member
    Join Date
    Mar 2010
    Posts
    953
    Rep Power
    5

    Default

    Quote Originally Posted by lalit.wientech View Post
    I did not find any method in API to download video. I have a youtube URL . By this URL i want to download video on my local file system as a file. So that i can view any time.
    Yeah, YouTube doesn't want you to do that, so they're not going to make it easy for you. You will not find a simple API to do this. You may find some utilities somewhere on the web that can do it, but it's not easy, so don't expect anyone to give you "teh codez".

    -Gary-

  7. #7
    Join Date
    Jan 2009
    Posts
    12
    Rep Power
    0

    Default

    Thanks gcalvin
    for fast reply

  8. #8
    Join Date
    Jan 2009
    Posts
    12
    Rep Power
    0

    Default download youtube videos

    can we convert youtube url to a downloadable link? With this link we can easily download using a java program

    Thanks
    Lalit

  9. #9
    FallenBlade is offline Member
    Join Date
    Mar 2010
    Posts
    31
    Rep Power
    0

    Default

    As I don't think your a programmer judging by your posts, I'm going to go out on a limb and assume your looking for something like this:
    YouTube Downloader - Free software downloads and software reviews - CNET Download.com

    You just want a program/site to download youtube videos, you don't want to write the program yourself, correct?

    If so, just google "download youtube" a number of sites will come up, some you have to sign up for, or download a program, but just keep trying them until you find one that's free and easy.

    As I said, the link I posted above seems to be decent, although I've not tried it myself and was just the result of a quick search.

  10. #10
    Join Date
    Jan 2009
    Posts
    12
    Rep Power
    0

    Default you tube video download

    Your guess is wrong.
    I know there are many applications which can download youtube videos.

    I am creating a java application in which i need to download youtube video from URL
    (for e.g. YouTube - Chick Wipes Out On Small Bridge Video )
    But this link is not going to help in downloading.

    So i just asked for the downloadable link that browser's flash player uses for video straming.
    Because if we have the link we can easily write java code to get data from link.
    But nobody replied about link.

    But somehow i managed to get that link.

    http://www.youtube.com/get_video?video_id=GaIisdS7Hcc &t=vjVQa1PpcFNvYztOV7XptWTdbku-cD3jMivuEGqlPzk%3D &fmt=13

    It is clear from the link above. We need following parameter.
    video_id = We can easily get from the Youtube url.
    t = You tube provides a token for each video request. You can get it from html source.
    fmt = A number which describes which format you want . 13 is for 3GP [Optional Parameter]


    Now i still have a problem
    I am using HttpURLConnection for getting video from the link described above. I successfully saved data to a file on my disk ( in a .3gp file) .

    I am not able to play this file. I think this issue is related to video encoding.

    Can anybody help in this regard ?

    Thanks in Advance.

  11. #11
    FON
    FON is offline Senior Member
    Join Date
    Dec 2009
    Location
    Belgrade, Serbia
    Posts
    368
    Rep Power
    5

    Default

    Quote Originally Posted by lalit.wientech View Post
    fmt = A number which describes which format you want . 13 is for 3GP [Optional Parameter]


    Now i still have a problem
    I am using HttpURLConnection for getting video from the link described above. I successfully saved data to a file on my disk ( in a .3gp file) .

    I am not able to play this file. I think this issue is related to video encoding.

    Can anybody help in this regard ?

    Thanks in Advance.
    fmt is optional so why do you work with 3gp at all?

    How do you want to play a file? from any player?

    Is your app just for downloading?

    Or you want to play it using Java? JMF?

  12. #12
    Join Date
    Jan 2009
    Posts
    12
    Rep Power
    0

    Default

    yeah fmt is optional
    Default format is flv.
    When i submit the URL to browser. It asks to save file. I can download and play.
    But when downloading using program. I am not able to play file with message "The file contains no playable stream"
    I am trying to play in VLC.

    fmt does not matters. I just want to save video for later use.

Similar Threads

  1. Replies: 2
    Last Post: 06-17-2009, 11:24 AM
  2. Download JDK 1.5
    By Nick15 in forum New To Java
    Replies: 4
    Last Post: 01-01-2009, 03:10 AM
  3. Replies: 1
    Last Post: 04-22-2008, 11:06 AM
  4. What jdk do I download?
    By padutch2 in forum New To Java
    Replies: 3
    Last Post: 11-29-2007, 04:28 AM
  5. I could download JDK 1.5
    By Albert in forum New To Java
    Replies: 2
    Last Post: 07-13-2007, 03:36 PM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •