Omnimaga

Calculator Community => Other Calc-Related Projects and Ideas => TI Z80 => Topic started by: Iambian on January 09, 2014, 11:21:51 am

Title: So I re-used my YABAV for something else...
Post by: Iambian on January 09, 2014, 11:21:51 am
Downloaded and converted a copy of Rick Astley's popular music video for the song "Never Gonna Give You Up". The screenshot gives the basic gist of what you'll be looking at, the .8xk download is the first 5000 (of 6,392) frames (roughly 2 3/4 minutes long)

On-calc filesize is 966,656 bytes (944KB). SPASM refuses to compile the entire video (it crashes if attempted).

First 5000 frames because it was a nice, easy number to pick that would still compile. The original video would've spanned 72 pages, and SPASM crashes on attempting to compile that.

Note that there is no real audio, but if you try anyway, you'll end up with a low pitched hum (since the audio driver is never disabled)

Any suggestions on other videos to try?
Title: Re: So I re-used my YABAV for something else...
Post by: Sorunome on January 09, 2014, 12:09:28 pm
dem pixel glitches on the sides :P

And nice, you gotta love the rickroll :thumbsup:
Title: Re: So I re-used my YABAV for something else...
Post by: fb39ca4 on January 09, 2014, 01:51:14 pm
I had the same problems with Spasm, so what I did was save the additional pages as .bin files (I had my Python encoding script output them), had spasm assemble the first page as another .bin file, and then concatenated them all and signed it with Rabbitsign.
Title: Re: So I re-used my YABAV for something else...
Post by: Iambian on January 09, 2014, 04:21:20 pm
This video is the opening scene of the second Touhou Soccer game. I cheated a bit and used Irfanview to do the conversion to b/w because without dithering, it sucks. Compression didn't work as well because of that, but it still worked on some of the video.

Video stats: ~31sec long, 1921 frames @ ~30FPS
On-calc size: 425,984 (416KB)
If it was not compressed: 1440.75KB

NOTE: The fuzz at the top near the start is the Bandicam logo. Also, need to beef up the video player to support multiple compression types. Probably not gonna happen anytime soon, but hey. It could happen.

EDIT: Framerate information is wrong. I did not realize the source video was 60fps, so the vid is running at half speed. Unfortunately, I can't exactly speed things up. The system barely has enough CPU power to do 30FPS.
Title: Re: So I re-used my YABAV for something else...
Post by: Sorunome on January 09, 2014, 05:27:12 pm
maybe you could cut out every second frame?
Title: Re: So I re-used my YABAV for something else...
Post by: Iambian on January 09, 2014, 06:47:14 pm
This video is a clip from Touhou Soccer 2. It is the special animation for one of the player's special moves.

I don't know what went wrong but the decompressor wanted more processing power than was available, so I had to cut out the background audio routine. Even though it wasn't doing anything, not being able to include audio is a problem.

But the video is decent. 30FPS.
Title: Re: So I re-used my YABAV for something else...
Post by: DJ Omnimaga on January 09, 2014, 07:50:37 pm
Awesome. Now if only the rickroll had sound :P


Do you think you could do this with Zelda: Dark Link Quest's final boss intro? (Although it's about 6 FPS)
Title: Re: So I re-used my YABAV for something else...
Post by: fb39ca4 on January 09, 2014, 09:05:28 pm
Is the grayscale intentional, or a side effect of dithering and a high framerate?
Title: Re: So I re-used my YABAV for something else...
Post by: Iambian on January 10, 2014, 12:10:28 pm
The grayscale is a side-effect. I don't have anything at the moment that could make something like that intentional.

EDIT: Darn it. Now you've got me thinking on how to make it intentional. And to support dithering and other image manipulations in-app.
Title: Re: So I re-used my YABAV for something else...
Post by: fb39ca4 on January 10, 2014, 12:25:30 pm
Maybe you could make your dithering pattern the one needed for grayscale. 3 level should work fine, at least, but IDK how it would affect compression.
Title: Re: So I re-used my YABAV for something else...
Post by: Eiyeron on January 12, 2014, 08:19:59 am
We need a compression routine which supports dithering. Bitmasking?