* sudo apt install python -y
* sudo apt install mpv -y
*
sudo curl -L https://yt-dl.org/downloads/latest/youtube-dl -o /usr/local/bin/youtube-dl && sudo chmod a+rx /usr/local/bin/youtube-dl
* youtube-dl all the things
Specific examples of how to use youtube-dl
*
youtube-dl https://www.youtube.com/watch?v=KK5KTQGuXSQ --format
("bestvideo[width>=1920]"/bestvideo)+bestaudio/best
--download-archive archive.txt --output
%%(uploader)s/%%(upload_date)s.%%(title)s.%%(id)s.%%(ext)s
--add-metadata --write-info-json --write-description --write-annotation
--write-thumbnail --merge-output-format mkv --ignore-errors
You can use my Shell Script here too
#!/bin/sh
echo this you put $1
CORE='youtube-dl'
FIRST='${1}'
SECOND='-f bestvideo+bestaudio/best -i --prefer-ffmpeg --write-sub --all-subs --convert-subs srt --add-metadata --write-description --write-annotations --write-thumbnail -v'
echo this is second $SECOND
echo this is command: ${CORE} ${1} $SECOND
${CORE} ${1} $SECOND
#end
Command syntax is $ sh youtube-dl.sh https://full-youtube-link
No comments:
Post a Comment