Skip to content

Instantly share code, notes, and snippets.

@espinielli
Created March 14, 2020 17:02
Show Gist options
  • Save espinielli/80cfc1e5e55eb3b1854d330524addadf to your computer and use it in GitHub Desktop.
Save espinielli/80cfc1e5e55eb3b1854d330524addadf to your computer and use it in GitHub Desktop.
download and extract mp3 from youtube
Download a youtube sound track from a video and extract a subset (for example for a phone ringtone)
```
$ youtube-dl --extract-audio --audio-format mp3 https://youtu.be/lhlvV7mjeJM
$ ffmpeg -ss 00:00:45 -t 00:00:45 -i La\ vita\ è\ bella\ -\ Colonna\ sonora\ \(original\ soundtrack\)\ -\ brano\ -\ \'La\ vita\ è\ bella\'-lhlvV7mjeJM.mp3 lveb.mp3
```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment