Created
April 12, 2017 21:31
-
-
Save georgboe/e06c0b095e7779e5ed1e346c9b717bef to your computer and use it in GitHub Desktop.
Script to convert .fm2 files to actual video files
This file contains hidden or 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 | |
# Usage: fm2toavi.sh rom.nes movie.fm2 output.mkv | |
if [ "$#" -ne 3 ]; then | |
echo "Usage: fm2toavi.sh rom.nes movie.fm2 output.mkv" | |
exit 1 | |
fi | |
fceux \ | |
--xscale 1 --yscale 1 --special 0 \ | |
--pal 0 \ | |
--sound 1 --soundq 1 --soundrate 48000 --mute 1 \ | |
--nospritelim 1 \ | |
--no-config 1 \ | |
--videolog "ffmpeg -f s16le -ar 48000 -channels 1 -i /home/georg/Desktop/delete_me/s.log -f rawvideo -r 60.0998 -s 256x224 -pix_fmt bgr24 -i - -codec:a aac -b:a 128k -codec:v libx264 -preset slow -b:v 1000k -vf scale=960:720 $3" \ | |
--playmov "$2" "$1" | |
rm s.log |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment