Youtube-dl

lets have a youtube-dl and video hoard thread.

do you use -f 136+140/137+140 the most for youtube or just -f best?

also, for porn sites do you guys care about the best quality?

xham -f sd
pornhub -f 0
xvideos -f best

how do you guys organize your videos?
what command lines do you do to change the save directory?
do you guys use autohotkey or notepad ++ to speed up the process?
i'd love some input.

Other urls found in this thread:

youtube.com/watch?v=Ez_jx9WKx3E
github.com/rg3/youtube-dl#embedding-youtube-dl
github.com/Yeasayer/YoutubeVideoPage/blob/master/ytdownload/utils.py
youtube.com/watch?v=smt34ZmeczQ
twitter.com/SFWRedditVideos

I only download videos that are likely to be deleted from youtube.
>porn
Just use EMP you faggots.

Tell me how to download youtube videos with the best quality in batch with youtube-dl and I'll ditch jdownloader

make a text file with the same type of urls
eg
all youtube links in a txt file called yt.txt

-f best (or whatever quality you like) -a "C:\yt.txt" -i -c (continue with errors,then just repeat it to make sure it continues the ones with errors)

what is EMP? empflix?

I just made a lazy ass web front-end for it so that I can whore it off on occasion and download videos with relative impunity. Was planning on including tagging support for mp3 music downloads, but I'm too fucking broke and lazy to finish implementing it.

how did you make a web front end? does it only work on youtube or will it work on some porn sites as well?

Just YT since I kinda built up everything around it and its' quality settings. A lot of it was just using Django to host a simple webpage (You could and probably should use something that's more lightweight like Flask) , and using the built in developer hooks for youtube-dl to retrieve info on the video/playlist in question. I could probably get it working for porn sites, but I don't care, since I got my chinese chin-chin comics and I'm fine with that. It would probably take a day or two to build something simple, hence why you see all those youtube downloading sites.

I posted this before but
I use it mostly for my nephews. They have certain channels they like (DanTDM, Stampy, Little Lizard, etc)

>have schedule task to run youtube-dl 11am
>youtube-dl checks channel for new episode uploaded
>finds new episode, downloads it and embeds metadata and downloads thumbnail
>another program takes the thumbnail and superimposes it over a transparent .png I have made
>another script to rename the thumbnail to match the file name downloaded (so the thumbnail appears in plex library)
>another script to move files to relevant plex folder
>final script to tell plex to update that folder and look for new files at 2pm

so it "appears" automatically on my TV at 2pm everyday, kinda like a TV show. looks like this

I have it staggered so a new video from a different channel comes on every 30 minutes

I realize it's a bit autistic but the main reason I started doing it was because youtube-dl lets you blacklist videos by words and when they were young, those "horror" videos scared them

youtube.com/watch?v=Ez_jx9WKx3E

whats flask? and what are the hooks? like -F and -f?
i dont know much about this still but eager to learn. any youtube tutorials i could watch to learn to make a web front end for my fav porn sites?

That's kinda adorable user. It's like running your own television network except with ten time more autism.

Fuck it I'm feeling nice-ish today. There doesn't seem to be any tutorials like on youtube, but I'll link the following:
github.com/rg3/youtube-dl#embedding-youtube-dl
>Straight from the source
github.com/Yeasayer/YoutubeVideoPage/blob/master/ytdownload/utils.py
>Example of what I did.
The hooks mainly consist of telling it what video/playlist id and what site you want, along with video/audio quality if you're supremely autistic. You're probably going to want to have a decent amount of knowledge of basic WebDev to get something like that going. Fuck it, you can just fork or clone my shit and like 90% of the work's done.

how do you learn to do shit like this? this is awesome!

Doesn't yt-dl download best quality by default??

sometimes it downloads webms and that obviously is not the best quality, but for the most part you are correct

thank you very much user.

to fork this, i'd just copy your script from "github.com/Yeasayer/YoutubeVideoPage/blob/master/ytdownload/utils.py" to notepad and execute it in autohotkey or youtube-dl? sorry for being an idiot! i appreciate any help you gave or continue to give. thanks

If you have a bunch of URLs, a for-each loop in powershell is trivial to do.
If you want to archive an entire channel, just use the channel's URL as the download and it will grab every video available.

This is actually badass. Youtube recommendations seem to be doing a great job at directing kids to exploitive toy channels, so putting their favorite channels in plex is a great idea.

I made a QT front end for it for the GUI cucks

This whole post is amazing.

pretty cool desu

Does quality matter much for downloading music?

--audio-quality 0
Yeah, you can get 250ish from 70

youtube-red is better

isn't that a porn site?

Does pornhub download really slowly for you guys? xvideos is basically instant, but pornhub takes forever for me.

