Created
January 11, 2021 09:57
-
-
Save osakanataro/d1cec7f4897020ea5cd42b144e0f8da7 to your computer and use it in GitHub Desktop.
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
dd if=../majo-magical-J1618B/AB565.bin of=F640x48x80.bin bs=4915200 count=1 | |
dd if=../majo-magical-J1618B/AB565.bin of=F128x128x282.bin skip=4915200 bs=1 | |
split -b 61440 -a 3 -d F640x48x80.bin a | |
split -b 32768 -a 3 F128x128x282.bin b | |
mkdir data | |
for file in a[0-9][0-9][0-9] | |
do | |
ffmpeg -vcodec rawvideo -f rawvideo -pix_fmt rgb565 -s 640x48 -i $file -vcodec bmp data/$file.bmp | |
done | |
mkdir data2 | |
for file in b[a-z][a-z][a-z] | |
do | |
ffmpeg -vcodec rawvideo -f rawvideo -pix_fmt rgb565 -s 128x128 -i $file -vcodec bmp data2/$file.bmp | |
done | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment