ytget
文件大小: unknow
源码售价: 5 个金币 积分规则     积分充值
资源说明:Youtube getter
       _             _
 _   _| |_ __ _  ___| |_
| | | | __/ _` |/ _ \ __|
| |_| | || (_| |  __/ |_
 \__, |\__\__, |\___|\__|
 |___/v1.1|___/by slowbro
--------------------------
- Gets youtube videos
- Quality Selector (use number, based on: http://en.wikipedia.org/wiki/YouTube#Quality_and_codecs)
- Herpaderp

Requirements
-------------
- bash shell (or similar)
- curl
- a Youtube Link
- ffmpeg
 * recommended at least libfaac, mpeg-4, and libmp3lame. faac and mpeg-4 is required for most of the videos

Arguments
----------
-d ""  : display information about 
-f "" : pass args directly to ffmpeg
-h          : help
-i ""  : input link. use whole link IN QUOTES (eg "http://www.youtube.com/watch?v=U7mPqycQ0tQ " [gee gee gee gee baby baby baby])
-I "" : input file
-n          : don't encode: output raw youtube video
-o    : output file. extention decides format. (uses ffmpeg. usual extentions: .aac .mp3 .mpg .mp4 .avi .wmv .oog etc...)
-p    : youtube password (for age-restricted videos)
-q     : quality number. default is 18 (360p)
-Q          : be quiet (no output except for errors)
-r   : pass video bitrate to ffmpeg (ex: 600k, 1200k [def: 96k])
-R   : pass audio bitrate to ffmpeg (ex: 64k, 128k [def: 96k])
-u    : youtube username (for age-restricted videos)
-v          : verbose output: use for debugging. overrides -Q

Examples
---------
- Get quality 34 ("high quality"/480p) audio
    ./ytget -o some_audio.mp3 -i "http://www.youtube.com/watch?v=U7mPqycQ0tQ " -q34

- Get quality 5 ("low quality"/240p) video, and suppress output
    ./ytget -o /path/to/some_video.avi -i "http://www.youtube.com/watch?v=U7mPqycQ0tQ " -q5 -Q

- List details about a video
    ./ytget -d "http://www.youtube.com/watch?v=U7mPqycQ0tQ "

- Login and download an age-restricted video
    ./ytget -i "http://youtube.com/watch?v=m6VojYGrnpg " -u"someuser@gmail.com" -p"mypassword" -o "somefile.mp3"

Return Codes
-------------
0 : success
1 : youtube page get failed (did you supply the whole URL? in quotes?)
2 : youtube video get failed
3 : ffmpeg encode failed
4 : argument error
5 : ffmpeg codec error (codec not available)
6 : youtube login fail or missing user/pass

本源码包内暂不包含可直接显示的源代码文件,请下载源码包。