Enviado em 30/09/2022 - 16:21h
Qual o melhor programa de baixar vídeos do youtube (e outros sites, se possível) pra Ubuntu e derivados ?
Enviado em 30/09/2022 - 16:21h
Enviado em 03/10/2022 - 14:26h
Enviado em 03/10/2022 - 17:24h
#[*****] fun
#command:
YTDL_CMD=yt-dlp
#yt-dlp help
yth()
{
echo "[*****] WRAPPERS
yt [URL..] -- download wrapper, restict filenames
yta [URL..] -- bestaudio only
ytb [URL..] -- bestaudio+bestvideo
ytc [URL..] -- medium quality (18) or worstaudio
yth [URL..] -- this help page
ytm [URL..] -- bestaudio and convert to mp3
yts [KEY_WORDS] -- search for keyword and play *audio* with mpv"
}
#simple download
#usage: yt [urls..]
yt()
{
"$YTDL_CMD" --restrict-filenames -o "%(title)s-%(id)s.%(ext)s" "$@"
}
#dl audio and convert to mp3 (MUSIC)
ytm()
{
"$YTDL_CMD" -k -f bestaudio --extract-audio --audio-format mp3 --audio-quality 0 \
--restrict-filenames --metadata-from-title '(?P<artist>.+?)-(?P<title>.+)' \
--embed-thumbnail --add-metadata -o "%(title)s.%(ext)s" "$@"
}
#dl general audio only stream (GENERAL AUDIO)
yta()
{
"$YTDL_CMD" -k -f bestaudio --restrict-filenames -o "%(title)s.%(ext)s" "$@"
}
#dl audio and video of best quality
ytb()
{
yt -f best "$@"
}
#dl video of medium quality (for cellphone)
#codec set to 18, works for most yt vids
ytc()
{
yt -f 18 "$@" || yt -f worstaudio "$@"
}
#https://github.com/xeronull/dotfiles/blob/master/.bashrc
# search and play youtube audio with preferred player
# how to use --- yt search_term_here
yts()
{
"$YTDL_CMD" -q -f bestaudio --max-downloads 1 --no-playlist --default-search ${2:-ytsearch} "$1" -o - |
mpv -vo null /dev/fd/3 3<&0 </dev/tty
}
Enviado em 03/10/2022 - 17:29h
Enviado em 04/10/2022 - 16:54h
Entre na sua conta para responder.