Skip to content

Instantly share code, notes, and snippets.

@ritiek
Last active January 14, 2024 11:36
Show Gist options
  • Save ritiek/4da3196826d54cb737a9ff75f33e43fc to your computer and use it in GitHub Desktop.
Save ritiek/4da3196826d54cb737a9ff75f33e43fc to your computer and use it in GitHub Desktop.
Convert a track to nightcore
# Increase tempo (x1.06) and frequency (x1.25 assuming input freq. = 44100 Hz)
ffmpeg -i input.mp3 -filter:a "atempo=1.06,asetrate=44100*1.25" output.mp3
# Without tempo
ffmpeg -i input.mp3 -filter:a "asetrate=44100*1.25" output.mp3
# Create one frame .mp4 from .mp3 + .jpg
ffmpeg -i output.mp3 -i anime.jpg output.mp4
# Do above in single command
ffmpeg -i input.mp3 -i anime.jpg -filter:a "atempo=1.06,asetrate=44100*1.25" -vn output.mp4
# Without tempo
ffmpeg -i input.mp3 -i anime.jpg -filter:a "asetrate=44100*1.25" -vn output.mp4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment