Skip to content

Instantly share code, notes, and snippets.

@nin-jat
Last active December 20, 2021 04:23
Show Gist options
  • Save nin-jat/3044932665c7cac0b363ab68263e0632 to your computer and use it in GitHub Desktop.
Save nin-jat/3044932665c7cac0b363ab68263e0632 to your computer and use it in GitHub Desktop.
Add miitopia music to your screen recordings.
#!/bin/bash
# This script will replace the audio from your provided video with a random miitopia soundtrack.
# Change This to point to your Miitopia Original Soundtrack directory.
MIITOPIA_MUSIC="/home/tom/Videos/ffmpeg-scripts/assets/Miitopia-Original-Soundtrack"
# Great quality rips can be found here https://www.sittingonclouds.net/album/1287
# Usage: miitopiaify [input video] [output video]
# Pick a random file from our miitopia directory and stuff it into a varible.
FILE=$(shuf -n1 -e $MIITOPIA_MUSIC/*)
# Do the actual video stuff.
ffmpeg -i "$1" -i "$FILE" -c:v copy -map 0:v:0 -map 1:a:0 -shortest "$2"
@nin-jat
Copy link
Author

nin-jat commented Dec 20, 2021

waffle.mov

@nin-jat
Copy link
Author

nin-jat commented Dec 20, 2021

printer.mov

@nin-jat
Copy link
Author

nin-jat commented Dec 20, 2021

caaat.mov

@nin-jat
Copy link
Author

nin-jat commented Dec 20, 2021

bminus.mov

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment