Skip to content

Instantly share code, notes, and snippets.

@mderazon
Created May 25, 2016 11:35
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mderazon/31fbe17583d6644212c59b9859b93eaa to your computer and use it in GitHub Desktop.
Save mderazon/31fbe17583d6644212c59b9859b93eaa to your computer and use it in GitHub Desktop.
get a bunch of youtube videos as mp3
youtube-dl -f 140 --ffmpeg-location /usr/local/bin/ffmpeg [list of youtube urls]
for f in *.m4a; do ffmpeg -i "$f" -acodec libmp3lame -ab 128k "${f%.m4a}.mp3"; done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment