Skip to content

Instantly share code, notes, and snippets.

@archydragon
Created December 8, 2014 09:41
Show Gist options
  • Save archydragon/3d90ec8f877e0a6dcfb1 to your computer and use it in GitHub Desktop.
Save archydragon/3d90ec8f877e0a6dcfb1 to your computer and use it in GitHub Desktop.
Save playlist from Youtube as the pack of Vorbis files
#!/bin/zsh
LINK="$1"
youtube-dl -i -f 141 "${LINK}"
for F in *.m4a; do
ffmpeg -i "${F}" -acodec libvorbis -ab 192k "${F/%m4a/ogg}"
done
rm *.m4a
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment