[Boards: 3 / a / aco / adv / an / asp / b / bant / biz / c / can / cgl / ck / cm / co / cock / d / diy / e / fa / fap / fit / fitlit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mlpol / mo / mtv / mu / n / news / o / out / outsoc / p / po / pol / qa / qst / r / r9k / s / s4s / sci / soc / sp / spa / t / tg / toy / trash / trv / tv / u / v / vg / vint / vip / vp / vr / w / wg / wsg / wsr / x / y ] [Search | Free Show | Home]

youtube-dl

This is a blue board which means that it's for everybody (Safe For Work content only). If you see any adult content, please report it.

Thread replies: 98
Thread images: 14

File: ytdl.png (4KB, 300x168px) Image search: [Google]
ytdl.png
4KB, 300x168px
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.
>>
>>60319466
I only download videos that are likely to be deleted from youtube.
>porn
Just use EMP you faggots.
>>
>>60319466
Tell me how to download youtube videos with the best quality in batch with youtube-dl and I'll ditch jdownloader
>>
>>60319506
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)
>>
>>60319487
what is EMP? empflix?
>>
>>60319466
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.
>>
>>60319747
how did you make a web front end? does it only work on youtube or will it work on some porn sites as well?
>>
>>60319794
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.
>>
File: 1493021754152.jpg (473KB, 1017x774px) Image search: [Google]
1493021754152.jpg
473KB, 1017x774px
>>60319466
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
>>
File: .png (8KB, 290x310px) Image search: [Google]
.png
8KB, 290x310px
>>60319684
https://www.youtube.com/watch?v=Ez_jx9WKx3E
>>
>>60319952
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?
>>
>>60320159
That's kinda adorable anon. It's like running your own television network except with ten time more autism.
>>
>>60320279
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:
https://github.com/rg3/youtube-dl#embedding-youtube-dl
>Straight from the source
https://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.
>>
>>60320159
how do you learn to do shit like this? this is awesome!
>>
Doesn't yt-dl download best quality by default??
>>
>>60320439
sometimes it downloads webms and that obviously is not the best quality, but for the most part you are correct
>>
>>60320403
thank you very much anon.

to fork this, i'd just copy your script from "https://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
>>
File: Capture.png (169KB, 1249x1050px) Image search: [Google]
Capture.png
169KB, 1249x1050px
>>60319506
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.

>>60320159
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.
>>
>>60319747
I made a QT front end for it for the GUI cucks
>>
>>60320159
This whole post is amazing.
>>
>>60320159
pretty cool desu
>>
Does quality matter much for downloading music?
>>
>>60320775
--audio-quality 0
Yeah, you can get 250ish from 70
>>
>>60319466
youtube-red is better
>>
>>60320921
isn't that a porn site?
>>
>>60319466
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?
>>
>>60320178

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.
>>
>>60322436
>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.
>>
>>60320159
You're not autistic anon, 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
>>
>>60320642
wanna share it? unless you're MrS0m30n3, that gui is horrible.
>>
youtube-dl.exe -i --merge-output-format mkv -f bestvideo+22/best
>>
>>60320607
remember to use -i on a playlist or it will error out on missing videos.
>>
>>60322542
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
>>
>>60322623
>One day I will finish it
confirmed dead
>>
>>60320831
You can get 250 kb/s off youtube? I've only been able to get 192 from the -F list.
>>
>>60322384
yeah phub is really slow for me too. dont know why.

how can you tell what the original uploaded codecs are without re-encoding?
>>
>>60320159
how could i make a script to check tube sites for different search queries? would you use autohotkey for this?
>>
>>60322826
Extracting and the other command I posted you can find 250+ videos, yes.
>>
>>60319466
-f 'bestvideo[ext=mp4]+bestaudio[ext=m4a]/best[ext=mp4]'
>>
>>60319466

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


You need ffmpeg in the same directory
>>
>>60319466
-f best is the default
>>
>>60319466
Best is default, just use no flags.
>>
File: (((best))).png (457KB, 772x515px) Image search: [Google]
(((best))).png
457KB, 772x515px
>>60324945
>>60324974
except -f best doesn't download the best quality
>>
>>60319466
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
>>
>>60319466
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.
>>
>>60325305
(you)
>>
>>60319466
 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.
>>
File: 23894789234.jpg (145KB, 582x637px) Image search: [Google]
23894789234.jpg
145KB, 582x637px
>>60325422
I need my (You)s to go to beddies
>>
>>60325010
That's the best combined option. The default downloads the best video/audio seperately and merges them, you pleb.
>>
File: ytdl.png (35KB, 428x438px) Image search: [Google]
ytdl.png
35KB, 428x438px
>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.
>>
>>60326066
>GUI
have you tried killing yourself yet ?
>>
File: yt.jpg (171KB, 656x549px) Image search: [Google]
yt.jpg
171KB, 656x549px
>>60325305
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 https://www.youtube.com/watch?v=smt34ZmeczQ

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

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


