CodeWalrus

General => Tech, Science, IT discussion & News => Topic started by: xMarminq_ on October 07, 2016, 02:30:22 am

Title: Did anyone create a video player for TI-84 Plus CE?
Post by: xMarminq_ on October 07, 2016, 02:30:22 am
Is there anything that has been done or in development?

If there isn't, m idea would be there being a video to image converter, then a resolution converter and then making a program that would link them together (Non-Calc), and then a program on the calc to run it. Make it 30 fps or more if the calc can handle it. I've seen the TI-84 Plus version on Cemetech.

Thanks for reading and/or helping!
Title: Re: Did anyone create a video player for TI-84 Plus CE?
Post by: DJ Omnimaga on October 07, 2016, 02:48:31 am
Not yet. It happened on monochrome calculators and the TI-Nspire (monochrome model), though. For the CE it would probably require a lot of compression, though, to keep the file size down, since the calculator only has 3 MB of archive. I don't think speed would be a big problem, though. What could be done to keep the size down without too much of a speed decrease is using a lower resolution, scaled up, in 4 bits mode (16 colors). 12-15 FPS would probably be better for size reasons, but I bet 30 would be easy, speed-wise. You can also crop the borders so that the video is actually 144x104 or something or 288x208 with no zoom.

320x240, 8-bits, 30 FPS: 1 second of video
160x120, 8-bits, 15 FPS: 10 seconds of video
160x120, 8-bits, 12 FPS: 13 seconds
160x120, 8-bits, 10 FPS: 15 seconds
144x104, 8-bits, 15 FPS: 13 seconds
144x104, 8-bits, 12 FPS: 16 seconds
144x104, 8-bits, 10 FPS: 20 seconds
96x64, 8-bits, 15 FPS: 32 seconds (this is if you used 3x zoom)
96x64, 8-bits, 12 FPS: 40 seconds
96x64, 8-bits, 10 FPS: 48 seconds
320x240, 4-bits, 30 FPS: 2 seconds
160x120, 4-bits, 15 FPS: 20 seconds
160x120, 4-bits, 12 FPS: 26 seconds
160x120, 4-bits, 10 FPS: 30 seconds
144x104, 4-bits, 15 FPS: 26 seconds
144x104, 4-bits, 12 FPS: 32 seconds
144x104, 4-bits, 10 FPS: 40 seconds
96x64, 4-bits, 15 FPS: 1 minute 4  seconds
96x64, 4-bits, 12 FPS: 1 minute 20  seconds
96x64, 4-bits, 10 FPS: 1 minute 36 seconds

At 4 bits it would be 16 colors, though, so to keep a decent quality dithering would have to be used. 320x240 is not viable unless you use 2-bits grayscale and/or a very low framerate.

This is the TI-Nspire player, by the way: http://www.ticalc.org/archives/files/fileinfo/439/43939.html (sadly, the source code was never released). Of course, though, if you are interested in learning to program, you can always give it a try once you gain more experience, though. :)
Title: Re: Did anyone create a video player for TI-84 Plus CE?
Post by: c4ooo on October 07, 2016, 03:31:54 am
Yes there is ;) ;)

