User:Vxbinaca

From Archiveteam
Revision as of 00:55, 16 August 2016 by Vxbinaca (talk | contribs) (YTPMV channels I am responsible for)
Jump to: navigation, search

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 ffmpeg h.264 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 prepend with screen or trickle.

echo "--download-archive ~/.ytdlarchive --retries 100 --no-overwrites --call-home --continue --write-info-json --write-description --write-thumbnail --write-annotations --all-subs --sub-format srt --convert-subs srt --write-sub --add-metadata -f bestvideo+bestaudio/best --merge-output-format 'mkv' --prefer-ffmpeg --embed-thumbnail" > ~/.config/youtube-dl/config

To temporarily ignore these changes use --ignore-config. To revert back to normal, rm ~/.config/youtube-dl/config.

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

Use the -r flag to limit bandwidth consumption. Example:

youtube-dl -r 100K [URL]

To rip a video or channel at 100kbps.


Ripping private Google Drive videos

Okay so you got a video shared with you and the owner doesn't alllow downloading. while this method doesn't get a 1:1 copy of the file it's still quite good and much better than nothing or screen capturing the file.

This involves just just a few steps. You'll need:

This downloads the actual video.

We need to get your Google cookie. We need this because you need to be logged in to see the video, or more accurately youtube-dl needs to be logged in to see the page so it can extract the video.

Ready?

Get the link

Go to your email and find the share notification email. This is the easiest method of getting the link we need to feed into youtube-dl.

It should look something like this:

https://drive.google.com/file/d/0B_vK3fbXlLEFM19MQl9nT3dBVEE/view

Put that somewhere you can get back to because you'll need it later.

Getting your Google drive cookie

You need to be signed in so Youtube-dl can see the video to extract it. In order for Youtube-dl to sign in we need to use your cookie. With Cookies.txt installed, open a new tab and head to drive.google.com. A new button appeared when you installed cookies.txt. Click this button and it will give you the contents of your cookie. Copy and paste this into a file on your desktop.

I'm calling mine drive-cookie.txt.

Ripping the video

Put youtube-dl on your desktop along with the coolie text file. open cmd or your command line program, navigate to your desktop. Remember that video link sent in the email when the item was shared with you? We need that too.

Run:

youtube-dl.exe --continue --cookies drive-cookie.txt -f best https://drive.google.com/file/d/0B_vK3fbXlLEFM19MQl9nT3dBVEE/view

This will use the cookie to sign in to your google account, and download that video.


YTPMV channels I am responsible for

