Cli youtube-dl
תוכן עניינים |
install
curl -L https://yt-dl.org/downloads/latest/youtube-dl -o /usr/local/bin/youtube-dl
curl: (60) SSL certificate problem: certificate has expired
I download via the brower
curl youtube-dl SSL certificate problem: certificate has expired
apt-get install fail
sudo apt-get install youtube-dl
https://github.com/rg3/youtube-dl/blob/master/README.md#readme
youtube-dl ERROR: Unable to download webpage: <urlopen error [Errno 8] _ssl.c:510: EOF occurred in violation of protocol>
[youtube] Setting language WARNING: unable to set language: <urlopen error [Errno 8] _ssl.c:510: EOF occurred in violation of protocol> [youtube] BvYjjLNpdhs: Downloading webpage ERROR: Unable to download webpage: <urlopen error [Errno 8] _ssl.c:510: EOF occurred in violation of protocol>
play list
--flat-playlist Do not extract the videos of a playlist, only list them.
--mark-watched Mark videos watched (YouTube only)
--max-downloads NUMBER Abort after downloading NUMBER files
--yes-playlist Download the playlist, if the URL refers to a video and a playlist.
--download-archive FILE Download only videos not listed in the archive file. Record the IDs of all downloaded videos in it.
/usr/local/bin/youtube-dl --flat-playlist https://www.youtube.com/watch?v=k-LL2jnV4 -F
/usr/local/bin/youtube-dl \
-cf 'bestvideo+140' \ --yes-playlist --download-archive to-download-archive --mark-watched \ https://www.youtube.com/playlist?list=PLVsw2mcZEPzwIRFqPuVqtrGwgTLQ
upgrade update
/usr/local/bin/youtube-dl --version sudo /usr/local/bin/youtube-dl --update
youtube-dl ERROR: unable to download latest version youtube-dl update source
change from github to gitlab
youtube-dl update from github to gitlab
sync delete from disk removed
youtube-dl sync playlist dicretory
Delete mp3 file in local folder, if respective video is removed from the playlist
https://github.com/chewett/youtube-playlist-sync
youtube-dl file create date
set file timestamp to download date rather than server/published date
--no-mtime Do not use the Last-modified header to set
the file modification time
youtube-dl download as mp3
https://www.tecmint.com/download-mp3-song-from-youtube-videos/
/usr/local/bin/youtube-dl -x --audio-format mp3 https://www.youtube.com/playlist?list=XYZ......
Control output sound
youtube-dl select audio format to use
https://superuser.com/questions/846842/how-to-get-best-quality-audio-using-youtube-dl
https://github.com/rg3/youtube-dl/issues/1752
/usr/local/bin/youtube-dl https://www.youtube.com/watch?v=k-LL2KCjnV4 -F
/usr/local/bin/youtube-dl youtube-dl -f 137+249 https://www.youtube.com/watch?v=k-LL2KCjnV4
/usr/local/bin/youtube-dl https://www.youtube.com/watch?v=k-LL2KCjnV4 -cf 249
it download only the audio !
/usr/local/bin/youtube-dl youtube-dl -f 248+171 https://www.youtube.com/watch?v=k-LL2KCjnV4
for 32PHA4100/98 subtitle Philips 4000 series Slim LED TV 32PHA4100 use Mp3 is 140 171 not so good
Format selection examples
https://github.com/rg3/youtube-dl/blob/master/README.md#format-selection-examples