Re:Why does the Librem 5 phone cost that much?
by Ycros on Thursday November 28, 2019 @08:12PM
(#21661224)
Ah, nice to see I'm not the only one running youtube-dl on a phone via Termux.
Re:Why does the Librem 5 phone cost that much?
by chronogram on Thursday November 28, 2019 @06:27PM
(#21660845)
Would it not be nicer to save a whole lot on bandwidth by using "youtube-dl -f bestaudio[ext=m4a]" instead of "youtube-dl -x"?
Re:Why does the Librem 5 phone cost that much?
by 0x38B on Friday November 29, 2019 @02:27AM
(#21662727)
Good point! My command line looks like this:
youtube-dl -f bestaudio -x --no-progress -o "~/storage/music/YouTube/%(title)s.%(ext)s" "$1"
This generally gives me .opus files, which play OK but my player can't change the tags.
It's quicker than any of the YouTube downloader apps I've tried!
How it works: in ~/bin there's a termux-url-opener script that handles what you share:
"#!/bin/bash
case "$1" in
(dl_yt just calls youtube-dl -x)I love it and am still finding new uses for Termux. I've got neovim and all my dotfiles loaded, so in a pinch I can ssh into my phone to do some work.