>>60325697
so are you telling me that if i post this link here "https://www.youtube.com/watch?v=smt34ZmeczQ"
youtube-dl -f bestaudio+bestvideo $url it will download the original uploaded video and audio without any re-encoding?
>>
>>60319466
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.
>>
>>60326049
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)
>>
>>60326102
yes, but i couldn't find a GUI for it, so it'll have to wait
>>
>>60326179
>For YouTube the actual best quality streams aren't seekable with mpv
but that's wrong
>>
>>60325010
>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.
>>
File: Untitled.png (34KB, 806x593px) Image search: [Google]
Untitled.png
34KB, 806x593px
>>60326274
Answered my own question. Neat.
>>
>>60326225
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
>>
File: Capture.png (320KB, 1249x472px) Image search: [Google]
Capture.png
320KB, 1249x472px
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.
>>
>>60326274
thought vorbis yielded better quality @ lower bitrates (than aac at least)
not sure how it compares to opus though
>>
>>60326343
ytdl-format=(bestvideo[vcodec=vp9][fps>=50]/bestvideo[fps>=50]/bestvideo)[height<=1080][tbr<5000]+(bestaudio[acodec=opus]/bestaudio[ext=webm]/bestaudio)/best


basically, the best with some preferences and restrictions, namely
prefer vp9/opus
prefer >50fps
video bitrate no more than 5Mb/s
video height no more than 1080
>>
>>60320159
That's so fucking cool
>>
>>60326361
>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.
>>
>>60326343
>>60326373
also, 1 second delay would be nice, my internet connection isn't too hot, a few seconds is expected
>>
>>60326419
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.
>>
>>60319466
>also, for porn sites do you guys care about the best quality?
>2017
>watching porn
kys
>>
>>60326508
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)
>>
>>60326212
What the fuck are you even talking about
>>
>>60326637
-f 22 is often better than -f 251, but youtube-dl detects -f 251 as being ~2000kbps Opus and will pick it as best.
>>
>>60320421
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?
>>
>>60326673
highest bitrate != highest quality.
Opus is superior m8
>>
>>60326787
>opus 128k is better than 256k AAC
Just leave you delusional freetard.
>>
File: youtube-dl.png (420KB, 1779x1441px) Image search: [Google]
youtube-dl.png
420KB, 1779x1441px
I have used this tool to download my entire YouTube watch history, dating back to 2010.
>>
I thought we didn't like direct downloads
>>
>>60328514
>download my entire YouTube watch history, dating back to 2010.
holy shit, now that's what I call weapons-grade autism!
>>
File: file.png (475KB, 1920x1080px) Image search: [Google]
file.png
475KB, 1920x1080px
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
>>
>>60328514
Neato
>>
>>60328921
>using anything other than mpv
wew la
>>
>>60330000
checked
>>
>downloading youtube videos

literal wut?
>>
>>60326553
I would have, if i didn't
>>
Someone explain why i just can't right click>download youtube videos since they are MP4s?
>>
>>60330264
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
>>
>>60330080
Youtube hosts more than let's plays and top 40 music.
>>
>>60328921
oh snap, is that Steve1989?
>nice
>>
>>60330752
and you can watch it without downloading
>>
>>60330264
You can with non-DASH video, which youtube still offers in 360p or 720p.
>>
>>60331460
can you link a video so i can test it

i tried like 30 vids so far and no luck
>>
>>60328921
>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
>>
>>60331508
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.)
>>
>>60326351
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.
>>
>>60331791
No it won't. It will take -f 251 even if -f 22 is 256k.
>>
>>60331889
Again:
>>60326787

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 anon 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.
>>
>>60332024
AAC, Vorbis, and Opus are equivalent, moron.
>>
>>60332024
>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
>>
File: 1488291099106.jpg (25KB, 440x410px) Image search: [Google]
1488291099106.jpg
25KB, 440x410px
>>60320159
>plex
Thread posts: 98
Thread images: 14


[Boards: 3 / a / aco / adv / an / asp / b / bant / biz / c / can / cgl / ck / cm / co / cock / d / diy / e / fa / fap / fit / fitlit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mlpol / mo / mtv / mu / n / news / o / out / outsoc / p / po / pol / qa / qst / r / r9k / s / s4s / sci / soc / sp / spa / t / tg / toy / trash / trv / tv / u / v / vg / vint / vip / vp / vr / w / wg / wsg / wsr / x / y] [Search | Top | Home]

I'm aware that Imgur.com will stop allowing adult images since 15th of May. I'm taking actions to backup as much data as possible.
Read more on this topic here - https://archived.moe/talk/thread/1694/


If you need a post removed click on it's [Report] button and follow the instruction.
DMCA Content Takedown via dmca.com
All images are hosted on imgur.com.
If you like this website please support us by donating with Bitcoins at 16mKtbZiwW52BLkibtCr8jUg2KVUMTxVQ5
All trademarks and copyrights on this page are owned by their respective parties.
Images uploaded are the responsibility of the Poster. Comments are owned by the Poster.
This is a 4chan archive - all of the content originated from that site.
This means that RandomArchive shows their content, archived.
If you need information for a Poster - contact them.