Omnimaga

Calculator Community => Other Calc-Related Projects and Ideas => TI Z80 => Topic started by: thepenguin77 on July 08, 2011, 12:46:55 am

Title: TruVid - 4 level grayscale video with sound
Post by: thepenguin77 on July 08, 2011, 12:46:55 am
That's right, I'm keeping with tradition of names by using Tru, but I'm also breaking the mold by making a 6 letter app name.

I think this video should sum it up.



Basically, I started this a while ago, but then USB called me and I stopped working on it. However, seeing Sircmpwn playing music from his flash drive energized me to finish this. From the classical estimates, this should be impossible, grayscale takes 50% of the processor while sound takes 90%, so how did I do it? Triple threading!!! I am actually doing 3 different things at once on this program. I am playing sound, updating grayscale, and copying new video data, all at once.

I think one of the humorous parts of this is the insane data rate. The video runs at 10 fps, 10 * 768 * 2 = 15,360 Bytes/s. The sound runs between 17,500 Bytes/s and 20,000 Bytes/s. So that's a total of 34KB/s. That means it burns through Mirage in .5 sec! At this rate, the 84+SE can hold about 45 seconds and the 84+BE can hold around 15. But hey, this is full video on the calculator.

I'm also trying to make the conversion process user friendly this time. I'm terrible at directshow and such, but so far, I have the inputs to my program as <soundfile.wav> <videoFile.wmv> where the sound is a .wav and the video file is a .wmv at 192x128 and 30 fps, which is relatively easy to do. I wanted to let you input 1 file and your cpu speed, but I couldn't even resize the BMP's for the video through Windows's routines, I had to do it by hand ;D


From an asm standpoint, this program is insane. First off, you take a grayscale video program. I am displaying a grayscale buffer at 60Hz and copying in new data at 10Hz. That's nothing special, but then I overlay sound interrupts running at 40Khz over top of that. These interrupts lower my base cpu speed to 500KHz, which is just enough time to copy in a new picture :D Better yet, for the first time, I'm using all 3 crystal timers, 2 of which are producing nested interrupts.

And you know, since it's me, perfect grayscale. It's not adjustable yet, but it will be.

In my current setup, I have video and audio looping independently, in the numa numa, assuming you are using the right processor speed, the video and sound are supposed to be the same length, however, the sound ends up being slightly longer since you can't interrupt instructions (which also causes the white noise.) But, I might be able to adjust for that. I could make them loop together, but I'm setting up for Nyan Cat ;D

Here's the source and some samples of this video. I included samples clocked for 15Mhz (wabbit), 15.65Mhz, and 16.3Mhz (mine). So use them if you want. I just have two warnings, 1) I don't think these apps will validate on the calculator, I used a workaround, but it does take a 1/2 hour to send, 2) these sound dreadful in wabbitemu, there's not much that can be done about that.

So have fun. (If you can't figure out how to run it and crash your calculator, I lol at you)

Edit:
    New download link (https://docs.google.com/leaf?id=0BwCVAkfyn6_vMDEwYTQ4N2QtMGMzMy00ZDE1LWIyNWYtNTU4YWZkYjk1MDgy&hl=en_US)
Title: Re: TruVid - 4 level grayscale video with sound
Post by: SirCmpwn on July 08, 2011, 12:50:24 am
Pure awesomeness.  I haven't seen a cooler thing in a while.
I'll also be attempting something similar, at a much lower quality from a flash drive soon.
Title: Re: TruVid - 4 level grayscale video with sound
Post by: Juju on July 08, 2011, 12:57:14 am
Well yeah that would be awesome if ran from a flash drive.

Also this deserve front page news.
Title: Re: TruVid - 4 level grayscale video with sound
Post by: JustCause on July 08, 2011, 01:06:32 am
WHA...No...brown...text...

I bow to you, good sir.
Title: Re: TruVid - 4 level grayscale video with sound
Post by: fb39ca4 on July 08, 2011, 01:13:48 am
...
Why? ? ? Why? ? ?
.../me wonders what motivates people to do these kinds of things...
Seriously, this is epic stuff. :thumbsup: Can you make a rickroll version of this, for added awesomeness?
Title: Re: TruVid - 4 level grayscale video with sound
Post by: z80man on July 08, 2011, 01:25:23 am
My life is now complete and death will descend upon me like a dove.                         j/k

This is more than epic, it is cipe which is epic spelled backwards. Still trying to send to my calc but what else should I expect from what is almost the max possible app size on the 84+ SE
Title: Re: TruVid - 4 level grayscale video with sound
Post by: ralphdspam on July 08, 2011, 03:49:56 am
O.O
thepenguin77=awesome
Title: Re: TruVid - 4 level grayscale video with sound
Post by: Munchor on July 08, 2011, 05:14:26 am
That's phenomenal thepenguin77, no words to describe the awesomeness of TruVid.

1. I love the song and it makes it all better :P
2. The quality of both the sound and the video are awesome
3. The speed is also great for a calculator

Amazing job!
Title: Re: TruVid - 4 level grayscale video with sound
Post by: TIfanx1999 on July 08, 2011, 08:34:14 am
I remember hearing you talk about this on IRC. This is simply fantastic. I love how you are constantly pushing the bounds of what was thought to be possible. Also, please take some time to clean up your work desk, that thing is freakin messy! :P
Title: Re: TruVid - 4 level grayscale video with sound
Post by: Stefan Bauwens on July 08, 2011, 08:37:50 am
THIS IS EPIC.
Title: Re: TruVid - 4 level grayscale video with sound
Post by: Camdenmil on July 08, 2011, 08:52:10 am
The epicness factor of this... *.*
Title: Re: TruVid - 4 level grayscale video with sound
Post by: ztrumpet on July 08, 2011, 11:01:00 am
This is incredinble.  I can't believe this is possible even though you've showed up that it is. :P  Wow.  Thepenguin, you are an incredible coder. ;D
Title: Re: TruVid - 4 level grayscale video with sound
Post by: yunhua98 on July 08, 2011, 11:21:52 am
Wow...  That is EPIC!  now for the Nspires...  :P
Title: Re: TruVid - 4 level grayscale video with sound
Post by: thepenguin77 on July 08, 2011, 11:32:58 am
Thanks to a suggestion by runer, I'm now trying to dither the videos. It's actually a lot easier than you think. I'm using the Floyd-Steinberg style of dithering (http://en.wikipedia.org/wiki/Floyd%E2%80%93Steinberg_dithering).

So the question is, what looks best?
ThresholdDithering
Relative(http://img.removedfromgame.com/imgs/threshold_relative.gif)(http://img.removedfromgame.com/imgs/dithering_relative.gif)
Absolute(http://img.removedfromgame.com/imgs/threshold_absolute.gif)(http://img.removedfromgame.com/imgs/dithering_absolute.gif)

For the absolute vs. relative, that's how I calculate my cutoffs for the different levels of gray. In relative, each frame I calculate the cutoffs so that there are roughly an equal number of all 4 colors, for absolute, I just set the cutoffs at 0x40, 0x80, and 0xC0.

I don't know which one I like best, the one in my original video is the relative threshold. The dithering ones don't look that good, but I know they'll look different on a real calculator.

(Tables are scary to make)
Title: Re: TruVid - 4 level grayscale video with sound
Post by: TIfanx1999 on July 08, 2011, 11:43:35 am
I think I like the one with the relative threshold and dithering the best. I gives the best color balance (it isn't too dark) and the dithering makes the detail look a bit clearer.
Title: Re: TruVid - 4 level grayscale video with sound
Post by: JosJuice on July 08, 2011, 11:44:33 am
Relative dithering seems to be the best one, but absolute dithering also pretty decent.
Title: Re: TruVid - 4 level grayscale video with sound
Post by: ztrumpet on July 08, 2011, 11:56:00 am
I think I like Relative Dithering the best.
Title: Re: TruVid - 4 level grayscale video with sound
Post by: Runer112 on July 08, 2011, 12:02:57 pm
I had a feeling dithering would make the whole video look better by making each individual frame look better, and it looks like that might be the case! :)
Title: Re: TruVid - 4 level grayscale video with sound
Post by: Lionel Debroux on July 08, 2011, 12:19:42 pm
Congratulations for this technical feat ;)
I'm somewhat disappointed that the sample video isn't a rickroll :D

On the sample video, I like the top-left one, Relative - Threshold, best. The ones with dithering, in the right column, continuously show horrible pixel jitter. It would probably look less bad on a real calculator than on the emulator, but some kinds of lighting will reveal the jitter and video quality will suck.
(on this sample, I think that the one I like best is the raw version you showcased on YouTube :) )
Title: Re: TruVid - 4 level grayscale video with sound
Post by: Deep Toaster on July 08, 2011, 12:21:38 pm
That's right, I'm keeping with tradition of names by using Tru, but I'm also breaking the mold by making a 6 letter app name.

zStart also has six.

I think this video should sum it up.

I still can't believe it... That's a real calculator, with a real LCD showing a real video, while playing sound in perfect time out of the link port? What have you done? D:

I think one of the humorous parts of this is the insane data rate. The video runs at 10 fps, 10 * 768 * 2 = 15,360 Bytes/s. The sound runs between 17,500 Bytes/s and 20,000 Bytes/s. So that's a total of 34KB/s. That means it burns through Mirage in .5 sec! At this rate, the 84+SE can hold about 45 seconds and the 84+BE can hold around 15. But hey, this is full video on the calculator.

Or a fifth of a rickroll O.O

And you know, since it's me, perfect grayscale. It's not adjustable yet, but it will be.

Again, wow.

In my current setup, I have video and audio looping independently, in the numa numa, assuming you are using the right processor speed, the video and sound are supposed to be the same length, however, the sound ends up being slightly longer since you can't interrupt instructions (which also causes the white noise.) But, I might be able to adjust for that. I could make them loop together, but I'm setting up for Nyan Cat ;D

Oh crap... And disable keypresses so the user can't get out, then make zStart it so it starts up again after the user pulls a battery >:D

EDIT: Absolute dithering. That way it doesn't look weird if the video jumps from a dark scene to a bright light.
Title: Re: TruVid - 4 level grayscale video with sound
Post by: Runer112 on July 08, 2011, 12:24:30 pm
On the sample video, I like the top-left one, Relative - Threshold, best. The ones with dithering, in the right column, continuously show horrible pixel jitter. It would probably look less bad on a real calculator than on the emulator, but some kinds of lighting will reveal the jitter and video quality will suck.

I was a little worried about that myself, but I'd like to see how it looks on a real calculator first. And if it does look too jittery, he can try using positioned dithering instead. That would drastically reduce any jitter, while hopefully still maintaining a decent looking video.
Title: Re: TruVid - 4 level grayscale video with sound
Post by: FinaleTI on July 08, 2011, 01:11:26 pm
This is amazing! I'm sure the dithering will look better on a real calc.
Title: Re: TruVid - 4 level grayscale video with sound
Post by: Jim Bauwens on July 08, 2011, 02:39:59 pm
I must say, this is very impressive!
I didn't know sound from a calculator could be that good!
Title: Re: TruVid - 4 level grayscale video with sound
Post by: SirCmpwn on July 08, 2011, 03:03:30 pm
Also, bonus points for emailing me the app and the video early :)
Title: Re: TruVid - 4 level grayscale video with sound
Post by: thepenguin77 on July 08, 2011, 03:57:47 pm
Well, Lionel was right as I suspected, there is quite a bit of visual noise when you play the videos on the calculator. Clearly there is more visual depth, but also more static.



The best range to view this at is about 4 feet in an averagely lit room, however I filmed this at 3 inches in a very well lit room.

Edit: Forgot to finish my post
    Next I'm planning to do some ordered dithering, hopefully this should reduce the noise.
Title: Re: TruVid - 4 level grayscale video with sound
Post by: Runer112 on July 08, 2011, 06:04:41 pm
Personally, I think the dithered video, although noisy, looks far better than the undithered video. In most cases, I don't see why anyone would be viewing their calculator from less than about a foot away, so the noise from the dithering shouldn't be too prominent. And I'm not really sure if ordered dithering would make things better or worse, though. It would result in less noise, but it might also look strange to apply to a video, as I imagine it would appear as if the objects in the video are actually moving under the dithering, not moving with it.
Title: Re: TruVid - 4 level grayscale video with sound
Post by: calcdude84se on July 08, 2011, 07:10:53 pm
That's a ridiculous throughput. I'd ask for compression, but the answer is definitely "no" unless you want to give up sound quality or framerate (nope :P).
Congratulations! :D
Title: Re: TruVid - 4 level grayscale video with sound
Post by: ralphdspam on July 08, 2011, 07:20:11 pm
Wow, the dithering makes it look even better!  I wonder if ordered dithering would lessen the static or add the a crosshatch artifact.  Either way, the project is making great progress!  :D
Title: Re: TruVid - 4 level grayscale video with sound
Post by: Ashbad on July 08, 2011, 07:22:12 pm
I suggest dithering as only an option, and maybe perhaps lower sound quality (edit: also as an option) for slightly longer vids?
Title: Re: TruVid - 4 level grayscale video with sound
Post by: thepenguin77 on July 08, 2011, 08:10:41 pm
I can't lower the sound quality, it's already as low as I can make it. I would have two options for lowering the sound rate, slow down my interrupts, or half the data rate by changing bytes every other interrupt.

If I slow down my interrupts, that means that you are going to hear a high pitch sound when you listen to the videos. Imagine what it sounds like in wabbitemu, except it's real.

If I half the data rate, (I can't reduce it in any way but half), you would have a sample rate of 9Khz, which is just unheard of. I don't know how that would sound, but it wouldn't sound good. I would imagine that high pitch noises would get clipped.


I'll make dithering an option unless I find something that really works, which I might.
Title: Re: TruVid - 4 level grayscale video with sound
Post by: TIfanx1999 on July 08, 2011, 08:33:44 pm
Personally, I think the dithered video, although noisy, looks far better than the undithered video. In most cases, I don't see why anyone would be viewing their calculator from less than about a foot away, so the noise from the dithering shouldn't be too prominent. And I'm not really sure if ordered dithering would make things better or worse, though. It would result in less noise, but it might also look strange to apply to a video, as I imagine it would appear as if the objects in the video are actually moving under the dithering, not moving with it.
I'd have to say I agree completely.
Title: Re: TruVid - 4 level grayscale video with sound
Post by: thepenguin77 on July 09, 2011, 04:15:26 pm
Ok, I finished ordered dithering. I used a strange pattern so that I wouldn't get the crosshatches because I don't like them, although it results in diagonal lines, but i think that looks better.

I also changed my relative cutoffs calculation so that it tries to avoid counting boarders. If 10% of the screen is the exact same brightness, it just doesn't count that shade because most likely it is a boarder, this leads to more colors being available for the actual video itself.

So with the new changes, here are the results:
ThresholdF-S Dithering
(http://img.removedfromgame.com/imgs/newThreshold.gif)(http://img.removedfromgame.com/imgs/newDithered.gif)
Ordered DitheringHeavy Ordered DitheringBoth!?!
(http://img.removedfromgame.com/imgs/newMediumFilter.gif)(http://img.removedfromgame.com/imgs/newHeavyFilter.gif)(http://img.removedfromgame.com/imgs/newBoth.gif)

Title: Re: TruVid - 4 level grayscale video with sound
Post by: GreenFreak on July 09, 2011, 04:17:08 pm
I like the F-S Dithering version most...
Title: Re: TruVid - 4 level grayscale video with sound
Post by: Runer112 on July 09, 2011, 04:23:57 pm
thepenguin77, how about you release a demo application of about 25 seconds of video, with every 5 seconds using a different dithering method? Wabbitemu is nice, but when testing visuals like this, it often doesn't completely accurately represent what it will look like on a real calculator, mainly regarding blur and actual pixel response time.

But just from the wabbitemu screen captures, I think the Floyd-Steinberg dithering looks the best. It looks the most noisy, but that actually helps to blend colors better together and more accurately represent the original image. Seeing it on a calcuator could change my opinion, though.
Title: Re: TruVid - 4 level grayscale video with sound
Post by: thepenguin77 on July 09, 2011, 07:54:18 pm
Here (https://docs.google.com/leaf?id=0BwCVAkfyn6_vNzI4ZTQ5ZWUtZTg3Yy00ODIzLWEzMzEtNTUyOGFjMzhmNmZk&hl=en_US) is a test video for anyone who want to see the differences between the dithering techniques. It's charlie bit my finger because that video is really consistent and is not fast moving. The app is 28 pages and has only .2 sec of sound, so don't plug in your headphones. But best of all, it's valid!

I'll let you figure out which dithering is which, but if you've been paying attention, it should be obvious.

Edit:
   I forgot to include the runner, here it is.
Title: Re: TruVid - 4 level grayscale video with sound
Post by: critor on July 10, 2011, 05:24:31 am
Great! :)

Does it also work on TI-83+SE and on TI-83+?
Title: Re: TruVid - 4 level grayscale video with sound
Post by: calcdude84se on July 11, 2011, 11:53:41 am
TI-83+SE, yes. (It has the crystal timers and as much ROM as the 84+SE). Not so for the 83+, though, which doesn't, among other things, have the crystal timers.
Title: Re: TruVid - 4 level grayscale video with sound
Post by: GreenFreak on July 11, 2011, 03:01:25 pm
Can you make a smaller version of it, please?  :(
I really want to try it on my Ti-84+BE  (320kb arch free) ::)
(maybe with Nyan Cat^^)

I would be very happy, if you do that for me  ::)

Title: Re: TruVid - 4 level grayscale video with sound
Post by: JosJuice on July 11, 2011, 03:42:51 pm
Can you make a smaller version of it, please?  :(
I really want to try it on my Ti-84+BE  (320kb arch free) ::)
(maybe with Nyan Cat^^)

I would be very happy, if you do that for me  ::)


I think that would be quite hard. The calculator can't decompress data efficiently since there's so much processing time used for just the sound. If you take a look at a video file for computers, it might even be several hundred megabytes, so it's hard to make it small enough to fit on a calculator! (Calc videos do have a lower resolution, but it still takes a lot of place to store both audio and video.
Title: Re: TruVid - 4 level grayscale video with sound
Post by: GreenFreak on July 11, 2011, 03:57:48 pm
What about to disable the sound? And to lower the FPS?
Title: Re: TruVid - 4 level grayscale video with sound
Post by: ztrumpet on July 11, 2011, 03:59:19 pm
To disable the sound, I recommend this: http://ourl.ca/8984/168820
Title: Re: TruVid - 4 level grayscale video with sound
Post by: thepenguin77 on July 11, 2011, 04:16:29 pm
Can you make a smaller version of it, please?  :(
I really want to try it on my Ti-84+BE  (320kb arch free) ::)
(maybe with Nyan Cat^^)

I would be very happy, if you do that for me  ::)

Yeah, sorry about making it 25 seconds long, it doesn't have sound though. But actually, the file is only 475136 bytes on my calculator, so it would fit if you deleted everything. (and yes, if you want sound/video on an 84+BE, you are going to have to delete everything)

To disable the sound, I recommend this: http://ourl.ca/8984/168820

zTrumpet has a very good point though, back on this project, I think I compressed the videos like 40% because I didn't have sound to worry about, so I'm sure one of those files will fit :D And I'm going to try to get Nyan Cat to fit when I make it, and if it doesn't, Nyan Cat OS!!!
Title: Re: TruVid - 4 level grayscale video with sound
Post by: calcdude84se on July 11, 2011, 04:22:37 pm
And I'm going to try to get Nyan Cat to fit when I make it, and if it doesn't, Nyan Cat OS!!!
928KiB of just Nyan Cat! (On an 84+) ;D
Title: Re: TruVid - 4 level grayscale video with sound
Post by: GreenFreak on July 11, 2011, 05:25:10 pm
Whats that?? O.O sounds epic (Nyan Cat OS)
Title: Re: TruVid - 4 level grayscale video with sound
Post by: fb39ca4 on July 11, 2011, 05:27:31 pm
It should support sending itself to other calculators. Spread the Cat!!! (leaving behind a trail of calculators that can't do anything but play the nyan cat animation)
Title: Re: TruVid - 4 level grayscale video with sound
Post by: GreenFreak on July 11, 2011, 06:34:19 pm
 ;D That was a joke, right?  ;D
Title: Re: TruVid - 4 level grayscale video with sound
Post by: Darl181 on July 11, 2011, 06:55:45 pm
You could add that to 2.71 :P
Title: Re: TruVid - 4 level grayscale video with sound
Post by: GreenFreak on July 11, 2011, 07:00:28 pm
I really want to have this animation on my TI. ;D
Title: Re: TruVid - 4 level grayscale video with sound
Post by: TIfanx1999 on July 12, 2011, 08:11:56 am
Well I tried this out on calc. In my opinion F-S dithering looks the best, and Heavy ordered dithering looks the second best.
Title: Re: TruVid - 4 level grayscale video with sound
Post by: GreenFreak on July 12, 2011, 12:23:57 pm
I've converted the Nyan Cat gif into 12 .bmp frames ;D
Do they have to be in greyscale?
Title: Re: TruVid - 4 level grayscale video with sound
Post by: thepenguin77 on July 12, 2011, 12:27:23 pm
I've converted the Nyan Cat gif into 12 .bmp frames ;D
Do they have to be in greyscale?

That doesn't help me at all :). All I need is .wmv file that is 192x128 and at 30 fps. But don't worry about it, I'll get it, that's not the hard part of getting nyan cat to work, the actual program is what needs some tweaking.
Title: Re: TruVid - 4 level grayscale video with sound
Post by: GreenFreak on July 12, 2011, 12:52:07 pm
Does the .wmv need to be in greyscale?
Title: Re: TruVid - 4 level grayscale video with sound
Post by: thepenguin77 on July 12, 2011, 12:53:14 pm
No, color is better in fact. But don't worry about it, I'll take care of it, Nyan Cat is probably still a few days away.
Title: Re: TruVid - 4 level grayscale video with sound
Post by: GreenFreak on July 12, 2011, 01:06:03 pm
Finished^^
I found a programm that should be able to convert everything to wmv...
http://www. weqsoft.com/wmv-converter.htm
but it's only shareware..

Better (and FREE) program is "Format Factory"!   ;)
I only used the other program because it can convert .gif's to wmv...
Title: Re: TruVid - 4 level grayscale video with sound
Post by: thepenguin77 on July 15, 2011, 02:00:16 pm
Nyan Cat Update !!!



I used my good camera this time, you can see the individual pixels. The setup here was no dithering and relative cutoffs.


I have made so many changes to this that I hope I can remember them all:



And for everyone who want to play NyanCat, here is the 84+ BE edition (https://docs.google.com/viewer?a=v&pid=explorer&chrome=true&srcid=0BwCVAkfyn6_vM2ZmNzk5YTMtODEwZi00NzNmLThkOTEtYTFlNjE4ODAyMzcz&hl=en_US) and the 83+/84+ SE edition (https://docs.google.com/viewer?a=v&pid=explorer&chrome=true&srcid=0BwCVAkfyn6_vZmYzYTNhZmMtMDlhZC00OTZjLTljZDQtZTRmMWNjNjA5Y2Rj&hl=en_US). The SE version is 37 pages and the BE version is 33 pages because I left out the intro.

In each of the .zip's, I included every possible dithering style I can do. They are named based on their command prompt flags:
Title: Re: TruVid - 4 level grayscale video with sound
Post by: calcdude84se on July 15, 2011, 02:22:31 pm
Obligatory +1 ;D
Congratulations! I wish I had the adapter to try this! Epic.
Title: Re: TruVid - 4 level grayscale video with sound
Post by: p2 on July 15, 2011, 02:24:02 pm
GreenFreaks Icon!
I'm sure GreenFreak will download this!!

looks (and sounds) really great!

+1
Title: Re: TruVid - 4 level grayscale video with sound
Post by: ztrumpet on July 15, 2011, 07:21:27 pm
This is ridiculous.  This is going on my calc as soon as the contest is over! :D
Awesome! :D :D
Title: Re: TruVid - 4 level grayscale video with sound
Post by: GreenFreak on July 15, 2011, 07:37:54 pm
Noooo! TI connect tells me: Insufficient memory!
I tried the BE version and the whole memory of my TI-84+ BE is empty (491k bytes free) :(
Title: Re: TruVid - 4 level grayscale video with sound
Post by: thepenguin77 on July 15, 2011, 07:42:52 pm
GreenFreak, you have to run NyanMem.8xp first, I included it with the apps. Then you'll have 557,056 bytes free and you'll be good to go.

Edit:
   Just make sure you're not on OS 2.55.
Title: Re: TruVid - 4 level grayscale video with sound
Post by: GreenFreak on July 15, 2011, 07:46:39 pm
But I've the TI-84 BE :(
Title: Re: TruVid - 4 level grayscale video with sound
Post by: thepenguin77 on July 15, 2011, 07:49:08 pm
Correct, neither of them fit normally on the BE. However, after you run NyanMem.8xp, the BE apps will just barely fit, which is what you want.
Title: Re: TruVid - 4 level grayscale video with sound
Post by: GreenFreak on July 15, 2011, 07:52:50 pm
O.o really?

EDIT: When tried to send the app I got a RAM-clear...

EDIT2: When trying to send the app, the cals shows "Error in Xmit" for a second and then turns off. TIConnect says that I should try again, but when I do this the calc turns on and I get a RAM-clear.
Title: Re: TruVid - 4 level grayscale video with sound
Post by: thepenguin77 on July 15, 2011, 10:57:52 pm
Yeah, I forgot about some other stuff the OS does. But I think I have the solution, though, we won't know until my app finishes sending, which will be in half an hour.

For now, just run NyanMem again and uninstall it.

Edit:
   Here you go, I actually tested it this time ;D. Clear mem, run this, and send the app, I have no idea why it works, but it does.
Title: Re: TruVid - 4 level grayscale video with sound
Post by: JosJuice on July 16, 2011, 03:44:47 am
I transfered Nyan cat to my calc yesterday. IT'S AWESOME :w00t:
Title: Re: TruVid - 4 level grayscale video with sound
Post by: GreenFreak on July 16, 2011, 06:49:03 am
I can't get it work -.-" I have the same problem as before.

EDIT: I do complete mem-reset --> send the new "nyanmem" from reply #63 --> run it --> "For NyanCat" --> (after "Success") "Quit" -->try to send th app --> screenshot 1 (and calc turns off) --> retry --> (calc turns on) RAM-cleared --> screenshot 2

EDIT2: I noticed that I can't send any app anymore X.x Everytime I get this "Error in Xmit" problem :'(
What can I do?!
Title: Re: TruVid - 4 level grayscale video with sound
Post by: thepenguin77 on July 16, 2011, 12:55:49 pm
Umm... Ok, here is what I did. Clear mem, run NyanMem, Clear Ram, send the app. That clear ram is actually pretty important for this to work.

If you can't send apps, just clear mem again. Sorry for this being so difficult :-\, you're basically tricking your calculator into doing something it shouldn't. However, I did manage to send an app that was bigger than NyanCat relative to my calculator.
Title: Re: TruVid - 4 level grayscale video with sound
Post by: GreenFreak on July 16, 2011, 01:16:37 pm
Can't you make a even smaller version, so that we don't need this (dangerous) trick?
Title: Re: TruVid - 4 level grayscale video with sound
Post by: thepenguin77 on July 16, 2011, 01:31:00 pm
No, this is as small as I can make it without leaving part of it out.

And it's not really dangerous, your calc is empty anyways. It's not like you're going to lose all of your files.
Title: Re: TruVid - 4 level grayscale video with sound
Post by: GreenFreak on July 16, 2011, 01:36:44 pm
Then leave a part out ;D
Title: Re: TruVid - 4 level grayscale video with sound
Post by: ztrumpet on July 16, 2011, 02:47:25 pm
You could always just speed up the tempo. ;)
Title: Re: TruVid - 4 level grayscale video with sound
Post by: ralphdspam on July 16, 2011, 10:24:50 pm
No, this is as small as I can make it without leaving part of it out.

And it's not really dangerous, your calc is empty anyways. It's not like you're going to lose all of your files.
You could always just speed up the tempo. ;)
or... Nyan OS!!!  :P
(Oh, I'm never falling for an April Fools trick again.  (and yes, I'm still not over it))
Title: Re: TruVid - 4 level grayscale video with sound
Post by: thepenguin77 on July 17, 2011, 06:44:18 pm
Ok, I'm finally done, (I hope.) Here's the video that will go in the ticalc.org description, complete with a full tutorial on how to make the video files.



Here is also the converter with a readme and it's related filesystem. If this passes the test, it's going to ticalc.org.
Title: Re: TruVid - 4 level grayscale video with sound
Post by: ben_g on July 17, 2011, 06:58:53 pm
is there any way to use an .avi file instaed of a .vwm and a .wav file? Is there a convertor for that?

btw: what I really would like to see in a future version is an option to select the quality so you can have more than 14 (on not SE calcs) or 45 (on SE calcs) secounds of video on it. What also would be great, but i doubt that it's possible, would be reading from an USB flash drive.
Title: Re: TruVid - 4 level grayscale video with sound
Post by: annoyingcalc on July 17, 2011, 08:01:51 pm
can you upload the rickroll video app
I have trouble with .wmv, I get about 720,640 pixels or so
( lov e the nyan cat )
Title: Re: TruVid - 4 level grayscale video with sound
Post by: FinaleTI on July 17, 2011, 09:20:50 pm
I tried to get this to work, but even after following all the instructions, I get no page count field error.
Title: Re: TruVid - 4 level grayscale video with sound
Post by: annoyingcalc on July 18, 2011, 09:25:47 am
Bug install nyan cat twice or normal twice and run NyanCat all but 3 programs are deleted nyammem is ALWAYS kept and all appvars are cleared apps are fine though
Title: Re: TruVid - 4 level grayscale video with sound
Post by: thepenguin77 on July 18, 2011, 06:07:36 pm
is there any way to use an .avi file instaed of a .vwm and a .wav file? Is there a convertor for that?

btw: what I really would like to see in a future version is an option to select the quality so you can have more than 14 (on not SE calcs) or 45 (on SE calcs) secounds of video on it. What also would be great, but i doubt that it's possible, would be reading from an USB flash drive.

The problem with using a .avi file is that I don't have a way to change the bitrate. I'm not very good at win32 and that takes quite a bit of work to make it happen, (including external libraries like FFDShow)

Quality could be possible I guess. I could allow for 4 bit sound and 5 fps. I can imagine that looking and sounding horrible, but it's possible. I'm somewhat looking into USB, but I highly doubt that's going to happen.

can you upload the rickroll video app
I have trouble with .wmv, I get about 720,640 pixels or so
( lov e the nyan cat )

I will soon, although I deleted all of them, so I'll have to remake the videos.


I tried to get this to work, but even after following all the instructions, I get no page count field error.

Where do you get that error at? Is that at TiConnect? If it is, it's probably to8xk malfunctioning or something and I'll pinpoint it.


Bug install nyan cat twice or normal twice and run NyanCat all but 3 programs are deleted nyammem is ALWAYS kept and all appvars are cleared apps are fine though

I have no idea what that means, but NyanMem will delete a good chunk of your archived programs. Only run it right after a Mem Clear.
Title: Re: TruVid - 4 level grayscale video with sound
Post by: annoyingcalc on July 18, 2011, 06:09:59 pm
I have no idea what that means, but NyanMem will delete a good chunk of your archived programs. Only run it right after a Mem Clear.

Oh I had programs on there (nothing important actually just Axe and Contest entrys


Thanks I should try that after a mem clear
Title: Re: TruVid - 4 level grayscale video with sound
Post by: thepenguin77 on July 18, 2011, 06:11:22 pm
Yeah, here are the complete instructions for NyanMem.

1. Mem Clear
2. NyanMem
3. Ram Clear
4. Send app

And then to delete the app, all it takes is:
1. Mem Clear
Title: Re: TruVid - 4 level grayscale video with sound
Post by: annoyingcalc on July 18, 2011, 06:13:30 pm
Yeah, here are the complete instructions for NyanMem.

1. Mem Clear
2. NyanMem
3. Ram Clear
4. Send app

And then to delete the app, all it takes is:
1. Mem Clear

Hmm it seems to work like this for me


1:run nyanmem
2:run NyanCat

and it works perfectly
Title: Re: TruVid - 4 level grayscale video with sound
Post by: FinaleTI on July 18, 2011, 07:28:40 pm
I tried to get this to work, but even after following all the instructions, I get no page count field error.

Where do you get that error at? Is that at TiConnect? If it is, it's probably to8xk malfunctioning or something and I'll pinpoint it.

Here's an attached pic of the error. The bottom error is the one I normally receive, saying I have no page count field. The one above it is from when I added the -f flag to the rabbitsign call, resulting in a no page count field, and no date stamp error. The app assembles with the -f flag, but it screws up horribly.
Title: Re: TruVid - 4 level grayscale video with sound
Post by: thepenguin77 on July 18, 2011, 07:32:52 pm
Oh, sorry if I wasn't clear in my directions. Make that "Colors" not "Colors.8xk". BrandonW's To8xk doesn't like extensions.

Speaking of that, I forgot to give those guys credits in my readme.

BrandonW made To8xk.
Floppus Maximus made RabbitSign.
Title: Re: TruVid - 4 level grayscale video with sound
Post by: FinaleTI on July 18, 2011, 08:14:34 pm
Awesome! It works now. I was just confused because the readme says output.bin, so I thought it needed the ending.
Title: Re: TruVid - 4 level grayscale video with sound
Post by: annoyingcalc on July 18, 2011, 10:13:12 pm
Works execpt for one thing ERROR Height not 128

after converting to 8 bit

how do you change a wmv to 128 pixels I download them off youtube and get 720 pixels or so :'(
Title: Re: TruVid - 4 level grayscale video with sound
Post by: thepenguin77 on July 18, 2011, 11:44:17 pm
FinalTi, the directions in there were for truVid.exe by itself. But, I'm glad you got confused because I'll make it clearer in the real readme.


AnnoyingOrange, use Super (http://www.erightsoft.com/SUPER.html). The actual download link is a bit difficult to get to, but you'll get there eventually ;D And to see how to do it with super, check out my tutorial video.

Title: Re: TruVid - 4 level grayscale video with sound
Post by: Munchor on July 24, 2011, 05:14:39 pm
Any word if this works on Wine or is there a *NIX version?
Title: Re: TruVid - 4 level grayscale video with sound
Post by: ben_g on July 24, 2011, 05:31:25 pm
Is there also a way to do only video, witout sound?
Title: Re: TruVid - 4 level grayscale video with sound
Post by: thepenguin77 on July 24, 2011, 05:33:20 pm
There's no *nix version, this was hard enough lol.

ben_g, I didn't add that, but you can make the sound like .05 seconds long.
Title: Re: TruVid - 4 level grayscale video with sound
Post by: Munchor on July 24, 2011, 05:33:32 pm
Is there also a way to do only video, witout sound?

You can choose a blank music file, but I'd like an easier out too :)
Title: Re: TruVid - 4 level grayscale video with sound
Post by: annoyingcalc on July 27, 2011, 06:05:29 pm
Ok I am tring to convert Never gonna Give you up but it crashes at truvid.exe help!
Title: Re: TruVid - 4 level grayscale video with sound
Post by: thepenguin77 on July 27, 2011, 06:06:19 pm
My best guess would be that it's too long. How long is your video?
Title: Re: TruVid - 4 level grayscale video with sound
Post by: annoyingcalc on July 27, 2011, 06:07:39 pm
I dont know I will check

EDIT 3 min 32 seconds

EDIT2 Actually the error is cannot find bin.bin

EDIT3 I changed the length to 45 seconds converting now

EDIT4 ERROR Value was either to small or to big for an unsigned byte? any suggestions?

EDIT5 help anyone?

EDIT6 so many edits  *.*

EDIT7 any people who are not registered and know what to do please register and post what to do
Title: Re: TruVid - 4 level grayscale video with sound
Post by: ztrumpet on July 28, 2011, 10:25:16 am
Um, thepenguin, http://www.ticalc.org/archives/files/fileinfo/441/44100.html doesn't have the correct Youtube link or something.
Title: Re: TruVid - 4 level grayscale video with sound
Post by: thepenguin77 on July 28, 2011, 11:17:20 am
I have no idea what happened there. For some reason, that link tries to link internally to ticalc.org. However, if you copy and paste it, the link works. I'll have to email them.
Title: Re: TruVid - 4 level grayscale video with sound
Post by: Deep Toaster on July 28, 2011, 05:24:41 pm
Gotta have the http:// or else everybody thinks it's internal :/
Title: Re: TruVid - 4 level grayscale video with sound
Post by: TravisE on July 30, 2011, 11:38:37 pm
Sorry, my fault. The system doesn't actually automatically make URLs clickable; I did that by hand because I can't stand nonclickable links on websites. :) I screwed up and stupidly didn't test the link afterwards to make sure it worked. I think it's fixed now.
Title: Re: TruVid - 4 level grayscale video with sound
Post by: DJ Omnimaga on July 31, 2011, 12:02:23 am
I didn't even know you could do that, because before I saw URLs in descriptions I think and they were text, not links. ???
Title: Re: TruVid - 4 level grayscale video with sound
Post by: TravisE on July 31, 2011, 12:19:01 am
I haven't always done it because I couldn't decide if I should—I'm not sure this ability was even intended.
Title: Re: TruVid - 4 level grayscale video with sound
Post by: thepenguin77 on August 06, 2011, 02:53:21 pm
Thanks travis. :D I figured that was what happened when I looked at the html source.
Title: Re: TruVid - 4 level grayscale video with sound
Post by: annoyingcalc on August 07, 2011, 01:01:40 am
can you convert the Super Smash Bros Brawl main theme the converter is acting up on me again
Title: Re: TruVid - 4 level grayscale video with sound
Post by: JosJuice on August 31, 2011, 11:10:13 am
Nyan Cat is acting a bit weird on my TI-84+SE. After running it, the amount of free RAM seems to decrease by a few kilobytes, and there doesn't seem to be a way to free up that memory other than a RAM clear.
Title: Re: TruVid - 4 level grayscale video with sound
Post by: annoyingcalc on August 31, 2011, 11:20:17 am
that is supposed to happen it happens to me
Title: Re: TruVid - 4 level grayscale video with sound
Post by: Deep Toaster on August 31, 2011, 12:20:31 pm
that is supposed to happen it happens to me
I doubt that it's actually "supposed to" happen, though o.o
Title: Re: TruVid - 4 level grayscale video with sound
Post by: annoyingcalc on August 31, 2011, 12:34:26 pm
I am making
if anyone wants it (4 calcs)

EDIT DT you have +256 respect!
Title: Re: TruVid - 4 level grayscale video with sound
Post by: p2 on September 03, 2011, 09:10:17 am
make a video of the annoying one (not of you, but of the real annoying orane!!!)
Title: Re: TruVid - 4 level grayscale video with sound
Post by: annoyingcalc on September 03, 2011, 11:53:33 am
make a video of the annoying one (not of you, but of the real annoying orane!!!)
Not a bad idea.I think I might do that not today because I am going to Seattle to finally see my new house in an hour or two,from Oregon so I dont think today, but tommorrow Ill make it
Title: Re: TruVid - 4 level grayscale video with sound
Post by: JosJuice on September 08, 2011, 10:17:25 am
After some more testing, it seems like the amount of free memory decreased by about 2 KB every time NyanCat is run and then exited by pressing CLEAR. For example, starting at 14 KB free RAM and running NyanCat three times makes the amount of free RAM be 8 KB.
Title: Re: TruVid - 4 level grayscale video with sound
Post by: GreenFreak on September 08, 2011, 02:06:41 pm
lol? I will not use this program until all bugs are fixed...
I don't want to kill my TI again...

Nothing against your TruVid, but I'm now more careful with my stuff...
Title: Re: TruVid - 4 level grayscale video with sound
Post by: thepenguin77 on September 08, 2011, 03:18:44 pm
After some more testing, it seems like the amount of free memory decreased by about 2 KB every time NyanCat is run and then exited by pressing CLEAR. For example, starting at 14 KB free RAM and running NyanCat three times makes the amount of free RAM be 8 KB.

Oh, dang, that's such a silly mistake by me. I actually run the TruVid thing as a program, even though it's an app. I just forgot to delete the program when I was done ;D I'll see about making a full set of NyanCat's with proper instructions on how to use them and fixing the main program.

lol? I will not use this program until all bugs are fixed...
I don't want to kill my TI again...

Nothing against your TruVid, but I'm now more careful with my stuff...

Thanks. Also, it's impossible to actually damage your calculator unless you intentionally try to do so.
Title: Re: TruVid - 4 level grayscale video with sound
Post by: thepenguin77 on September 08, 2011, 05:36:18 pm
Problem fixed, Nyan Cat for 84+BE (https://docs.google.com/viewer?a=v&pid=explorer&chrome=true&srcid=0BwCVAkfyn6_vZDE0ZTlmMWUtNDAyNy00NjdkLTk5MzUtNmNjNThlZmEyMjQ2&hl=en_US) and Nyan Cat for 84+SE (https://docs.google.com/viewer?a=v&pid=explorer&chrome=true&srcid=0BwCVAkfyn6_vN2ZkZDQxNmQtNDg1Yy00OTVkLTkyYmMtYTdiOWJiOTFlOGU5&hl=en_US). I still have that stupid NyanMem thing, but now it's way simpler to use. Best of all, it only erases pages 08 and 0C, which means a mem clear will put it back to normal.

And while I'm at it, here's the fixed TruVid setup (https://docs.google.com/viewer?a=v&pid=explorer&chrome=true&srcid=0BwCVAkfyn6_vYzM4ZmM3NGUtNWJmYi00ODliLTgzMWQtMTlhODI1OTdkNGJm&hl=en_US).
Title: Re: TruVid - 4 level grayscale video with sound
Post by: JosJuice on September 09, 2011, 10:14:41 am
It works great! Thank you.
Title: Re: TruVid - 4 level grayscale video with sound
Post by: Spenceboy98 on February 28, 2012, 07:38:48 pm
thepenguin77, I emailed you recently because I can't do it myself. I sent the .wav and the .wmv files. Please reply soon.
Title: Re: TruVid - 4 level grayscale video with sound
Post by: thepenguin77 on February 29, 2012, 04:18:06 pm
Sorry for not responding. I realized that I had my old email address as my omnimaga address, so that's why I didn't notice the email.

In any case, I converted the video. Though, I bet you could install the .net framework pretty sneakily. Its made by microsoft and is required for quite a few programs to run. (I forgot it was needed because the actual program that requires it wasn't written by me.)
Title: Re: TruVid - 4 level grayscale video with sound
Post by: Spenceboy98 on February 29, 2012, 04:25:06 pm
The music is a little off on wabbitemu, but it is still awesome. Thanks!