2 ms·
For music on youtube, this trivial ytdl wrapper is essential: $ cat bin/youtube-mp3 #!/bin/bash - exec $HOME/d/youtube-dl/youtube-dl -t -x --audio
by rwmj 8y ago
For music on youtube, this trivial ytdl wrapper is essential:
$ cat bin/youtube-mp3
#!/bin/bash -
exec $HOME/d/youtube-dl/youtube-dl -t -x --audio-format=mp3 "$@"
Saved to my Squeezebox library, it's available to play forever.
- qplex 8y agoDoesn't the audio quality take a hit when you transcode to MP3 though?
- rwmj 8y agoPossibly, but on the flip side neither my car nor my first-gen SLIMP3 can play other formats natively.
- asveikau 8y agoYouTube audio is usually aac. Sometimes I have saved audio as an .aac file without re-encoding. (Not using the same scripts, what I have done typically is get the mp4 and do: ffmpeg -i foo.mp4 -acodec copy foo.aac) Any audio player worth its salt should play .aac files. I think for the most common types [low-complexity] the patents are expired. (Curious if somebody has one that doesn't.)
- rhizome 8y agoProbably, but it's already down to ~150kb by the time you download it.