AN-NAJAH NATIONAL UNIVERSITY
FACULITY OF ENGINEERING
DEPARTMENT OF COMPUTER
COURSE (OPERATING SYSTEM)
LINUXyoutube-dl is a small command-line program to download videos from YouTube.com.
Install youtube-dl in Ubuntusudo aptitude install youtube-dl
This will complete the installation.
Using youtube-dlUsage instructions are easy. Use youtube-dl followed by a video URL or identifier.
youtube-dl Exampleyoutube-dl “https://www.youtube.com/watch?v=foobar”The video will be saved to the file foobar.flv in that example. As
YouTube.com videos are in Flash Video format, their extension should be
flv.Check
[ندعوك للتسجيل في المنتدى أو التعريف بنفسك لمعاينة هذا الرابط] simple guide to convert .flv files to .mpg
More usage tipsYou can change the file name of the video using the -o option, like in
youtube-dl -o vid.flv “https://www.youtube.com/watch?v=foobar”.Some videos require an account to be downloaded, mostly because
they’re flagged as mature content. You can pass the program a username
and password for a YouTube.com account with the -u and -p options, like
youtube-dl -u [myusername=on your computer] -p [mypassword=on your computer ....not in web site] “https://www.youtube.com/watch?v=foobar”.