This was formerly just 1bppdemo (1 bpp Video Demo). I gave it an overly important name and a flashy splash screen .
NEW CODE HERE
This still requires you to download the Google drive download below for the animation frame files. They are collectively to big to post on the forum. The zip is a bit over 100 mb's. The files you need from the below zip have an .A extension.
I will be posting a Youtube video of this running on hardware. I'm transcoding the video now.
Running on HARDWARE:
The video algorithm has been tested on HOSTFS, SD-Card Emulated & Hardware. On HOSTFS it's capable of about 22 fps.
On SD-Card - Emulated I'm a bit short of 10 fps. On Hardware it does better. 13.15 fps on one of my machines, 13.44 on the other.
FWIW The lower frame rate is on DEV0056 running r45. The Higher on PR0007 running r47.
It detects which file system it's on. On HOSTFS it Throttles to 13.2 fps deliberately to emulate hardware performance. It can't tell the difference between emulated SD-Card and HARDWARE SD-Card. On SD-Card it just goes as fast as possible.
File is to Big to include here due to multiple frame animation files. It's posted
on my Google Drive. https://drive.google.com/file/d/1fLBm7I ... sp=sharing
SPLASH SCREEN
MENU SCREENS
A COUPLE OF ANIMATION STILLS
HERE IT IS:
https://drive.google.com/file/d/1fLBm7I ... sp=sharing
MONOMANIA 1bpp Video Demo
- ahenry3068
- Posts: 1022
- Joined: Tue Apr 04, 2023 9:57 pm
MONOMANIA 1bpp Video Demo
Last edited by ahenry3068 on Wed May 15, 2024 11:17 am, edited 8 times in total.
Re: MONOMANIA 1bpp Video Demo
Did you hit a wall?
Re: MONOMANIA 1bpp Video Demo
Re: MONOMANIA 1bpp Video Demo
I mean, if the thump fits....
- ahenry3068
- Posts: 1022
- Joined: Tue Apr 04, 2023 9:57 pm
Re: MONOMANIA 1bpp Video Demo
I will occasionally feel like doing this. Particularly when I'm drawing a blank on some bug in my code.
But as I value my walls I rarely follow through...........
Re: MONOMANIA 1bpp Video Demo
I'd be interested in how the animation itself was created.
- ahenry3068
- Posts: 1022
- Joined: Tue Apr 04, 2023 9:57 pm
Re: MONOMANIA 1bpp Video Demo
Import Video file into LiVes. --> Resize to 320 x 240 --> Adjust video Frame rate to 13.2
--> Do an encode of the video to any format whatsoever, We aren't going to use this video file,
When LiVes saves a Video file it also pulls all frames as individual PNG's. --> Save Clipset and exit LiVes.
Open GIMP. GIMP needs to have the Video Plugin and Jestin's VERA plugin installed.
Navigate to the LiVes folder holding the PNG files. Drag & Drop the first 1/2 dozen or dozen onto GIMP's Window
Wait for the import process to complete. (I was initially dropping ALL the frames on GIMP, took hours to load), turns out the Video Plugin doesn't need to have all of them loaded. Just enough to tell it where the source frames are. Might work with just the first two frames.
Go to the Video Plugin Menu and choose CONVERT frames. Choose the .BIN extension (which tells GIMP to use the VERA plugin).
When the VERA dialog presents choose VERA Bitmap. Uncheck "Use 2 Byte Header" --> Choose 1 bpp and Save Bitmap. Execute this command. You will also choose dithering at this point. I found "usually" Floyd-Steinberg - Reduce Color Bleeding is best. I have a copy of Steamboat Willie undithered and With this Dithering to illustrate that point. The SMOKE video (undithered) is actually dithered with this the Dithered version uses regular Floyd-Steinberg dithering.
LiVes uses ffmpeg and is Fast. But if I used ffmpeg to convert directly to 1 bpp the frames had the jaggie's. VERA plugin produced better frames, However, GIMP and the VERA Plugin are much slower than ffmpeg. This step can take a couple hours to complete.
Once all the frames are saved. I have a short QB64 program I wrote to concatenate them into a single file. My Video assembly routine has to be told explicitly how many frames to read so I had to keep track of them at this point.
TADA............. Video file created.
Re: MONOMANIA 1bpp Video Demo
Interesting, but I think I was more interested in how the image morphing was done, or was this a converted video as well?
- ahenry3068
- Posts: 1022
- Joined: Tue Apr 04, 2023 9:57 pm