more questions about yt-dlp arguments on debian (excluding av1, aborting an active download not shutting the terminal down)
from merompetehla@lemmy.ml to linux@lemmy.ml on 22 Jul 10:30
https://lemmy.ml/post/33505993

debian 12.11, yt-dlp stable@2025.07.21

aim: to download the best video available with the largest height but no better than 1080p, excluding av1 as well.

What works:

yt-dlp -f bv*[ext=mp4]+ba[ext=m4a]/b[ext=mp4] -S height:1080 --all-subs

but this command downloads, if possible, av1, which target hardware doesn’t support for longer than 5 minutes.

Argument I don’t know to add correctly:

[vcodec!*=av01]

I tried:

yt-dlp -f bv*[ext=mp4]+ba[ext=m4a]/b[ext=mp4][vcodec!*=av01] -S height:1080 --all-subs

and other variations, but it didn’t work.

second question, aborting an active download not shutting the terminal down: neither ctrl+c nor ctrl+q work and opening htop to kill the process seems overkill. What I now do is to simply shut the active tab, but there must be a faster way.

#linux

threaded - newest

kungen@feddit.nu on 22 Jul 10:56 collapse

second question, aborting an active download not shutting the terminal down: neither ctrl+z nor ctrl+q work and opening htop to kill the process seems overkill. What I now do is to simply shut the active tab, but there must be a faster way.

Ctrl+C.

FrostyPolicy@suppo.fi on 22 Jul 11:09 next collapse

neither ctrl+z nor ctrl+q work

Ctrl + z will send the task to the background. You can use jobs to see all active background work. Fg will bring background work to the foreground. Ctrl + q is not a valid shortcut as far as I know. Looks a bit like a mac thing (command + q).

SheeEttin@lemmy.zip on 22 Jul 11:36 collapse

It’s been a while, but ^S suspends output to the terminal and ^Q resumes, I think. I don’t know if it’s really supported in the modern era.

merompetehla@lemmy.ml on 22 Jul 11:48 collapse

thank you for pointing that out, corrected.

what happens on my computer: on a terminal, I press ctrl+c but the process keeps working, yt-dlp keeps downloading. As said, the only way to stop it is to shut the tab down (or htop and kill)