sudo apt-get install youtube-dl # sudo yum install youtube-dl .... # 다운로드 youtube-dl http://www.youtube.com/watch?v=ykp8fxHWcVo [youtube] ykp8fxHWcVo: Downloading webpage [youtube] ykp8fxHWcVo: Downloading video info webpage [youtube] ykp8fxHWcVo: Extracting video information [download] Destination: She Has Two Left Feet!-ykp8fxHWcVo.f137.mp4 [download] 100% of 34.39MiB in 00:24 [download] Destination: She Has Two Left Feet!-ykp8fxHWcVo.f140.m4a [download] 100% of 1.27MiB in 00:01 [ffmpeg] Merging formats into "She Has Two Left Feet!-ykp8fxHWcVo.mp4" Deleting original file She Has Two Left Feet!-ykp8fxHWcVo.f137.mp4 (pass -k to keep) Deleting original file She Has Two Left Feet!-ykp8fxHWcVo.f140.m4a (pass -k to keep) # 다운로드 가능한 목록 보기 youtube-dl -F http://www.youtube.com/watch?v=ykp8fxHWcVo [youtube] ykp8fxHWcVo: Downloading webpage [youtube] ykp8fxHWcVo: Downloading video info webpage [youtube] ykp8fxHWcVo: Extracting video information [info] Available formats for ykp8fxHWcVo: format code extension resolution note 140 m4a audio only DASH audio 129k , m4a_dash container, mp4a.40.2@128k, 1.27MiB 160 mp4 256x144 144p 112k , avc1.4d400c, 15fps, video only, 1.03MiB 133 mp4 426x240 240p 252k , avc1.4d4015, 30fps, video only, 2.30MiB 134 mp4 640x360 360p 604k , avc1.4d401e, 30fps, video only, 4.26MiB 135 mp4 854x480 480p 1108k , avc1.4d401f, 30fps, video only, 8.60MiB 136 mp4 1280x720 720p 2215k , avc1.4d401f, 30fps, video only, 17.19MiB 137 mp4 1920x1080 1080p 4147k , avc1.640028, 30fps, video only, 34.39MiB 17 3gp 176x144 small , mp4v.20.3, mp4a.40.2@ 24k 36 3gp 320x180 small , mp4v.20.3, mp4a.40.2 43 webm 640x360 medium , vp8.0, vorbis@128k 18 mp4 640x360 medium , avc1.42001E, mp4a.40.2@ 96k 22 mp4 1280x720 hd720 , avc1.64001F, mp4a.40.2@192k (best) # 17번 다운로드 youtube-dl -f 17 http://www.youtube.com/watch?v=BlXaGWbFVKY # video.list 파일내용 일괄 다운로드, vidio.list 에는 동영상 주소목록을 저장하면 된다. youtube-dl -a video.list
반응형
'os > Linux' 카테고리의 다른 글
Backup rsync (0) | 2018.07.24 |
---|---|
Linux Movie to gif (0) | 2018.06.27 |
동시접속 한계 조정 (0) | 2018.01.09 |
Illegal Instruction Cent6 (0) | 2017.07.14 |
Linux 취약점 검사 Lynis (0) | 2017.06.30 |