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.

  • FrostyPolicy@suppo.fi
    link
    fedilink
    arrow-up
    5
    ·
    edit-2
    6 days ago

    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
      link
      fedilink
      English
      arrow-up
      1
      ·
      6 days ago

      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.