From 0cc4aa96fe6257fe5b14ccfd1abccfc4eadef7a3 Mon Sep 17 00:00:00 2001 From: Dimitris Zlatanidis Date: Tue, 30 Aug 2016 05:05:23 +0300 Subject: network/youtube-dl: Updated for version 2016.08.28. Signed-off-by: Dimitris Zlatanidis --- network/youtube-dl/youtube-dl.1 | 62 +++++++++++++++++++++++++++++++++++++++-- 1 file changed, 60 insertions(+), 2 deletions(-) (limited to 'network/youtube-dl/youtube-dl.1') diff --git a/network/youtube-dl/youtube-dl.1 b/network/youtube-dl/youtube-dl.1 index f7097ecc02..73ae62c2f7 100644 --- a/network/youtube-dl/youtube-dl.1 +++ b/network/youtube-dl/youtube-dl.1 @@ -861,11 +861,19 @@ videos under \f[C]Movies\f[] directory in your home directory: .IP .nf \f[C] +#\ Lines\ starting\ with\ #\ are\ comments + +#\ Always\ extract\ audio \-x + +#\ Do\ not\ copy\ the\ mtime \-\-no\-mtime + +#\ Use\ this\ proxy \-\-proxy\ 127.0.0.1:3128 + +#\ Save\ all\ videos\ under\ Movies\ directory\ in\ your\ home\ directory \-o\ ~/Movies/%(title)s.%(ext)s -#\ Lines\ starting\ with\ #\ are\ comments \f[] .fi .PP @@ -1442,7 +1450,7 @@ mplayer (http://mplayerhq.hu/) or mpv (https://mpv.io/) to be installed. .SS I have downloaded a video but how can I play it? .PP Once the video is fully downloaded, use any video player, such as -mpv (https://mpv.io/), vlc (http://www.videolan.org) or +mpv (https://mpv.io/), vlc (http://www.videolan.org/) or mplayer (http://www.mplayerhq.hu/). .SS I extracted a video URL with \f[C]\-g\f[], but it does not play on another machine / in my webbrowser. @@ -1587,6 +1595,15 @@ youtube\-dl\ "http://www.youtube.com/watch?v=\-wNyEUrxzFU" .PP Use the \f[C]\-\-cookies\f[] option, for example \f[C]\-\-cookies\ /path/to/cookies/file.txt\f[]. +.PP +In order to extract cookies from browser use any conforming browser +extension for exporting cookies. +For example, +cookies.txt (https://chrome.google.com/webstore/detail/cookiestxt/njabckikapfpffapmjgojcnbfjonfjfg) +(for Chrome) or Export +Cookies (https://addons.mozilla.org/en-US/firefox/addon/export-cookies/) +(for Firefox). +.PP Note that the cookies file must be in Mozilla/Netscape format and the first line of the cookies file must be either \f[C]#\ HTTP\ Cookie\ File\f[] or @@ -1605,6 +1622,47 @@ Another use case is working around CAPTCHA (https://en.wikipedia.org/wiki/CAPTCHA) some websites require you to solve in particular cases in order to get access (e.g. YouTube, CloudFlare). +.SS How do I stream directly to media player? +.PP +You will first need to tell youtube\-dl to stream media to stdout with +\f[C]\-o\ \-\f[], and also tell your media player to read from stdin (it +must be capable of this for streaming) and then pipe former to latter. +For example, streaming to vlc (http://www.videolan.org/) can be achieved +with: +.IP +.nf +\f[C] +youtube\-dl\ \-o\ \-\ "http://www.youtube.com/watch?v=BaW_jenozKcj"\ |\ vlc\ \- +\f[] +.fi +.SS How do I download only new videos from a playlist? +.PP +Use download\-archive feature. +With this feature you should initially download the complete playlist +with \f[C]\-\-download\-archive\ /path/to/download/archive/file.txt\f[] +that will record identifiers of all the videos in a special file. +Each subsequent run with the same \f[C]\-\-download\-archive\f[] will +download only new videos and skip all videos that have been downloaded +before. +Note that only successful downloads are recorded in the file. +.PP +For example, at first, +.IP +.nf +\f[C] +youtube\-dl\ \-\-download\-archive\ archive.txt\ "https://www.youtube.com/playlist?list=PLwiyx1dc3P2JR9N8gQaQN_BCvlSlap7re" +\f[] +.fi +.PP +will download the complete \f[C]PLwiyx1dc3P2JR9N8gQaQN_BCvlSlap7re\f[] +playlist and create a file \f[C]archive.txt\f[]. +Each subsequent run will only download new videos if any: +.IP +.nf +\f[C] +youtube\-dl\ \-\-download\-archive\ archive.txt\ "https://www.youtube.com/playlist?list=PLwiyx1dc3P2JR9N8gQaQN_BCvlSlap7re" +\f[] +.fi .SS Can you add support for this anime video site, or site which shows current movies for free? .PP -- cgit v1.2.3