Also, doesn't it automatically download the best quality? Whats the point of -f best?

Be careful posting pictures of Empornium, one of their admins is an absolute fucking hyper autist who browses several boards here. He will ban people from Empornium if their usernames are shown in images or if he can link them to you (You post a picture of a search result, he'll check who searched that just before the post time and ban them).

The guy is notorious for being a retarded SEKRIT CLUB fag.

>He will ban people from Empornium if their usernames are shown in images
Jesus christ, sounds like such an asshole. That's not even something people can control when others take screencaps with them included.

You're not autistic user, just a good uncle.

if i'm downloading porn to keep, i get higher bitrate stuff from usenet. if its just for quick random fappings, as long as it isn't total potato quality it'll do

wanna share it? unless you're MrS0m30n3, that gui is horrible.

youtube-dl.exe -i --merge-output-format mkv -f bestvideo+22/best

remember to use -i on a playlist or it will error out on missing videos.

I'm not him but it's not good enough to share with the public yet. I got it working just enough so I can just barely use it and development halted

One day I will finish it

>One day I will finish it
confirmed dead

You can get 250 kb/s off youtube? I've only been able to get 192 from the -F list.

yeah phub is really slow for me too. dont know why.

how can you tell what the original uploaded codecs are without re-encoding?

how could i make a script to check tube sites for different search queries? would you use autohotkey for this?

Extracting and the other command I posted you can find 250+ videos, yes.

-f 'bestvideo[ext=mp4]+bestaudio[ext=m4a]/best[ext=mp4]'

youtube-dl -f 137+140 --merge-output-format mp4

You need ffmpeg in the same directory

-f best is the default

Best is default, just use no flags.

except -f best doesn't download the best quality

Okay, I downloaded this but everytime I open it a terminal thing pops up for a second then goes away...

Is this a virus??

I've tried running it as administrator

I love this piece of software. Every time I want to watch a longer video on Youtube or anywhere else, I just run it through youtube-dl so I can watch it in a local video player instead.

(you)

youtube-dl -f bestaudio+bestvideo $url

Aliased to yt in bash

I organise YT videos by channel, then by date. I don't format the file name - the end string can be used to find the original video. If I were to format the file names, I'd probably only format it for the ISO date at the beginning.

Some videos in 4K lag my computer. If so, I just download the 480p version.

I need my (You)s to go to beddies

That's the best combined option. The default downloads the best video/audio seperately and merges them, you pleb.

>how do you guys organize your videos?
I don't really have any organization other than putting them input a 'dump' folder.

>what command lines do you do to change the save directory?
I don't understand the question. If I'm using a terminal then I "cd" into the directory I want to save it in.

>do you guys use autohotkey or notepad ++ to speed up the process?
There is an addon for firefox called "OpenWith" that I use with youtube-dl. OpenWith can add a context menu to the web browser. And with that menu entry I can call a program. So where there is a video I want to save I right-click and select my (crappy) yt-dl QT front-end I made in python.

>GUI
have you tried killing yourself yet ?

not sure if bait but i'll explain if your using windows.
hit the windows key on your keyboard and type cmd then hit enter. place youtube-dl in an easy location (for example C:\youtube-dl) also, download ffmpeg and throw it in there as well.
so anyway, cmd then enter. then you want to change the directory by typing cd C:\youtube-dl hit enter then you want to tell the exe (youtube-dl) to download the url. so type youtube-dl [paste url here] without the brackets hit enter.
then when you become my tech saavy you can select the video and audio stream by doing this" youtube-dl -F [paste url] hit enter
youtube-dl -f best [paste url here] hit enter

later on you'll want to manually tell youtube-dl to download specific streams, which will be listed with the -F command. if you want to combine streams you need ffmpeg in the same folder.
a few examples would be:
youtube-dl -f 136+140 youtube.com/watch?v=smt34ZmeczQ

youtube-dl -f 137+140 youtube.com/watch?v=smt34ZmeczQ

youtube-dl -f 140 youtube.com/watch?v=smt34ZmeczQ - this just downloads the audio.


so are you telling me that if i post this link here "youtube.com/watch?v=smt34ZmeczQ"
youtube-dl -f bestaudio+bestvideo $url it will download the original uploaded video and audio without any re-encoding?

I just use best.
For YouTube the actual best quality streams aren't seekable with mpv. I hardly ever actually download the videos, but I want to be able to seek through them without the cache clearing.
Besides, 720p tends to be good enough on my laptop screen.

Actually it doesn't since for some reason it detects the 128k Opus track as ~2000kbps and chooses it over the AAC track, which can be up to 256k. (it seems to be random whether -f 22 is 256, 192, or 128k though)

yes, but i couldn't find a GUI for it, so it'll have to wait

>For YouTube the actual best quality streams aren't seekable with mpv
but that's wrong

>that -f 251
Have they started to offer Opus over 128k? I've seen it say 160k before but have only ever gotten 128k from that. But that 15.8MB vs 10.7/11.7 Vorbis/AAC would indicate it's higher.

Answered my own question. Neat.

yeah
I guess I remembered incorrectly
Seeking is slow as fuck though, there's like a 1 second delay after I hit the seek button (313+251)
what do you use

So it seems -f 22 isn't necessarily the equal or better of -f 251 anymore.
Great, this is going to complicate things since now I have to download both and compare.

thought vorbis yielded better quality @ lower bitrates (than aac at least)
not sure how it compares to opus though

ytdl-format=(bestvideo[vcodec=vp9][fps>=50]/bestvideo[fps>=50]/bestvideo)[height

That's so fucking cool

>thought vorbis yielded better quality @ lower bitrates (than aac at least)
No, Vorbis, Opus, and AAC (at least with one of the decent encoders) are all essentially equal.

also, 1 second delay would be nice, my internet connection isn't too hot, a few seconds is expected

I meant with the video cached in already.
Although I think that mpv will "check" with the server when it seeks, because I've had times I had videos fully cached and seeking basically fucked the whole cache up. Although I'm not exactly sure how to replicate this.
More of an mpv topic anyway.

>also, for porn sites do you guys care about the best quality?
>2017
>watching porn
kys

i don't tend to skip through videos, so it doesn't bother me if it misses the cache every time (it doesn't, but that's beside the point)

What the fuck are you even talking about

-f 22 is often better than -f 251, but youtube-dl detects -f 251 as being ~2000kbps Opus and will pick it as best.

It seems like his explanation was quite clear. What knowledge gap prevents you from doing this yourself? Do you not know how to write scripts?

highest bitrate != highest quality.
Opus is superior m8

>opus 128k is better than 256k AAC
Just leave you delusional freetard.

I have used this tool to download my entire YouTube watch history, dating back to 2010.

I thought we didn't like direct downloads

>download my entire YouTube watch history, dating back to 2010.
holy shit, now that's what I call weapons-grade autism!

i just have a sources.list that include different playlists and youtube/rtve channels

i run the script manually when i want to watch something new, as it takes literally 2-3 minutes to download everything

i use the windows 10 movies application to watch the videos, because it includes a mini mode that puts the video in a tiny window to have it running while you do other stuff

pic related

Neato

>using anything other than mpv
wew la

checked

>downloading youtube videos

literal wut?

I would have, if i didn't

Someone explain why i just can't right click>download youtube videos since they are MP4s?

youtube doesn't provide direct links to them on the page
there are (used to be?) userscripts which add a download button to the page which you can do that on, though

Youtube hosts more than let's plays and top 40 music.

oh snap, is that Steve1989?
>nice

and you can watch it without downloading

You can with non-DASH video, which youtube still offers in 360p or 720p.

can you link a video so i can test it

i tried like 30 vids so far and no luck

>i use the windows 10 movies application to watch the videos, because it includes a mini mode that puts the video in a tiny window to have it running while you do other stuff

>mpv
>no-border in mpv.conf to remove window border
>shift+t (or ontop in mpv.conf) to let it stay on top
>resize at your leisure
Or even
>MPC-HC
>ctrl+0 to remove the window border
>ctrl+1 and ctrl+2 to remove the tool bars
>ctrl+a to put it on top
>resize at your leisure

This is not dependant on the video, but on the browser. If the browser supports media source extensions (which all modern browsers do), it defaults to this and serves the video and audio track seperately, which then can't be downloaded as easily.
They still keep the old, non-DASH version with video and audio in one file around for legacy purposes.

On firefox-like browsers, you can disable this in about:config and set media.mediasource.enabled to false.
(Also set dom.event.contextmenu.enabled to false, so youtube can't disable to context menu.)

No you don't. As people have said before, the default will download the best video and best audio separately, mux them together and delete the original files unless you pass -k.

No it won't. It will take -f 251 even if -f 22 is 256k.

Again:
You know you can transcode a 32kbps mp3 to FLAC @ 2000kbps and it will still not sound any better, right?
The bitrate only means anything if you're comparing it with the exact same codec. Different codecs use different ways to store data. And as user has said before, opus is currently the most efficient audio codec. Therefore, less bits might mean the same or even better quality compared with less efficient codecs.

AAC, Vorbis, and Opus are equivalent, moron.

>You know you can transcode a 32kbps mp3 to FLAC @ 2000kbps
technically you can't, as FLAC is variable-rate-only, by definition of it being lossless
it uses as many bits as needed to store the source losslessly, it makes no sense to able to set a bitrate

>plex