this post was submitted on 22 Jul 2024
87 points (94.8% liked)

Linux

47337 readers
942 users here now

From Wikipedia, the free encyclopedia

Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).

Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word "Linux" in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.

Rules

Related Communities

Community icon by Alpár-Etele Méder, licensed under CC BY 3.0

founded 5 years ago
MODERATORS
 

For me it's: Testdisk (and Photorec) Caddy Netstat Dig Aria2

you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 17 points 1 month ago (6 children)

yt-dlp. Too many options to remember and look up every time, but all useful and missing from GUIs when you just want to dowload audio or 'good enough' quality video in batches without re-encoding.

While nmtui is perfectly fine for the CLI-uninitiated, I sometimes wonder why the nm-connection-editor window doesn't provide the same level of functionality.

[–] [email protected] 8 points 1 month ago (1 children)

Too many options to remember and look up every time

This is a good use case for shell aliases. If you can identify a few of your use cases, you can give each bundle of options its own command.

[–] [email protected] 7 points 1 month ago (1 children)

I do exactly this for downloading music, I aliased my preferred options to 'yt-audio'

[–] [email protected] 5 points 1 month ago (1 children)

Would you mind sharing your command?

[–] [email protected] 2 points 1 month ago

This is what I use (with zsh):

yt-audio() {
	   yt-dlp --no-playlist -f 'ba' -x --audio-format mp3 $1
}
yt-audio-playlist() {
	   yt-dlp -f 'ba' -x --audio-format mp3 $1
}

It takes the best quality available and downloads it to mp3.

[–] [email protected] 7 points 1 month ago

There’s a firefox extension that generates the cli command for whatever video you’re on. Let’s you check boxes for the format, sponsorblock, etc and then copies it to your clipboard.

Just search the addon store for yt-dlp and it should show up

[–] [email protected] 4 points 1 month ago (1 children)

You can have most of the settings pre-loaded in its config file. I mostly let it do my preset -f, or when that fails do a -F to see what encodings are available.

[–] [email protected] 2 points 1 month ago

Btw, here's my config file.

-o "%(title)s (%(uploader_id)s).%(ext)s"
 
-P ~/Videos

-P "temp:/tmp/yt-dlp/"

-f 271+ba[language=en][ext=m4a]/308+ba[language=en][ext=m4a]/137+ba[language=en][ext=m4a]/299+ba[language=en][ext=m4a]/231+ba[language=en][ext=m4a]/http_mp3_128/271+140/308+140/137+140/299+140/231+140
--download-archive ~/.config/yt-dlp/dl-archive
--no-playlist
--write-sub
--no-mtime
--compat-options no-live-chat
[–] [email protected] 2 points 1 month ago

I believe ytDownloader might be what you're looking for. It's a yt-dlp frontend, you can export to video/audio pretty easily. And it's in active development. I've used it to export short clips to WAV a few times, nothing too fancy, but so far it works pretty well.

[–] [email protected] 2 points 1 month ago* (last edited 1 month ago) (1 children)

(Windows only warning, unless someone wants to add Linux support)

I didn't really search around for GUIs way back, but ended up making a basic GUI because I wanted to learn programming.

https://camo.githubusercontent.com/5ecb6cdfb3710e359894b65e42b79c7ab7dd8de55a14cdf34f0f0f37d48c7d04/68747470733a2f2f692e696d6775722e636f6d2f346a46776846652e706e67

With just having options as checkboxes for YouTube-dl. It has served me well all these years. It was literally the thing I made while learning programming so the code is pretty janky when I look back at it though...

[–] [email protected] 1 points 1 month ago (1 children)
[–] [email protected] 3 points 1 month ago

It's a link to an image on github not sure why it doesn't work for you. Try just looking at the repo then:

https://github.com/Thomasedv/Grabber

[–] [email protected] 1 points 1 month ago

I use jdownloader as gui alternative for yt-dlp. 😄 It was easy enough for my mother to understand, apparently.