注册 登录  
 加关注
   显示下一条  |  关闭
温馨提示!由于新浪微博认证机制调整,您的新浪微博帐号绑定已过期,请重新绑定!立即重新绑定新浪微博》  |  关闭

熊猫正正的博客

熊猫正正的天空

 
 
 

日志

 
 

How to Download Youtube Video  

2013-09-15 09:43:54|  分类: Android开发与逆 |  标签: |举报 |字号 订阅

  下载LOFTER 我的照片书  |

In this tutorial I'll show you how to download youtube videos using youtube-dl

 


 

First you have to install youtube-dl with this command

 

sudo apt-get install youtube-dl

How to Download Youtube Video - 熊猫正正 - 熊猫正正的博客
and give in your password
How to Download Youtube Video - 熊猫正正 - 熊猫正正的博客

 


 

To download a video

1- Go to youtube and search the video you want to download

2- Copy the Video URL from the browser's navigation(address) bar (As shown in the image)

How to Download Youtube Video - 熊猫正正 - 熊猫正正的博客

3- Open up terminal and type in

 

youtube-dl {video URL}

~ Don't forget to replace '{video URL}' with the URL you copied from the browser's navigation(address) bar:
 
and your video will start downloading
 
~ But this will download video in some format that you don't want or it might be too heavy
 
For downloading video in format of your choice type in following
 

youtube-dl -F  {video URL}

~ Don't forget to replace '{video URL}' with the URL you copied from the browser's navigation(address) bar; as shown in the image below:

 

How to Download Youtube Video - 熊猫正正 - 熊猫正正的博客

4-  If you choose to download video in format of your choice. you have one last step to follow: that is choosing the format of your choice.

When you type in the command for downloading video with format or your choice it'll give you list of different options, showing the formats and resolutions of that video.

choose the code of one you like and type in following:

     

    youtube-dl -f  {format code} {video URL}

    ~ Don't forget to replace '{formate code}' with code of your choice and '{video URL}' with the URL you copied from the browser's navigation(address) bar; as shown in the image below:
     
     
    How to Download Youtube Video - 熊猫正正 - 熊猫正正的博客
     
    In the example shown in the image above. I've chosen video in flv format with resolution [240*400] and its code is '5' as you can see in the image.

    Easy...  Isn't it?? smiley
    All the best!! yes

    Tags: youtube, terminal, youtube-dl, video download,
    Created: 1 year ago.
    Last edited: 1 year ago.
    Reviewed: 1 year ago.
    Read 0 times.
      评论这张
     
    阅读(133)| 评论(0)
    推荐 转载

    历史上的今天

    评论

    <#--最新日志,群博日志--> <#--推荐日志--> <#--引用记录--> <#--博主推荐--> <#--随机阅读--> <#--首页推荐--> <#--历史上的今天--> <#--被推荐日志--> <#--上一篇,下一篇--> <#-- 热度 --> <#-- 网易新闻广告 --> <#--右边模块结构--> <#--评论模块结构--> <#--引用模块结构--> <#--博主发起的投票-->
     
     
     
     
     
     
     
     
     
     
     
     
     
     

    页脚

    网易公司版权所有 ©1997-2017