https://www.youtube.com/channel/UCvZZHwxq9uj77wbGlO7Rczw/videos
https://www.youtube.com/channel/UCpCTOtPvRNUBq1c5PJsStPA/videos
https://www.youtube.com/user/koronx3/videos
https://www.youtube.com/channel/UCQXBpkU8A0pn71fPJyhgP1Q/videos
https://www.youtube.com/user/NamaCream777/videos
https://www.youtube.com/user/AIuminum//videos
https://www.youtube.com/user/ImpossibleCarl69/videos
https://www.youtube.com/user/plrusek/videos
https://www.youtube.com/user/DooLovesAniki/videos
https://www.youtube.com/playlist?list=PL-kAE-3kF5o0m3cz6ZHWntNR6HYZSpIaq
https://www.youtube.com/channel/UCpie9Kij6EuF3OhsQBhymWg/videos
https://www.youtube.com/playlist?list=PLYOSiyKLIdnmJL3Sm1Qu6wLjat7cYxo6_/videos
https://www.youtube.com/channel/UCafRFwStpUhQwIT_I__h0zQ/videos
https://www.youtube.com/channel/UC_Myky_uYdlZCrEMEdRaphw/videos
https://www.youtube.com/channel/UCpWYzyfnuPYNOA_uOMYn0YQ/videos
https://www.youtube.com/channel/UCZUjaZF8z2gP2e7PCM7GJ4g/videos
https://www.youtube.com/channel/UC_nuIy26G_UK5NwS3jV_WUA/videos
https://www.youtube.com/channel/UCbxcvmmFw0C8pwxlBxCuz7Q/videos
https://www.youtube.com/channel/UCKYsgyAfp0fgYzNAEhm5Hhw/videos
https://www.youtube.com/channel/UCGecL_FNZfmUL4EJUnpdCCA/videos
https://www.youtube.com/channel/UCwge5tFhVS0J33FC7P8RF-g/videos
https://www.youtube.com/channel/UC8G33AC5XICbav-9RAUUw0w/videos
https://www.youtube.com/channel/UCeCnfHT1hOtExh0NqS2yMHA/videos
https://www.youtube.com/channel/UCGW4_g81RJuMB27vaJLPlZQ/videos
https://www.youtube.com/channel/UCUS1y5SVc0a9sfVqMPU4FsA/videos
https://www.youtube.com/channel/UCIsRUGyDjrse3bB29ZBbowQ/videos
https://www.youtube.com/channel/UClQXWA7QgpUdPTQpqIQGwQg/videos
https://www.youtube.com/channel/UCr0twRvFP3FZ-oUVdAIUZpw/videos
https://www.youtube.com/channel/UC3bDRVah9bTLzy3sDDhW-Yw/videos
https://www.youtube.com/user/thepowerofdiarrhea
https://www.youtube.com/channel/UCY6ejtGi9OlBW3mX3qzKThw/videos
https://www.youtube.com/user/GLaDOS996/videos
https://www.youtube.com/channel/UCzz1z7yCXVD7yHH8bah30CQ/videos
https://www.youtube.com/channel/UCaAYS3n0BrmlXi4HgglBURg/videos
https://www.youtube.com/user/LolZombiez/videos
https://www.youtube.com/channel/UCXa2CG12n2hr5PFWJY_9A2g/videos
https://www.youtube.com/channel/UCY6ejtGi9OlBW3mX3qzKThw/videos
https://www.youtube.com/channel/UC5dj1pFnPO3gWy-KBYWtUPQ/videos
https://www.youtube.com/channel/UCrBlt_ybdqlUOqwhRJGh4ww/videos
https://www.youtube.com/channel/UCGW4_g81RJuMB27vaJLPlZQ/videos
https://www.youtube.com/channel/UCvtvQxfHF8y2sripRL83OPA/videos
https://www.youtube.com/user/rozels100/videos
https://www.youtube.com/channel/UCnS2IQMd9F7ItAXYA7X9irQ/videos
https://www.youtube.com/user/mirrorimage98/videos
https://www.youtube.com/user/UltraRemixer/videos https://www.youtube.com/channel/UCmiUMQI7NJ2gpt1OEA6h4Yg/videos
https://www.youtube.com/channel/UCaFyyyWdXtWuc-PTBB4W2UQ/videos
https://www.youtube.com/channel/UC4JEl2dMSkFUCXnYvh1lIzw/videos
https://www.youtube.com/playlist?list=PLC07CC9B1C8DD7987/videos
https://www.youtube.com/user/frannintendo64/videos
https://www.youtube.com/user/omniputance/videos
https://www.youtube.com/channel/UCgjFos1M7BbJFEYAxxLENOg/videos
https://www.youtube.com/user/MrHeavyfaceUK/videos
https://www.youtube.com/user/LifeWaste1618/videos
https://www.youtube.com/user/TheJinxuiable/videos
https://www.youtube.com/channel/UCfw3FZ0FZgF5326FBZfFtPg
https://www.youtube.com/user/TheFirippu/videos
https://www.youtube.com/channel/UCFPYD1vzgKs-7DmozP3v3-A/videos
https://www.youtube.com/channel/UCuYdLPbYq0070zk6mantnYQ/videos
http://www.youtube.com/soulstrike2205/videos
http://www.youtube.com/xlethxleth/videos
http://www.youtube.com/thehamarejun/videos
https://www.youtube.com/user/soulstrike2205/videos
https://www.youtube.com/channel/UC_FbqXQxS3FBMdlzW4oICNQ/videos
https://www.youtube.com/channel/UC5dj1pFnPO3gWy-KBYWtUPQ/videos
https://www.youtube.com/playlist?list=PLhBMQIk9Z4Y8-UbTMz-3BNYuCbAehTr0L
https://www.youtube.com/channel/UCoqCyc91UnN363zodoHMJ6g/videos
http://www.youtube.com/user/KinkyAlts/videos
https://www.youtube.com/channel/UCvtvQxfHF8y2sripRL83OPA/videos
http://www.youtube.com/channel/UCgKNW6u37ViOOrWVQ9V5b1Q/videos
http://www.youtube.com/channel/UCcim0mFybMB9sSzvd5W9NDQ/videos