1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Hows To Download YouTube Video's On Server..

Discussion in 'YouTube' started by sarang44, Dec 21, 2011.

  1. sarang44

    sarang44 Newbie

    Joined:
    Jul 23, 2011
    Messages:
    3
    Likes Received:
    0
    Hi guys
    anyone knows how to download YouTube videos directly on server??
    I want to provide few videos to my users...
    I want to upload these videos on my server then i will upload it on media share, it so users can download it..
    Please help me if you know it..
    Thanx..
     
  2. blackhit

    blackhit Super Moderator Staff Member Jr. VIP Premium Member

    Joined:
    Jan 28, 2008
    Messages:
    2,402
    Likes Received:
    4,251
    Location:
    Dark Side Of The Moon
    Moved to YouTube...
     
  3. ezines

    ezines Power Member

    Joined:
    Jan 3, 2011
    Messages:
    712
    Likes Received:
    216
    Occupation:
    Online/Offline
    Location:
    Somewhere On Earth
    Try Keep Tube... I am using it to download videos from the web.
     
  4. Virus1

    Virus1 Supreme Member

    Joined:
    Dec 13, 2010
    Messages:
    1,326
    Likes Received:
    1,409
    Occupation:
    destroyer of worlds...
    Location:
    Welcome to Black Hat World........................
    Home Page:
    Please place a "?" at the end of your title.

    Its misleading the way you wrote it.

    sounds like you were going to show us something.


    Thanks
     
    • Thanks Thanks x 3
  5. Crewchief007

    Crewchief007 Power Member

    Joined:
    May 27, 2009
    Messages:
    731
    Likes Received:
    525
    Gender:
    Male
    Occupation:
    Internet Marketer
    Location:
    Online
    There are a ton of options...

    (a). If you are using Firefox, you can use the Add On extension called the, "DownloadHelper" at:

    Code:
    http://www.downloadhelper.net/
    (b). If you have Real Player installed on your machine, it gives you a push button option to download videos.

    Of course, both of those methods do you no good if you are downloading in bulk.

    (c). For bulk YT downloading you can try:

    Code:
    https://addons.mozilla.org/en-US/firefox/addon/bytubed-bulk-youtube-video-dow/
    And there are other options out there, just do your homework.
     
  6. omarijen

    omarijen Newbie

    Joined:
    Mar 16, 2011
    Messages:
    20
    Likes Received:
    0
    There are number of ways u can go for .. use IDM - internet download manager, it best suits with me. You better try this thing out dude its smooth and easy-to-go thing ;)
     
  7. TransparentNZT

    TransparentNZT Junior Member

    Joined:
    Sep 18, 2011
    Messages:
    168
    Likes Received:
    56
    Occupation:
    http://i40.tinypic.com/xl9jeh.png
    Location:
    Australia
    Keepvid is good for this too and available in many formats like FLV, MP4 whatever you want.
     
  8. Autumn

    Autumn Elite Member

    Joined:
    Nov 18, 2010
    Messages:
    2,197
    Likes Received:
    3,041
    Occupation:
    I figure out ways to make money online and then au
    Location:
    Spamville
    If you are doing it from your server then the best way is to use this simple Python script from the command line: youtube-dl

    Works great and regularly updated whenever Youtube changes something.
     
    • Thanks Thanks x 1
  9. sarang44

    sarang44 Newbie

    Joined:
    Jul 23, 2011
    Messages:
    3
    Likes Received:
    0
    hi friends thanx for your reply..
    many peoples told me hows to download it on pc...
    friends i know hows to download it on pc..
    i want to upload it to my hosting, without downloading on my pc...
    Autumn had got what i want..
    autumn will you tell it me in details...
     
  10. Autumn

    Autumn Elite Member

    Joined:
    Nov 18, 2010
    Messages:
    2,197
    Likes Received:
    3,041
    Occupation:
    I figure out ways to make money online and then au
    Location:
    Spamville
    There's nothing to it...

    1) Download the latest version of the youtube-dl script. Save it as youtube-dl.py and upload it to wherever you want on your server.

    2) To download a video, login to your server via ssh (using putty or whatever), navigate to the directory where you saved the youtube-dl script, and download the video by entering a command like:

    Code:
    python youtube-dl.py -o youroutputfile.mp4 http://www.youtubevideourl.com/
    
    where the filename you specify after the -o part is the filename you want to save the video as, and the youtubevideourl part would be something like http://www.youtube.com/watch?v=_DHEK9xJXvs ie. the actual video page url from Youtube. The script will fetch the youtube page, extract the video location and save the video. If it stops working, that means that Youtube has changed their page formatting and you have to download a new version of youtube-dl from the site.

    This is a great script because since it runs from the command line, it's very easy to incorporate it into your own scripts for doing batch downloads.
     
    • Thanks Thanks x 1
    Last edited: Dec 24, 2011
  11. sarang44

    sarang44 Newbie

    Joined:
    Jul 23, 2011
    Messages:
    3
    Likes Received:
    0
    thanx buddy, i havnt ssh now, i will get it soon and then will try it.
    thanx 4 your great support..
     
  12. peterbruce

    peterbruce Supreme Member

    Joined:
    Sep 1, 2010
    Messages:
    1,480
    Likes Received:
    374
    Occupation:
    Social Media & Internet Marketing
    Location:
    UK | US
    Home Page:
    savetube.com is another
     
  13. vishalgmistry

    vishalgmistry Regular Member

    Joined:
    Sep 25, 2008
    Messages:
    321
    Likes Received:
    520
    sorry for bumping old thread not so old but anyway....
    thanks autumn that was really helpful i am doing your method on SSH.
    but can you please help me to download youtube videos in mass.
    like i got many many videos needed to be download
    and most of them are getting deleted very fast.
    also send you a PM.

    Thanks in advance :)
     
  14. Autumn

    Autumn Elite Member

    Joined:
    Nov 18, 2010
    Messages:
    2,197
    Likes Received:
    3,041
    Occupation:
    I figure out ways to make money online and then au
    Location:
    Spamville
    Put your Youtube video urls in a text file called batch_urls.txt, one per line.

    Save this script as batch_youtube_download.php in the same directory as your text file.

    Code:
    <?php
    
    // Autumn's bulk Youtube vid download thing
    // BHW rulez OK
    
    // Absolute path to your python executable
    $path_to_python = '/usr/local/bin/python';
    
    // File where vid urls are stored
    $input_file = 'batch_urls.txt';
    
    
    /*****************************************************************************/
    
    // Make output dir if required
    if(!is_dir('vids')) {
    	mkdir('vids', 0755);
    }
    
    // Fetch each vid
    $lines = file($input_file);
    foreach($lines as $line) {
    	$url = trim(preg_replace("\n", '', $line));
    
    	passthru("$path_to_python youtube-dl.py -o vids/$i.flv $url");
    
    }
    
    ?>
    
    Vids will be saved in the vids/ directory.

    You will have to fill in the absolute path to your python executable, which you can find out by running the command `which python` from the command line.

    To run this script from the command line you would cd to the right directory and then use the command:

    Code:
    php -q batch_youtube_download.php
    
    If you want to launch the script and then log out and leave it running while you do something else, you would run it like:

    Code:
    nohup php -q batch_youtube_download.php > log.txt &
    
    I didn't test the script because I'm about to start eating chocolate biscuits and watching a movie but hopefully it works. Good luck!
     
    • Thanks Thanks x 1