Rip a video for archiving, from any site

youtube-dl -tci --write-info-json "https://www.youtube.com/watch?v=dQw4w9WgXcQ"
Download video files from a bunch of sites (here is a list https://rg3.github.io/youtube-dl/supportedsites.html). The options say: base filename on title, ignores errors and continue partial downloads. Also, stores some metadata into a .json file plz. Paste youtube users and playlists for extra fun. Protip: git-annex loves these files
Sample Output
 ~ ? youtube-dl -tci --write-info-json "https://www.youtube.com/watch?v=dQw4w9WgXcQ"                                                                                        23:08
[youtube] Setting language
[youtube] Confirming age
[youtube] dQw4w9WgXcQ: Downloading webpage
[youtube] dQw4w9WgXcQ: Downloading video info webpage
[youtube] dQw4w9WgXcQ: Extracting video information
[youtube] dQw4w9WgXcQ: Encrypted signatures detected.
[youtube] dQw4w9WgXcQ: Downloading js player vflPyRPNk
[youtube] dQw4w9WgXcQ: Downloading js player vflPyRPNk
[info] Writing video description metadata as JSON to: Rick Astley - Never Gonna Give You Up-dQw4w9WgXcQ.info.json
[download] Destination: Rick Astley - Never Gonna Give You Up-dQw4w9WgXcQ.mp4
[download]   6.2% of 16.24MiB at  1.13MiB/s ETA 00:13^C
ERROR: Interrupted by user
 ~ ? #fffFUUUU

1
By: wires
2014-10-13 21:18:34

What do you think?

Any thoughts on this command? Does it work on your machine? Can you do the same thing with only 14 characters?

You must be signed in to comment.

What's this?

commandlinefu.com is the place to record those command-line gems that you return to again and again. That way others can gain from your CLI wisdom and you from theirs too. All commands can be commented on, discussed and voted up or down.

Share Your Commands



Stay in the loop…

Follow the Tweets.

Every new command is wrapped in a tweet and posted to Twitter. Following the stream is a great way of staying abreast of the latest commands. For the more discerning, there are Twitter accounts for commands that get a minimum of 3 and 10 votes - that way only the great commands get tweeted.

» http://twitter.com/commandlinefu
» http://twitter.com/commandlinefu3
» http://twitter.com/commandlinefu10

Subscribe to the feeds.

Use your favourite RSS aggregator to stay in touch with the latest commands. There are feeds mirroring the 3 Twitter streams as well as for virtually every other subset (users, tags, functions,…):

Subscribe to the feed for: