Skip to content

Instantly share code, notes, and snippets.

@kirillgroshkov
Last active January 11, 2019 20:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kirillgroshkov/7faa9ae9d5198fc461e7e996159b16d2 to your computer and use it in GitHub Desktop.
Save kirillgroshkov/7faa9ae9d5198fc461e7e996159b16d2 to your computer and use it in GitHub Desktop.
youtube download
# ytdl is `npm i -g ytdl`
# Download video
ytdl "http://www.youtube.com/watch?v=ZY1OkgEV-ZA" > video1.mp4
# Extract just audio from mp4
# cat ./video1.mp4 | ffmpeg -i pipe:0 -b:a 192K -vn audio1.aac
cat ./video1.mp4 | ffmpeg -i pipe:0 -vn audio1.aac
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment