Skip to content

Instantly share code, notes, and snippets.

@Shugabuga
Last active March 26, 2019 10:37
Show Gist options
  • Save Shugabuga/71dcebc0f2f0c61e8ed583195597838d to your computer and use it in GitHub Desktop.
Save Shugabuga/71dcebc0f2f0c61e8ed583195597838d to your computer and use it in GitHub Desktop.
nightcore.sh - Nightcore Music Generator for macOS and Linux
#!/bin/bash
if [ -n "${2+set}" ]; then
echo "Music file at '$1' selected"
ffmpeg -i "$1" -filter:a "atempo=1.5, asetrate=r=48K" -metadata composer="nightcore.sh - by HeyItsShuga" -loglevel quiet -write_xing 0 $3 -vn "$2"
else
echo "nightcore <input.mp3> <output.mp3> [\"-flags\"]"
echo "Running nightcore.sh stable 1.0.1"
fi
############################################################
# nightcore.sh - The Automated Nightcore Music Generator #
############################################################
# #
# REQUIRES ffMPEG! #
# macOS: brew install ffmpeg #
# Linux: sudo apt-get install ffmpeg #
# #
############################################################
# #
# Scripted by: HeyItsShuga #
# Time reader fix: 4ae1e1 and OfficialHoSay #
# Beta testers: iTrickzGG, Mfy_Gamer14, bucketbot, #
# TheAppleNerd, and 2Klasic #
# Special Thanks: krisdeerprince, pixeldesu, and chafos #
# #
############################################################
# #
# On 2017-10-31 the license was tweaked to allow #
# commercial use if you request permission. Please #
# contact me at heyitsshuga@gmail.com for for info. #
# #
# Falls under the cc-by-nc-sa 4.0 license unless waived: #
# https://creativecommons.org/licenses/by-nc-sa/4.0/ #
# #
############################################################
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment