Skip to content

Instantly share code, notes, and snippets.

@matomesc
Forked from milleniumbug/getmus.ps1
Created September 20, 2019 17:42
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 matomesc/569cbabb1861bd96f5e41bce2c7bd645 to your computer and use it in GitHub Desktop.
Save matomesc/569cbabb1861bd96f5e41bce2c7bd645 to your computer and use it in GitHub Desktop.
download video from YouTube, extract music and normalize volume
param(
[string]$url
)
youtube-dl `
$url `
--quiet `
--extract-audio `
--audio-format mp3 `
--audio-quality 3 `
--exec 'mp3gain -q -r -c "{}"'
#!/bin/bash
youtube-dl \
"$1" \
--quiet \
--extract-audio \
--audio-format mp3 \
--audio-quality 3 \
--exec 'mp3gain -q -r -c {} > /dev/null && echo {}'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment