Free Republic
Browse · Search
General/Chat
Topics · Post Article

To: Pollard

Quick followup on youtube-dl. Works like a charm. Thanks very much.


61 posted on 07/13/2021 6:15:33 PM PDT by upchuck (I am not afraid of the Chinese Virus or variants. I AM afraid of the unproven "vaccines.")
[ Post Reply | Private Reply | To 52 | View Replies ]


To: upchuck
@upchuck, No Problem

@Jane Long, ask upchuck any questions you have LOL. Just kidding.(although if it's windows stuff) I run Linux but I imagine it's the same commands for windows. It runs on Python programming language which runs on all operating systems if installed. As far as changing directories via the command line in windows so that the video ends up in the folder you want, I don't know because I've been running Linux 99.99% of the time for 15+ years.

My plan was/is to reupload stuff to alt video services like rumble/bitchute. I have an account on rumble but they want two factor auth to upload stuff so I'd have to give them our cell #. Not sure about bitchute. Haven't even registered there yet. I have downloaded a couple of twitter vids and re-uploaded to youtube.

One tip. There are codes for different video/audio formats that can be downloaded on the video platforms.

youtube-dl -F https://www.youtube.com/watch?v=D_zS_uiPWxs

Note the capital -F with dash in front of it. That brings up the format codes.

That shows you all the various formats & resolution you can download and also the file sizes.

That's a lot and even though it's a video, the audio track alone can be downloaded. This particular video is pretty small but generally, I choose format #18. If this was an hour long video, #137 would probably get into GB size or at least hundreds of MB. #398 might be a good one if you needed a better resolution than #18 with it's 360p aka 640x360 pixels. Once you decide on one, use the following;

youtube-dl -f 18 https://www.youtube.com/watch?v=D_zS_uiPWxs

Small -f this time, followed by a space and the numerical format code, 18. If you leave out the small -f and code, it will download the highest quality video+audio which could be pretty big and take a while to download.

I used to use a browser addons for downloading youtube videos but at some point, they wouldn't let you download 1080p unless you went pro or signed up etc. This thing let's you do what you want, works on 1,200+ video websites, doesn't show ads or suddenly add a new tab/page you get sent to when it updates to tell you it updated like the addons do. Much nicer.

If you really want to tweak your brain, check out ImageMagick. A command line only image manipulation/editing program. Yeah, edit images without looking at them. Available for all OSs and installed on most every web server. Websites don't store those huge digital camera pics you upload. They shrink them in both pixels and resolution/file size. Great for working with a folder full of images on your PC.

66 posted on 07/13/2021 7:29:14 PM PDT by Pollard
[ Post Reply | Private Reply | To 61 | View Replies ]

Free Republic
Browse · Search
General/Chat
Topics · Post Article


FreeRepublic, LLC, PO BOX 9771, FRESNO, CA 93794
FreeRepublic.com is powered by software copyright 2000-2008 John Robinson