Youtube-dl best software ever made

youtube-dl best software ever made

Attached: ssss.jpg (794x566, 131K)

Other urls found in this thread:

your-link-here
gist.github.com/ubone/562d43d59f6ddcc
twitter.com/NSFWRedditImage

fag

I'm at the point where I download YouTube videos I want to watch with YouTube-dl on my VPS and stream them directly to my phone or TV via media server. Ever since the YouTube app started serving me two freaking ads before playing the actual video I decided enough is enough.

It also downloads stuff from a shitload more places.

How do you do it in the console? Can you do it on windows?

i used to have a firefox extension that let me right click on a youtube link and open it with mpv, but it stopped working after a firefox update

yep, you can run it in windows from the console
youtube-dl -F your-link-here

It downloads youtube webpage and parses it and shit.
You don't need GUI to do all that shits.

Thanks famalam, I'm gonna suck your dick

Agree that it's pretty fucking based. Along with rclone it's fighting the good fight against shitty control by branded platforms.

No need to all the hyperbole. Just say "I find it very useful."

Attached: trash.png (642x362, 48K)

#!/usr/bin/env bash

# Take unique entries from clipboard into file given as arg
# this clears the clipboard to begin with
# Usage: clipwrite file.txt

printf "" | xclip -selection clipboard;
while [[ $(xclip -o -selection clipboard) != "end" ]];
do
xclip -o -selection clipboard >> $1;
# N.B, xclip does not put a newline after each clipping, uniq ensures the
# file ends in a new line s. t. every new append is on a new line.
uniq $1 $1.clipwrite_tmp;
mv $1.clipwrite_tmp $1;

sleep 1;
done;


and

#!/usr/bin/env sh

# using clipwrite; grabs unique lines from clipboard, treats as urls (no
# validation), and runs youtube-dl with them.
# Usage: youtube-clip [height]

# Take 1st argument as height if exists
if [ $# -eq 1 ]; then
YTB_HEIGHT=$1
else
YTB_HEIGHT=480
fi

YTB_DATE=$(date -I)
YTB_DIR=~/Videos/yt/$YTB_DATE/

# make directory if not exists
if [ ! -d $YTB_DIR ]; then
mkdir $YTB_DIR
fi

cd $YTB_DIR
clipwrite urls.txt
youtube-dl -a urls.txt -f 'bestvideo[height

the windows equivalent with the 4k video downloader
which is really a rip off of youtube dl it cant rip an entire channel without a sub obviously but a crack/serial is easy to find anyways

>#!/usr/bin/env sh
your distro is retarded if it doesn't have sh in /bin

it does but I got in the habit of this after writing python scripts for the cli

On my distro I have two hotkeys setup that call two scripts in my bin folder. One script calls mpv with ytdl options that will try to play video with a height

oh sweet, I'll look into that. the use case for my scripts are to quickly make a list of videos to grab when I'm out using free wifi somewhere cause I am le poor.

have you heard of newpipe?

N O G U I

Lurk more

SMPlayer

>adblock software exists for a reason
>doesn't use it
>complains about ads
???

I use it every day but I have to wonder whether it breaks the law in any way. Does it break youtubes terms of service?

This is for videos, I call it yube
cd C:\my_files\yube
C:\my_programs\ffmpeg_win64\bin\youtube-dl.exe --verbose --prefer-insecure %1
for /r %%v in (*.m4a) do C:\my_programs\ffmpeg_win64\bin\ffmpeg -i "%%v" "%%v.mkv"

This is for audio, I call it mube
cd C:\my_files\mube
mkdir %2
cd %2
C:\my_programs\ffmpeg_win64\bin\youtube-dl.exe --verbose --prefer-insecure -f 140 %1
for /r %%v in (*.m4a) do C:\my_programs\ffmpeg_win64\bin\ffmpeg -i "%%v" "%%v.ogg"
name
cd C:\7
cls


So typically I do ~yube "url-here" and I generally don't download entire playlists. For some reason when I was first using it I'd download long playlists and then after a day or two my transfer rate went down to like 2 kbs on all downloads from youtube. I think they like blacklisted me or something, or maybe it was just a shitty version of youtubedl that got broken or something. Either way I avoid doing long playlists now.

>make a script
>copy any link to clipboard
>hit hotkey
>opens up in my media player moments later in my favorite resolution
Who needs a fucking GUI for one utility?

mate, that windows cmd commands make me cringe
switch to linux or kys immediately

>launch 4k video downloader
>ctrl v
>all the options are there, all changable without knowing exactly what to type

>Do the work once
>every time after is a single button press (or button pair press)
vs
>every time you open a new program instance
>every time paste the link once
>every time you configure the download settings
I'm not saying that way isn't valid, but >no gui isn't a detractor.

I've used gnu/linux before on my x220 but I don't think I used it very well. I'm kind of holding off on making any significant changes to my computer use until I get my new computer in a couple of months. When I get my new computer I want to dual boot windows and some form of gnu/linux. I've tried
>lubuntu (maybe a month)
>xubuntu (maybe a month)
>mint (3-4 months)
>arch (1 1/2 years)

During that time I never really made use of scripts and the terminal to automate and control my system. I'd like to do things like automate downloading anime via an rss feed. Having a couple of different irc profiles and a good irc client. youtubedl stuff and general file management and off-internet access/archival of sites and info. However if I'm going to make gnu/linux my primary desktop enviroment/system then I want to actually use a distro as well as programs that are actually FOSS. However I do plan on copping out a bit and using windows for gayming.

Attached: shit_specs.png (454x394, 22K)

when they replace that garbage cmd syntax with lua and specifically lua i will use it.
which will be never because microsoft isn't allowed to change their own OS.

Hands down!
ripme is a close second.

Your distro is breddy insecure if it does have sh in /bin

I found this a couple months ago and I'm very impressed. Now I'm finally building a music collection.

>doesn't support rec-tube
fucking useless

R E T A R D

You can't use it without a GUI.

/bin/sh is used as a fallback when there is no other shell found.

> rec-tube
;^)

What in the name of god are you talking about? If you want to make a script just make a fucking script, it's not hard.

Does this still bypass Twitch ads? Adblock on browser stopped working

Speak for yourself.

no, /bin/sh is the historic location for bourne shell (UNIX shell), no unix clones actually ship with bourne shell, because it's non-free software, modern linux systems (for example) have /bin/sh as a symlink to bash, which runs in a more POSIX-compatible mode when invoked as 'sh'
basically, all you're doing is running bash with modern features disabled

>Does this still bypass Twitch ads?
You should be using livestreamer for that yes, it bypasses any ads.

twitch has ads?

Yes. Even my adblocker doesn't get around them.

i've only used twitch with mpv, since i can't be assed enabling js on the website, and i don't think it makes sense to use my browser as a media player when my actual media player is much more suited for the task

a) Why didn't you add youtube-dl and ffmpeg to your PATH?
b) What's the purpose of the ffmpeg commands? Why would a video come in a .m4a container?

>i don't think it makes sense to use my browser as a media player when my actual media player is much more suited for the task
Yeah, I completely agree, but why are you telling me that?
I am also using mpv to watch twitch streams.

>i used to have a firefox extension that let me right click on a youtube link and open it with mpv, but it stopped working after a firefox update
LOL WHAT A PLEB

gist.github.com/ubone/562d43d59f6ddcc 8d63c228e3ce717e8

>>make a script
BHAHAHAHA

just add terminal mpv ytdl-format bestaudio $(sselp) to your shortcuts