-
-
Save matomesc/569cbabb1861bd96f5e41bce2c7bd645 to your computer and use it in GitHub Desktop.
download video from YouTube, extract music and normalize volume
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
param( | |
[string]$url | |
) | |
youtube-dl ` | |
$url ` | |
--quiet ` | |
--extract-audio ` | |
--audio-format mp3 ` | |
--audio-quality 3 ` | |
--exec 'mp3gain -q -r -c "{}"' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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