Мечта монтажника
Добавлено: 2008-04-05 6:59:26
Если есть силы бежать – кто поверит, что нет сил драться?!
https://forum.lissyara.su/
Код: Выделить всё
make install clean -C/usr/ports/www/youtube-dl
youtube-dl T62E-_pQt3c
mplayer T62E-_pQt3c.flv
Код: Выделить всё
$ youtube-dl T62E-_pQt3c
Retrieving video webpage... done.
Extracting URL "t" parameter... failed.
Error: unable to extract URL "t" parameter.
Try again several times. It may be a temporary problem.
Other typical problems:
* Video no longer exists.
* Video requires age confirmation but you did not provide an account.
* You provided the account data, but it is not valid.
* The connection was cut suddenly for some reason.
* YouTube changed their system, and the program no longer works.
Try to confirm you are able to view the video using a web browser.
Use the same video URL and account information, if needed, with this program.
When using a proxy, make sure http_proxy has http://host:port format.
Try again several times and contact me if the problem persists.
Код: Выделить всё
> youtube-dl T62E-_pQt3c
Retrieving video webpage... done.
Extracting URL "t" parameter... done.
Requesting video file... done.
Video data found at http://74.125.13.103/get_video?video_id=T62E-_pQt3c&origin=ash-v233.ash.youtube.com&signature=C7ADA96FB40FABE86CC6AA5D5F23FD4AFF2BA41F.8311F543E1842977FC1BE0AA54C8A18C96CEFD50&ip=93.80.205.195&ipbits=16&expire=1207451487&key=yt1&sver=2
Retrieving video data: 100.0% ( 5.93M of 5.93M) at 92.44k/s ETA 00:00 done.
Video data saved to T62E-_pQt3c.flv
Код: Выделить всё
> youtube-dl -h
Usage: youtube-dl [options] video_url
Options:
-h, --help print this help text and exit
-v, --version print program version and exit
-u USERNAME, --username=USERNAME
account username
-p PASSWORD, --password=PASSWORD
account password
-o FILE, --output=FILE
output video file name
-q, --quiet activates quiet mode
-s, --simulate do not download video
-t, --title use title in file name
-l, --literal use literal title in file name
-n, --netrc use .netrc authentication data
-g, --get-url print final video URL only
-2, --title-too used with -g, print title too
-f FORMAT, --format=FORMAT
append &fmt=FORMAT to the URL
-b, --best-quality alias for -f 18
Код: Выделить всё
if cmdl_opts.best_quality:
video_format = const_best_quality_format
video_extension = '.mp4'
else:
video_extension = '.flv'
...
> mplayer -really-quiet -identify T62E-_pQt3c.mp4
IDENTIFY: ID_AUDIO_ID=0
IDENTIFY: ID_VIDEO_ID=1
IDENTIFY: ID_FILENAME=T62E-_pQt3c.mp4
IDENTIFY: ID_DEMUXER=lavfpref
IDENTIFY: ID_VIDEO_FORMAT=avc1
IDENTIFY: ID_VIDEO_BITRATE=0
IDENTIFY: ID_VIDEO_WIDTH=480
IDENTIFY: ID_VIDEO_HEIGHT=360
IDENTIFY: ID_VIDEO_FPS=30.000
IDENTIFY: ID_VIDEO_ASPECT=0.0000
IDENTIFY: ID_AUDIO_FORMAT=255
IDENTIFY: ID_AUDIO_BITRATE=0
IDENTIFY: ID_AUDIO_RATE=44100
IDENTIFY: ID_AUDIO_NCH=2
IDENTIFY: ID_LENGTH=153.57
IDENTIFY: ID_SEEKABLE=1
IDENTIFY: ID_VIDEO_CODEC=ffh264
IDENTIFY: ID_AUDIO_BITRATE=128000
ID_AUDIO_RATE=44100
ID_AUDIO_NCH=2
IDENTIFY: ID_AUDIO_CODEC=faad
IDENTIFY: ID_VIDEO_ASPECT=1.3333