Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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