How do I create a GIF from an emulator?
How do I create a GIF from an emulator?
I see people on here occasionally post an inline image to an animated GIF file showing a short sequence from a Spectrum emulator. How do you create such a thing? I managed to get an AVI out of Fuse and its associated utilities for uploading to Youtube, but I couldn't figure out how to make an animated GIF of a Spectrum screen.
Derek Fountain, author of the ZX Spectrum C Programmer's Getting Started Guide and various open source games, hardware and other projects, including an IF1 and ZX Microdrive emulator.
- Ast A. Moore
- Rick Dangerous
- Posts: 2641
- Joined: Mon Nov 13, 2017 3:16 pm
Re: How do I create a GIF from an emulator?
Some emulators—zxsp, for instance—create animated GIFs by default. If that’s not your cup of raktajino, you could use something like this.
Every man should plant a tree, build a house, and write a ZX Spectrum game.
Author of A Yankee in Iraq, a 50 fps shoot-’em-up—the first game to utilize the floating bus on the +2A/+3,
and zasm Z80 Assembler syntax highlighter.
Author of A Yankee in Iraq, a 50 fps shoot-’em-up—the first game to utilize the floating bus on the +2A/+3,
and zasm Z80 Assembler syntax highlighter.
- bob_fossil
- Manic Miner
- Posts: 659
- Joined: Mon Nov 13, 2017 6:09 pm
Re: How do I create a GIF from an emulator?
ffmpeg can convert a video to a gif, though you might end up with a gif containing video compression artefacts depending on the codec used to create the original video. I managed to create an animated gif using SpecEmu's .bmp dump option (Recording menu, Video sub menu). This dumps every frame to a .bmp file. You can then use something like Image Magick to glue all the generated .bmps into an animated gif. That's how I managed to create this:
Re: How do I create a GIF from an emulator?
Yes, I tried to convert the FMF file Fuse produces to an AVI, then break that into frames, but the compression had left severe artifacts and the result was horrible. But it looks like fmfconv will create a folder full of PNGs with no compression, so that's probably the way to go. I'll give that a try.
Derek Fountain, author of the ZX Spectrum C Programmer's Getting Started Guide and various open source games, hardware and other projects, including an IF1 and ZX Microdrive emulator.
Re: How do I create a GIF from an emulator?
Gifcam can be useful for that:
http://blog.bahraniapps.com/gifcam/
http://blog.bahraniapps.com/gifcam/
Re: How do I create a GIF from an emulator?
The fmfconv manual explains a way to convert to animated GIF (25 fps) using ImageMagick:dfzx wrote: ↑Sat Jan 06, 2018 11:16 am Yes, I tried to convert the FMF file Fuse produces to an AVI, then break that into frames, but the compression had left severe artifacts and the result was horrible. But it looks like fmfconv will create a folder full of PNGs with no compression, so that's probably the way to go. I'll give that a try.
Code: Select all
fmfconv -f 25 input.fmf tmp.png
convert -delay 4 -loop 0 -layers removeDups -layers Optimize tmp*.png output.gif
Re: How do I create a GIF from an emulator?
ZX SPIN is great for this purpose:
In ZX SPIN (I'm using 0.666) select recording > video > configure output and select animated gif, you will also need to link to a .GIF file in the filename part. I don't know why GIFs animate and other filetypes don't.
Set up the spectrum to do whatever you want.
Then when you're ready select recording > video > start recording and leave until you're ready to select stop from the same place.
In ZX SPIN (I'm using 0.666) select recording > video > configure output and select animated gif, you will also need to link to a .GIF file in the filename part. I don't know why GIFs animate and other filetypes don't.
Set up the spectrum to do whatever you want.
Then when you're ready select recording > video > start recording and leave until you're ready to select stop from the same place.
Re: How do I create a GIF from an emulator?
, RTFM why don't I? In my defence, I was reading the fmfconv help text, which doesn't offer the examples section.serbalgi wrote: ↑Sat Jan 06, 2018 11:20 am The fmfconv manual explains a way to convert to animated GIF (25 fps) using ImageMagick:SPIN also supports animated GIFs.Code: Select all
fmfconv -f 25 input.fmf tmp.png convert -delay 4 -loop 0 -layers removeDups -layers Optimize tmp*.png output.gif
Thanks for that!
Derek Fountain, author of the ZX Spectrum C Programmer's Getting Started Guide and various open source games, hardware and other projects, including an IF1 and ZX Microdrive emulator.
Re: How do I create a GIF from an emulator?
Thanks for all the suggestions. Turns out that the Fuse utils already do it. You just need to read the chuffin' documentation.
Derek Fountain, author of the ZX Spectrum C Programmer's Getting Started Guide and various open source games, hardware and other projects, including an IF1 and ZX Microdrive emulator.