
If you the video has subtitles, it be downloaded along with its sub-titles. To download the videos with actual sub-titles uploaded by the owner, run: $ youtube-dl -write-srt -sub-lang en Destination: Dr Wayne Dyer - Improve Your Life Using The Wisdom Of The Writing video subtitles to: Dr Wayne Dyer - Improve Your Life Using The Wisdom Of The Age-2hsWBXsNHnQ.en.vtt 2hsWBXsNHnQ: Looking for automatic captions 2hsWBXsNHnQ: Extracting video information 2hsWBXsNHnQ: Downloading video info webpage Sample output: 2hsWBXsNHnQ: Downloading webpage Let us download the following YouTube video with automatically generated subtitle files. Let us go ahead and see how to download videos. Youtube-dl downloader has been installed now. $ sudo chmod a+rx /usr/local/bin/youtube-dl

Or, $ sudo wget -O /usr/local/bin/youtube-dlĪfter downloading youtube-dl program, run the following command to install it. $ sudo curl -L -o /usr/local/bin/youtube-dl

First download the youtube-dl script using curl or wget as shown below.