Kinda bogged down by lack of motivation though :(
Title: Re: Did anyone create a video player for TI-84 Plus CE?
Post by: DJ Omnimaga on October 07, 2016, 03:36:44 am
Oh you're working on one? I didn't know that, especially since you had some other projects already (such as WalriiMon, Lazer CE, etc). Motivation is hard to come by, though, especially when busy. <_<

:3=
Title: Re: Did anyone create a video player for TI-84 Plus CE?
Post by: c4ooo on October 07, 2016, 02:57:48 pm
Yep. I basically lost motivation for CE projects after i got tired of debugging bugs with the shell i was working on. (Dropped that project :( ). Lost motivation for PC projects about a month ago when school started.

On the subject though, one of the problems with making a video player is the memory constraint.  80*60 @6 bpp would take 3600 bytes per frame. 160*120 @4 bpp would take 9600. That, plus the palate size.
Title: Re: Did anyone create a video player for TI-84 Plus CE?
Post by: p2 on October 07, 2016, 03:03:58 pm
and external memory like a usb stick are impossible?
Title: Re: Did anyone create a video player for TI-84 Plus CE?
Post by: c4ooo on October 07, 2016, 03:05:42 pm
Sure but that removes 99% of the audience.
Title: Re: Did anyone create a video player for TI-84 Plus CE?
Post by: p2 on October 07, 2016, 03:06:55 pm
yeah might be right about that... :(

Sad to hear you lost your motivation.
Title: Re: Did anyone create a video player for TI-84 Plus CE?
Post by: WholeWheatBagels on October 07, 2016, 03:07:28 pm
Plus whatever program is used to play the video will also take up memory.
Title: Re: Did anyone create a video player for TI-84 Plus CE?
Post by: p2 on October 07, 2016, 03:16:17 pm
yess also you can't act like your program is the only one they will have on their calc. at max. 50% of the memory belongs to one program xD
But that still doesnt solve the problem. In fact it only makes it worse...
Title: Re: Did anyone create a video player for TI-84 Plus CE?
Post by: c4ooo on October 07, 2016, 03:16:53 pm
@p2 thank you :-\

The resolution could be probably be doubled without taking up more memory by just interpolating pixels and not get to much of a quality decrease.

Edit: also video programs on TI84 are much easier to make becouse the screen is much smaller and only 1-bit. Even with 2 bit greyscale its 1536 per frame.
Title: Re: Did anyone create a video player for TI-84 Plus CE?
Post by: p2 on October 07, 2016, 03:18:44 pm
still sounds cool... having 48h of pr0n Legally Bought Disney Movies on ur flash drive and watching it on a *calculator* ;D
Title: Re: Did anyone create a video player for TI-84 Plus CE?
Post by: c4ooo on October 07, 2016, 03:29:58 pm
Also, do you really want to use 4 bit? Your pr0n movie wont look so good :P
(https://codewalr.us/proxy.php?request=http%3A%2F%2Fwww.vbforums.com%2Fattachment.php%3Fattachmentid%3D66123%26amp%3Bstc%3D1%26amp%3Bd%3D1219084696&hash=f89939674b3480c4cefec97517c80049)
My desktop in 4bpp:
(https://codewalr.us/proxy.php?request=http%3A%2F%2Fimgur.com%2Fa3CW4YO.png&hash=b0f2bce68a809f44ba439454a9b6550b)
Title: Re: Did anyone create a video player for TI-84 Plus CE?
Post by: p2 on October 07, 2016, 03:42:14 pm
U use Paint.net? nice! :D
btw you got Morrowind twice (on time the direct exe on time a launcher for it. Maybe should remove one of them) :)
aaand yess... the color settings are a little bit annoying.
But for our beloved disney movies we don't need those colors anyways.  :thumbsup:
We need Red, Yellow, Pink instead of Red, green, blue.
So modifying the color palette should improve the quality :3
Title: Re: Did anyone create a video player for TI-84 Plus CE?
Post by: TheMachine02 on October 07, 2016, 03:54:46 pm
You also need to keep in mind that because we don't have appv, we are limited at 64K for one program/appv. That mean you will need to fetch data from appv and switch appv from time to time, which may cause hitching in your video  :P
Title: Re: Did anyone create a video player for TI-84 Plus CE?
Post by: DJ Omnimaga on October 07, 2016, 03:58:17 pm
Darn I forgot about the 64 KB limit. That's gonna be a lot of appvars for a 3 MB movie O.O
Title: Re: Did anyone create a video player for TI-84 Plus CE?
Post by: TheMachine02 on October 07, 2016, 03:59:41 pm
Well, about 48 appv for a 3Mb movie. This is a lot  :P
Title: Re: Did anyone create a video player for TI-84 Plus CE?
Post by: c4ooo on October 07, 2016, 04:09:15 pm
One wondering how the user will view it though. A central program to view all the gifs on the calc? Or maybe somehow make the gif a runnable file that executes the gif viewer, or maybe even embed the gif viewer in the gif? (As long as it isn't too big)
Title: Re: Did anyone create a video player for TI-84 Plus CE?
Post by: DJ Omnimaga on October 07, 2016, 04:20:41 pm
A central program would work.
Title: Re: Did anyone create a video player for TI-84 Plus CE?
Post by: c4ooo on October 07, 2016, 08:06:44 pm
Here's how i'm doing it: :)
Quote
The user "opens' the gif with Asm(GifFile
That program has a small header which prints a small flag in free ram and then executes the gif reader.
The gif reader checks to see if the flag exists, and if it does, it uses the flag to determine the filename of the gif to open.
After the gif's header is the data, and the reader reads that.
Title: Re: Did anyone create a video player for TI-84 Plus CE?
Post by: MateoConLechuga on October 07, 2016, 08:16:10 pm
Sounds like it would make a lot more sense to just convert the gif beforehand rather than whatever that is :p
Title: Re: Did anyone create a video player for TI-84 Plus CE?
Post by: c4ooo on October 07, 2016, 08:30:17 pm
and how are you going to view your converted gif?...
(The quote has nothing to do with converting gifs >_> )