Difference between revisions of "User talk:Vxbinaca"

From Archiveteam
Jump to navigation Jump to search
(Created page with "=How I archive YouTube videos= The system I currently have down is this: Go through my subs and set it to notify me via email of new uploads. This makes a target channel easi...")
 
Line 12: Line 12:


$ sudo apt-get install python-pip atomicparsley
$ sudo apt-get install python-pip atomicparsley
$ sudo -H pip install --upgrade pip youtube_dl
$ sudo -H pip install --upgrade pip youtube_dl



Revision as of 22:07, 3 September 2015

How I archive YouTube videos

The system I currently have down is this: Go through my subs and set it to notify me via email of new uploads. This makes a target channel easier to maintain it's item on archive.org.

First we gotta set up YouTube DL. We're using Linux/Mac for this, and sourcing the youtube-dl binary from the python repository Pip.

Setting up Youtube-dl

Do not install youtube-dl from Ubuntu/Apple repository. It's probably stale, and may lack key features we need, or buggy and not updated by the maintainer.

We'll use the python Pip repository instead. We'll also be assuming you're using Ubuntu.

$ sudo apt-get install python-pip atomicparsley

$ sudo -H pip install --upgrade pip youtube_dl

Using a config

Youtube-dl allows you to use a config to set default behavior. This is useful instead of aliasing in .bashrc because pipes or screen instances or trickle do not recognize aliases when running a command prepended with screen or trickle.

$ echo "t --console-title --no-overwrite --call-home --title --continue --write-info-json --write-description --write-thumbnail --write-annotations -f bestvideo+bestaudio" > ~/.config/youtube-dl.conf

Upgrading Youtube-dl

$ sudo -H pip install --upgrade youtube_dl

The upgrade schedule for the script is bi-weekly, so try to check for updates once every week or so, or daily if you're really thirsting for a fix to a problem you've reported. I've seen examples of multiple updates being pushed in a week.

Bandwidth management

Youtube-dl will use 100 percent of your bandwidth by default. To slow down a rip so you can do other things with your connection, use trickle to shape the traffic.

$ sudo apt-get install trickle

Example usage, downloading a channel with a maximum download bandwidth of 100kbps:

$ trickle -sd 100 youtube-dl [channel URL]