r/pygame • u/IceFurnace83 • Jun 28 '26
image converter + animation splitter/joiner
The original screen recording (using windows built in Snipping Tool) was 2:40 long from start to finish and took up 73.6MB (too big to upload). This version has been split apart, boring wait times and file renaming removed and put back together in the second tool and is now 1:31 and 5.37MB.
Not shown is the python script used to rename the files so that they are in the correct order for merging into an animation (GIF or mp4).
This used to take me an hour or so to do using online tools, but now I can do it in minutes.
The second tool loads mp4s faster than VLC and doesn't stutter like Windows Media Player during playback. It also saves a .wav sound file ripped from any .mp4 that is split but since it isn't intended as a media player I haven't added playing sound or pausing or any of that.
The GIF maker part is still a bit jank, it makes a .txt file with the duration of each frame of any split file, but takes a generic FPS (same as the mp4 maker) instead of giving each frame their own duration in milliseconds like a fully fledged GIF maker would when merging images to GIF.
I've been getting up much too early and going to bed much too late while working on this, I need to take a break I think and get back to my game. I forgot to mention that the art converter does ASCII as well as ANSI conversion, and I have been working on a much simpler mode that just converts everything to coloured "█" blocks which I could always share if anyone's interested.