NAME
yt-download
- Download YouTube videos.
VERSION
Version 0.010
SYNOPSIS
yt-download -h|-?|--help
yt-download
yt-download url|id [url|id ...]
yt-download -f|--file filename
When passing only the id instead of the entire url it is needed to prefix every playlist id with p#
and every channel id with c#
.
Video ids are passed without any prefix.
The ids/urls can be entered after calling yt-download
- this is useful if urls contain shell metacharacters like &
.
The ids/urls can also be passed with a file: yt-download -f|--file filename
. The urls/id in the file have to be space separated.
DESCRIPTION
Download single YouTube videos or/and choose videos from playlists or/and channels.
Before the download the script shows some video info and lets you choose the video quality from the available qualities.
Instead of choosing the quality manually it is possible to set and use preferred qualities.
To set the different options call yt-download -h
.
It is recommended to work with an UTF encoding. Non mappable characters on the output are replaced with *
; in file names they are replaced with &#xNNN;
where NNN is the Unicode code point in a decimal number.
Options
HELP
Show this HELP text.
PATH
Show the path of the executed yt-download
, of the video directory, of the log file and of the configuration file.
UserAgent
Set the useragent.
If entered nothing the default useragent (Mozilla/5.0) is used.
If entered ""
the useragent is set to an empty string.
If entered a single space, the default LWP::UserAgent is used.
Overwrite
If enabled existing files are overwritten.
I not enabled yt-download
appends to partially downloaded file with the same name.
Set auto quality
Sets the auto quality (fmt) mode:
mode 0: choose always manually
mode 1: keep the first quality chosen for a playlist/channel for all videos of that playlist/channel if possible.
mode 2: keep the first chosen quality for all downloads if possible.
mode 3: use preferred qualities
Preferred qualities
Sets the preferred qualities (fmts)
Download retries
Sets the number of download retries.
Enable logging
Enables info logging.
Max info width
Sets the maximum width of video info output.
Auto width
Increase the info output width automatically if the info text is long.
Max filename length
Sets the maximum length of the filename. Filenames longer as the maximum length are truncated.
Digits for "k/s"
Sets the number of digits allocated for the "kilobyte per seconds" output.
AUTHOR
Kuerbis <cuer2s@gmail.com>
CREDITS
Essential parts of this application are using methods of the WWW::YouTube::Download module.
Thanks to the Perl-Community.de and the people form stackoverflow for the help.
LICENSE AND COPYRIGHT
Copyright (C) 2013-2014 Kuerbis.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl 5.10.0. For details, see the full text of the licenses in the file LICENSE.