Skip to content

Instantly share code, notes, and snippets.

@mngyuan
Last active November 9, 2021 22:47
Show Gist options
  • Save mngyuan/13e7d80c1e859d629792b60c8f722022 to your computer and use it in GitHub Desktop.
Save mngyuan/13e7d80c1e859d629792b60c8f722022 to your computer and use it in GitHub Desktop.
ffmpeg command to make an mp4 from a dolphin emulator dump from slippi
#!/bin/zsh
# requires ffmpeg
#
# you may need to change "framedump1.avi" to "framedump0.avi" or similar, but it's always "framedump1.avi" for me
cd ~/Library/Application\ Support/Slippi\ Launcher/playback/Slippi\ Dolphin.app/Contents/Resources/User/Dump
ffmpeg -i Frames/framedump1.avi -i Audio/dspdump.wav -map 0:v -map 1:a -c:v copy -shortest output.mp4
# add a bottom part so it's vertical aspect ratio so it can be uploaded to YouTube shorts
ffmpeg -i output.mp4 -i ~/Desktop/overlay.png -filter_complex vstack=inputs=2 -r 60 output-vertical.mp4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment