Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save osakanataro/d1cec7f4897020ea5cd42b144e0f8da7 to your computer and use it in GitHub Desktop.
Save osakanataro/d1cec7f4897020ea5cd42b144e0f8da7 to your computer and use it in GitHub Desktop.
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