Omnimaga

Calculator Community => Other Calc-Related Projects and Ideas => TI-Nspire => Topic started by: apcalc on January 31, 2011, 06:30:40 pm

Title: nPlayer - TI-Nspire Video Player
Post by: apcalc on January 31, 2011, 06:30:40 pm
First and foremost, I must thank thepenguin77 for inspiration to make this project and a method to make this happen.  I have wanted to do this for a while, but if it were not for your post doing this on the 84 a few days ago, this would have never happened! Also, thank you to calc84 for helping me fix a bug in showing the images! :)

This is a 16-level grayscale video player for the TI-Nspire Graphing Calculator.  As I said earlier, I based this off the method used by thepenguin77.  First, I download the video from Youtube, I send it through SUPER to convert it into a series of .jpg images, then, I use a Plug-In in The GIMP to convert the .jpgs to .bmps and resize the, finally, I throw the resulting .bmp images through my own program that generates a .c file that can be builtd with nspire-gcc and played on the Nspire!

The only drawback to this method is that it is terribly difficult for a user to convert a video to the Nspire format.  In its current state, it also requires one to have an Nspire development environment set up to build the generated .c file.  (It also takes a terribly long time to build the massive .c file that is generated!)

Nevertheless, it still does a great job doing what it is supposed to do:  Play videos on the Nspire! :D

Screenshot (It runs much smoother on the actual emulator):

(http://img.removedfromgame.com/imgs/CHIPS0002.gif)
Title: Re: TI-Nspire Video Player
Post by: Michael_Lee on January 31, 2011, 06:36:57 pm
Cool!  Can it play for longer then a few seconds?
Title: Re: TI-Nspire Video Player
Post by: critor on January 31, 2011, 06:50:06 pm
That's great!!!
After reading images, the Nspire is now playing videos! :)


If I've understood correctly, you are using a list of images.

The only problem currently, is that it won't be easy for most users to convert a video as it needs to be compiled.


Could you think of a specific separate file format that could be opened by your program?
Then no compilation would be needed.

For example:
- concatenated bitmaps in a single file
- bitmaps with a numeric suffix like 001, 002, 003...
- or if you have the courage and the time, supporting GIF files (many free online tools let you convert videos to animated GIF files)


What do you think of this?
Title: Re: TI-Nspire Video Player
Post by: apcalc on January 31, 2011, 06:55:17 pm
Yes, I absolutely plan on making it easier for users to view the videos on the calc.  At this point, my main goal was to get an example to play to prove to myself that this was possible.  I plan on having users send files (possibly extension .nvid) to the calc and I will have a program that reads them.  Likewise, another thing high on my list of priorities now is to find a compression method for the files so I can play longer files.

Right now, I don't have too much time to dedicate to this (AP classes :(), but I definitely plan on adding many of these features in the future.  Right now, this is in very early stages of development (actually, only 2 days of coding :)).

Also, it is absolutely amazing to see this on real hardware! :)
Title: Re: TI-Nspire Video Player
Post by: thepenguin77 on January 31, 2011, 07:02:05 pm
Yay Apcalc! It's cool to see someone else do exactly what I did lol. (The whole ugly conversion process). If you or I figure out some way to make the conversion process easier, spread the word. Especially if you figure out how .avi files work.  ;)

For compression, I'm currently working with Deflate, so I'll let you know how that goes.
Title: Re: TI-Nspire Video Player
Post by: apcalc on January 31, 2011, 08:06:50 pm
Rickroll!

(http://img.removedfromgame.com/imgs/CHIPS0003.gif)
Title: Re: TI-Nspire Video Player
Post by: ztrumpet on January 31, 2011, 08:08:38 pm
Wow, that's epic.  Great job! ;D
* ZTrumpet <3s the rickroll. :P
Title: Re: TI-Nspire Video Player
Post by: Deep Toaster on January 31, 2011, 08:09:24 pm
THAT IS EPIC!

Finally, a working rickroll! O.O.O.O

EDIT: Aww, great, now half the new releases for Nspire are gonna be rickrolls, thanks to you.
Title: Re: TI-Nspire Video Player
Post by: Builderboy on January 31, 2011, 08:10:34 pm
Seems to have the same artifact problem that ThePenguin's has O.O But other than that epic job!! Someone needs to find a way to convert from youtube directly to bmp, maybe that would help with the artifacts
Title: Re: TI-Nspire Video Player
Post by: SirCmpwn on January 31, 2011, 09:09:14 pm
Sound? :D
Title: Re: TI-Nspire Video Player
Post by: apcalc on January 31, 2011, 10:18:20 pm
Sound? :D

Considering the current way I am "playing" the video by showing a stream of images, I don't know how practical this would be at this point in development.  I hope to fix the speed at which the videos play so you could at least play the video on the calc and the sound on a computer and have it synchronized, though! :)
Title: Re: TI-Nspire Video Player
Post by: Builderboy on January 31, 2011, 10:19:35 pm
Considering the current way I am "playing" the video by showing a stream of images

Isn't that exactly what video is? o.O
Title: Re: TI-Nspire Video Player
Post by: apcalc on January 31, 2011, 10:21:46 pm
Considering the current way I am "playing" the video by showing a stream of images

Isn't that exactly what video is? o.O

Yes, well, I guess I should rephrase what I said.  The thing I send to the calculator has all of the sound data completely removed, and it is only a stream of images, without any other data.  This makes it difficult to re-add the sound data, as I would have to get another program to retrive the sound, then have my program put them all together, making the conversion process uglier than it already is.

Also, I don't have a set of headphones that would fit into the 84+ keypad, making it impossible for me to test it even if I could add it :(
Title: Re: TI-Nspire Video Player
Post by: SirCmpwn on January 31, 2011, 10:24:48 pm
Also, I don't have a set of headphones that would fit into the 84+ keypad, making it impossible for me to test it even if I could add it :(
Go to RadioShack armed with $8, and ask for a 3/32" to 1/8" adapter.  Plug normal headphones into Nspire jack. ????? Profit.
Title: Re: TI-Nspire Video Player
Post by: DJ Omnimaga on January 31, 2011, 10:58:01 pm
Awesome! With compression I wonder how long videos could get on the Nspire...
Title: Re: TI-Nspire Video Player
Post by: Builderboy on January 31, 2011, 11:00:24 pm
Ah yes i see now, we need to be able to write some sort of Flash to C compiler :P
Title: Re: TI-Nspire Video Player
Post by: apcalc on February 01, 2011, 11:43:13 am
Ok, I've been working on some compression methods for this.  Instead of playing every frame generated by SUPER, I am only playing, in this video, every 5th frame.  Although the file size in this example is larger than the previous ones, I am getting a full 1:38 video to play (the speed on calc is still not exact, though)!  I should note, once again, calc capture is making this go both slower and choppier than it is on the emulator/calculator!

(http://img.removedfromgame.com/imgs/NSPIREVIDEO0006.gif)
Title: Re: TI-Nspire Video Player
Post by: ruler501 on February 01, 2011, 11:56:36 am
This is amazing. How large are these files?
Title: Re: TI-Nspire Video Player
Post by: apcalc on February 01, 2011, 11:57:39 am
That one is a massive 15 MB :(

But, the example videos I had playing yesterday are down to about 5 MB! :)
Title: Re: TI-Nspire Video Player
Post by: ruler501 on February 01, 2011, 12:04:40 pm
15 MB for 1:38 of video on a calc isn't that bad
Title: Re: TI-Nspire Video Player
Post by: kindermoumoute on February 01, 2011, 12:32:15 pm
Awesome videos !
Title: Re: TI-Nspire Video Player
Post by: calc84maniac on February 01, 2011, 01:48:14 pm
If you want to improve speed, you might not want to use memcpy. It copies each byte individually, which as you can imagine would be pretty slow. An optimized assembly version for copying screen buffers that uses the multiple load/store instructions would probably be better. I might have posted such a routine somewhere, I'll see if I can find it.

Edit:
Actually, it was a routine for clearing a buffer. Not too useful in this case I guess.
Title: Re: TI-Nspire Video Player
Post by: qazz42 on February 01, 2011, 03:11:12 pm
holy... f**king... s**t

that is amazing... I cannot wait until I can get a castlevania judgement video on it :P
Title: Re: TI-Nspire Video Player
Post by: apcalc on February 01, 2011, 03:16:00 pm
that is amazing... I cannot wait until I can get a castlevania judgement video on it :P

Give me a link to a youtube video and I'll make a screenshot for you! :)
Title: Re: TI-Nspire Video Player
Post by: DJ Omnimaga on February 01, 2011, 03:36:46 pm
Darn this is so great! However I was wondering since the Nspire resolution is so high and the pixels relatively small if you could give users the option to compress their file for longer videos or smaller file size? I mean for example drawing every 2 columns or 2 rows or 50% resolution at 2x scaling. This goes into news along with the other video player now.
Title: Re: TI-Nspire Video Player
Post by: fb39ca4 on February 03, 2011, 02:32:26 pm
This is a win! Our dreams of on calc rickrolls are finally realized!
Title: Re: TI-Nspire Video Player
Post by: qazz42 on February 03, 2011, 02:56:14 pm
Well I was showing this off in class and the general response was that it was pretty cool. One kid said he now has -1000 respect for me. Other than taht, pretty good :D


oh, and this is the vid I would LOVE  to see as a screenshot:
Title: Re: TI-Nspire Video Player
Post by: DJ Omnimaga on February 04, 2011, 02:12:55 am
Lol that guy at your school sucks x.x
Title: Re: TI-Nspire Video Player
Post by: qazz42 on February 04, 2011, 04:00:52 pm
yeah... he hates me....
Title: Re: TI-Nspire Video Player
Post by: jnesselr on February 04, 2011, 04:06:27 pm
yeah... he hates me....
I know someone like that. I'm sure its mutual. ;-)
Title: Re: TI-Nspire Video Player
Post by: fb39ca4 on February 04, 2011, 04:06:43 pm
Basically everyone at my school thinks calculator programming is for nerds, but there's this one kid who is eternally grateful to me after I showed him how to play Pokemon red on his nspire.:P on calc videos might change that. [people who think we're all nerds]
Title: Re: TI-Nspire Video Player
Post by: qazz42 on February 04, 2011, 04:08:11 pm
haha, people just dont like the fact I can ENJOY math with Bill/Sam's Mario game :P j/k
Title: Re: TI-Nspire Video Player
Post by: ztrumpet on February 04, 2011, 04:15:16 pm
on calc videos might change that. [people who think we're all nerds]
Actually, according to my friends that would just make me a bigger nerd.  So, if we're going backwards, it's time to embrace being a nerd and keep heading forward to new horizons!  Huzzah! :D

(No offense to anyone who doesn't like being called a nerd, of course)
Title: Re: TI-Nspire Video Player
Post by: apcalc on February 04, 2011, 04:16:13 pm
Well, so far, the only two people who I have showed this too have not called me a nerd!  Actually, they were completely amazed! :)
Title: Re: TI-Nspire Video Player
Post by: qazz42 on February 04, 2011, 04:17:30 pm
feh, I love how some parrts of the sample you sent to me are perfectly three dee
Title: Re: TI-Nspire Video Player
Post by: DJ Omnimaga on February 05, 2011, 02:24:52 am
Most people who saw me coding calc stuff at school didn't call me nerd or other names, although I bet people at work would if they knew I still did calc stuff. X.x


At school most people were actually amazed at what I did, although it got annoying to have to send ppl programs all the time. X.x
Title: Re: TI-Nspire Video Player
Post by: z80man on February 05, 2011, 02:28:43 am
It's funny when they offer to pay you money for your games when they're avaible off ticalc for free
Title: Re: TI-Nspire Video Player
Post by: DJ Omnimaga on February 05, 2011, 03:18:56 am
Well the issue is that in Quebec they didn't sell the link cables for the 82/83+ (the 84+ didn't exist back then). You had to buy a 83+SE to get the cable and most people didn't want to buy one online, so since most people had a TI-83+, a TI-82 or a TI-80, most people had no PC link cable. As a result, very few people got able to get games online here. Personally I think I should have charged, lol, though, because it got annoying to have 5 ppl a day beg for games or math programs. X.x I would have charged $0.50 or $1 for every transfer session probably, depending of if it includes teaching the person. :P
Title: Re: TI-Nspire Video Player
Post by: qazz42 on February 05, 2011, 09:43:28 pm
Blah, I should be able to test this on sunday, thanks apcalc :D
Title: Re: TI-Nspire Video Player
Post by: Snake X on February 05, 2011, 09:59:59 pm
O.O this gave me the incentive to wait one more time for ndless 2 once more for Nspire cas touchpad. :D AMAZING!!
Title: Re: TI-Nspire Video Player
Post by: nspirator on February 08, 2011, 08:35:59 pm
Hi,
I'm new on the forum and I try to make a video for my TI-NSPIRE but I don't know how to convert the bmps in .c files. Could somebody helps me :)?

Thanks
Title: Re: TI-Nspire Video Player
Post by: apcalc on February 08, 2011, 08:40:08 pm
Hi nspirator!  Welcome to the forums! :)

Sadly, I still do not have this in any state to be released.  Actually, it will take me a while before I have enough time to actually finish this project.  The only way you can put a video on your Nspire ism if you want, you can give me a link to a Youtube video and I can convert it for you.  At this point, I can only fit about 1 minute of video in the Nspire's memory (I am looking into different compression techniques now!).
Title: Re: TI-Nspire Video Player
Post by: nspirator on February 08, 2011, 08:55:18 pm
Thanks apcalc :)

There is this video thant I just watched on Youtube :   
http://www.youtube.com/user/failblog#p/u/16/v5_RkYXlmXE

But I understand that it takes a lot of time to convert it in .tns and my objective is only to see the result on my calc :) So is that possible to take the hand on one of your .tns video like the train video or Rick's dance :D?

P.S :  sorry for my english, it's not my language
Title: Re: TI-Nspire Video Player
Post by: apcalc on February 09, 2011, 03:46:09 pm
Here you are!  You will need 7zip or some other utility that can open a .7z file to decompress it, though, as I don't want to have to post a 8 MB file here on the forums!
Title: Re: TI-Nspire Video Player
Post by: nspirator on February 09, 2011, 11:11:17 pm
Thanks a lot :)
But I am not able to run it on my TI-NSPIRE CAS but there only a black screen and it stays like that... Maybe because of the compression with 7zip?
Title: Re: TI-Nspire Video Player
Post by: z80man on February 09, 2011, 11:19:49 pm
Thanks a lot :)
But I am not able to run it on my TI-NSPIRE CAS but there only a black screen and it stays like that... Maybe because of the compression with 7zip?
Make sure you unzipped it with 7zip. Here is the link for the utility http://www.7-zip.org/download.html (http://www.7-zip.org/download.html)

and can you post the result once you get it working because it would be nice to see the result.
Title: Re: TI-Nspire Video Player
Post by: Compynerd255 on February 10, 2011, 10:35:18 am
Okay, now that is awesome. The fact that the nSpire is being utilized so well is just awesome, even if it is a rickroll. Someone should do the Double Rainbow...  :D

Now, sound would actually be quite easy to do. I'll illustrate how a filmstrip works:

----------------------------------------------------------------------------
------ ------ ------ ------ ------ ------ ------ ------ ------ ------ ------
|o   | | o  | |  o | |   o| |    | |    | |    | |    | |    | |    | |
|    | |    | |    | |    | |   o| |  o | | o  | |o   | |    | |    | |
|    | |    | |    | |    | |    | |    | |    | |    | |    | |o   | |
|    | |    | |    | |    | |    | |    | |    | |    | |    | |    | |
------ ------ ------ ------ ------ ------ ------ ------ ------ ------ ------
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
----------------------------------------------------------------------------

As you can see, the top section contains the picture that is displayed on the screen. Alongside the picture area, there is a little area for sound (the ~ things). While a picture is shown on the screen, the sound adjacent to the picture is played on the theater's speaker system.
A digital video would work much the same way. While a video is shown on the screen, the little sound bite associated with that picture would also play through the speaker system.
Title: Re: TI-Nspire Video Player
Post by: apcalc on February 10, 2011, 08:26:11 pm
Er, no, I think I know why you can't run it. :(

Are you using the ticalc version of Ndless 1.7?  If so, that is why, this is only compatible with the development version of Ndless.  I will build a new version and correct this when I get a free moment (it won't take too long to do), but I am very busy tonight...
Title: Re: TI-Nspire Video Player
Post by: nspirator on February 10, 2011, 09:23:35 pm
Yes I use Ndless 1.7... But thanks for your advance to the nspire developement :)
Title: Re: TI-Nspire Video Player
Post by: thepenguin77 on February 10, 2011, 10:37:04 pm
Okay, now that is awesome. The fact that the nSpire is being utilized so well is just awesome, even if it is a rickroll. Someone should do the Double Rainbow...  :D

Now, sound would actually be quite easy to do. I'll illustrate how a filmstrip works:

----------------------------------------------------------------------------
------ ------ ------ ------ ------ ------ ------ ------ ------ ------ ------
|o   | | o  | |  o | |   o| |    | |    | |    | |    | |    | |    | |
|    | |    | |    | |    | |   o| |  o | | o  | |o   | |    | |    | |
|    | |    | |    | |    | |    | |    | |    | |    | |    | |o   | |
|    | |    | |    | |    | |    | |    | |    | |    | |    | |    | |
------ ------ ------ ------ ------ ------ ------ ------ ------ ------ ------
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
----------------------------------------------------------------------------

As you can see, the top section contains the picture that is displayed on the screen. Alongside the picture area, there is a little area for sound (the ~ things). While a picture is shown on the screen, the sound adjacent to the picture is played on the theater's speaker system.
A digital video would work much the same way. While a video is shown on the screen, the little sound bite associated with that picture would also play through the speaker system.

Getting the information to play the sound is not what is difficult. That's easy, just make every 5th byte sound data or something. The problem is playing it on a calculator. Most computers and ipods have sound cards, so all the program has to do is send the sound data out for processing. Some cheaper devices just have a Digital to Analog Converter, which when sent a value, puts that proportion of voltage on the line. For this you would have to send the sound data out at a regular interval.

However, the Nspire has neither. The Nspire has a choice of 100% or 0% voltage, not 65,536 steps. So to make intermediate values, you put it high then low for varying amounts of time depending on the value. And to make this happen accurately at 22,050 Hz takes nearly all the processor time. To add sound, you essentially have to make a sound player and add video. You can't easily add sound to a video player because it require extreme priority. With so many mp3 players around, unless you have great quality sound, people are going to complain while if you have a bad video, it's just a calulator.
Title: Re: TI-Nspire Video Player
Post by: calc84maniac on February 10, 2011, 10:55:23 pm
I think it might be possible to use interrupts to play sound, with minimal effect on the rest of the code. However, that might require some hardcore assembly coding for the interrupt handler :P
Title: Re: TI-Nspire Video Player
Post by: Jonius7 on February 11, 2011, 02:01:36 am
Sounds, does nspire have speakers?
Title: Re: TI-Nspire Video Player
Post by: TIfanx1999 on February 11, 2011, 08:03:42 am
No, it would require using the Ti-84+ keypad and the link port with headphones plugged in.
Title: Re: TI-Nspire Video Player
Post by: Compynerd255 on February 11, 2011, 10:24:09 am
One thing you could use is dithering. That is, every few milliseconds, keep a running tally of how much sound you "owe" in the true sound wave. Then, if you owe more than the peak, switch the voltage to create the click sound.

Additionally, if you use a Standard-to-Mini USB adapter, you could actually play sound out of the USB port using a USB audio device. Of course, the other thing you could do is extract the sound file when exporting the video, then tell the users to load it onto their MP3 player and play it at the same time they start the video (hey, it's low budget, but it works!)
Title: Re: TI-Nspire Video Player
Post by: DJ Omnimaga on February 14, 2011, 01:04:59 am
I don't think anyone even managed to understand Nspire USB yet, though, or not enough to achieve USB sound.

Btw welcome here nspirator. :)
Title: Re: TI-Nspire Video Player
Post by: z80man on February 14, 2011, 02:34:32 am
This is probaly not possible, but on the Prizm there is an output buffer on the serial port that can hold up to 1 kb. So to use that you would send the data to the buffer and then continue with the rest of your code until you need to update the buffer. Now depending on the link protocols you might be able to get certain sounds to come out. Now I'm not an Nspire programmer, but if there are output buffers, sound and video could be attempted.
Title: Re: TI-Nspire Video Player
Post by: Jonius7 on February 15, 2011, 04:36:34 am
Would nspire have such functions of its hardware? it might, it's just the os that doesn't use the features of those functions.

Quote

Re: TI-Nspire Video Player
« Reply #49 on: 11 February 2011, 12:37:04 pm »
Getting the information to play the sound is not what is difficult. That's easy, just make every 5th byte sound data or something. The problem is playing it on a calculator. Most computers and ipods have sound cards, so all the program has to do is send the sound data out for processing. Some cheaper devices just have a Digital to Analog Converter, which when sent a value, puts that proportion of voltage on the line. For this you would have to send the sound data out at a regular interval.

However, the Nspire has neither. The Nspire has a choice of 100% or 0% voltage, not 65,536 steps. So to make intermediate values, you put it high then low for varying amounts of time depending on the value. And to make this happen accurately at 22,050 Hz takes nearly all the processor time. To add sound, you essentially have to make a sound player and add video. You can't easily add sound to a video player because it require extreme priority. With so many mp3 players around, unless you have great quality sound, people are going to complain while if you have a bad video, it's just a calulator.

100% or 0% voltage sounds like binary code, which probably wouldn't work for sound well enough. but possibly, if the hardware allows it...
Title: Re: TI-Nspire Video Player
Post by: ruler501 on February 18, 2011, 06:21:34 pm
I'm sorry if this sounds stupid but where is the download for the rickroll video for the Ti-Nspire? I want to show it to a few friends at my school.
Title: Re: TI-Nspire Video Player
Post by: apcalc on February 18, 2011, 06:39:41 pm
I never released a download of the rickroll video.

I will post one here when I get a chance (hopefully by the end of the weekend), but I am severely busy today, and I have to go to an event for the majority of the day tomorrow...
Title: Re: TI-Nspire Video Player
Post by: ruler501 on February 18, 2011, 06:45:24 pm
thank you, I won't be able to get it till Sunday anyways I'm going off on a no electronics trip. so it would be wondeful if it was done by Monday. You are doing a wonderful job here keep it up.
Title: Re: TI-Nspire Video Player
Post by: apcalc on February 19, 2011, 08:52:22 pm
Here we are!

I shortened the amount played to reduce the size to something that can reasonably fit on the calc (7.3 MB).
Title: Re: TI-Nspire Video Player
Post by: ruler501 on February 20, 2011, 10:01:23 pm
Thisis wonderful I have both nDoom and this on my calc and I still have room left. Thank you. Beware my friends...
Now all we need is sound ;)
Title: Re: TI-Nspire Video Player
Post by: DJ Omnimaga on February 23, 2011, 02:39:58 pm
Lol nice apcalc. Any clue when the video player will be released by the way?
Title: Re: TI-Nspire Video Player
Post by: apcalc on February 23, 2011, 03:24:36 pm
Lol nice apcalc. Any clue when the video player will be released by the way?

Theoretically, I can release it right now in its current form, but it requires an Nspire Development Environment to be set up in order to build the final .tns document (any interest in this?  I have no problem releasing it like that, but I fear it will be too hard for the end user).

The two major things I currently need to add is an actual on-calc interpreter (to fix the above issue) and compression methods to fit more video onto the calc (not as urgent in preventing a release).  At this point, I have no idea how long this may take, hopefully not too long! :)
Title: Re: TI-Nspire Video Player
Post by: DJ Omnimaga on February 23, 2011, 03:42:50 pm
Ah ok. It might be better to wait, then. Just look at how many people ask for help on building Ndless already (especially since nDoom was slashdotted) O.O
Title: Re: TI-Nspire Video Player
Post by: ruler501 on February 23, 2011, 08:03:23 pm
I have one request I would like you to add in. Could you add in something that lets you press a button to exit mid-video? I know that is on many other ndless programs. I could use this for the middle of math class...
Title: Re: TI-Nspire Video Player
Post by: apcalc on February 23, 2011, 08:09:59 pm
I have one request I would like you to add in. Could you add in something that lets you press a button to exit mid-video? I know that is on many other ndless programs. I could use this for the middle of math class...

Actually, I do have that (along with a pause feature) already implemented, but when I built that video, I had them commented out.  I was testing how much space I could save by getting rid of them, and I forgot to add them back. :(  Sorry about this, they will be there in the final release! :)
Title: Re: TI-Nspire Video Player
Post by: ruler501 on February 23, 2011, 08:40:01 pm
That would be great. OK I could definately use this even though I don't play this as much now. people found out about it after the first day
Title: Re: nPlayer - TI-Nspire Video Player
Post by: apcalc on February 27, 2011, 05:16:08 pm
nPlayer now uses Run Length Encoding! :)

For the example I am currently using, the file is 41.7% smaller! :)

Other compression techniques are still being looked into, but RLE was fast and easy for me to add!
 
:w00t:
Title: Re: nPlayer - TI-Nspire Video Player
Post by: fb39ca4 on February 27, 2011, 05:20:24 pm
Yaay! Now, rickrolls won't take up as much space on our calcs!
Title: Re: nPlayer - TI-Nspire Video Player
Post by: apcalc on February 27, 2011, 05:21:25 pm
Yaay! Now, rickrolls won't take up as much space on our calcs!

No, they will.  But they will be double in length! ;D
Title: Re: nPlayer - TI-Nspire Video Player
Post by: fb39ca4 on February 27, 2011, 05:23:53 pm
Even better!

BTW, your respect seems to be at 69 :P/me runs

EDIT: Here's a way to compress the video - divide the screen into 2x2 groups of pixels. Within each of those groups, there can be two colors (uses 1 byte) and four bits that determine which color is on each of the four pixels. Cuts down on size by 25%, but I don't know how well that would work out with rle. You could also do this with a 4x4 grid and four colors for 50% compression.
Title: Re: nPlayer - TI-Nspire Video Player
Post by: some1specia1 on February 27, 2011, 11:00:29 pm
I saw mentioned in here that the player would be used on the 84 keyboard, but your videos showed it with the standard keyboard/OS. which key board are you planning to use? Personally I think that the standard is much easier.
Title: Re: nPlayer - TI-Nspire Video Player
Post by: willrandship on February 27, 2011, 11:35:23 pm
He might mean support for both....
Title: Re: nPlayer - TI-Nspire Video Player
Post by: ruler501 on February 27, 2011, 11:44:19 pm
Could I have another version of the rickroll with all the new features added in please.
I got rickrolled at church and I want revenge sweet revenge...  :devil:
Title: Re: nPlayer - TI-Nspire Video Player
Post by: DJ Omnimaga on February 28, 2011, 12:04:18 am
I got rickrolled at church
O.O
I saw mentioned in here that the player would be used on the 84 keyboard, but your videos showed it with the standard keyboard/OS. which key board are you planning to use? Personally I think that the standard is much easier.
I am pretty sure it could work on the 84+ one too. After all, gbc4nspire did. Keys were just all scrambled.

By the way welcome here. :)

nPlayer now uses Run Length Encoding! :)

For the example I am currently using, the file is 41.7% smaller! :)

Other compression techniques are still being looked into, but RLE was fast and easy for me to add!
 
:w00t:

This is nice to hear! I'm glad to see more compression applied to files. :D
Title: Re: nPlayer - TI-Nspire Video Player
Post by: ruler501 on February 28, 2011, 08:01:24 am
We had a talent show and one person went up their to sing "Never Gonna Give You Up".I should've had the video on my calc so I could play it while they sang the song...
Title: Re: nPlayer - TI-Nspire Video Player
Post by: Compynerd255 on February 28, 2011, 10:33:02 am
You know, I'm trying to set this straight in my mind. When you have the 84 Plus Keypad, it normally enters 84 Plus emulation. Does Ndless change this behavior at all? I just don't understand why you would be able to add 84+ Keypad support at all.
Title: Re: nPlayer - TI-Nspire Video Player
Post by: Stefan Bauwens on February 28, 2011, 12:42:17 pm
This looks great. Congratulations Apcalc!
Title: Re: nPlayer - TI-Nspire Video Player
Post by: apcalc on February 28, 2011, 03:33:28 pm
This will not use the 84+ keypad, it will use the regular Nspire one (clickpad, touchpad).  The discussion earlier was that if I ever added sound, the 84+ keypad would be needed (but even in that case, the regular Nspire one would still work fine)!

I will post another rickroll when I get a chance, but I will be quite busy this week.  The instant I get a free minute, this will be my top priority! :)
Title: Re: nPlayer - TI-Nspire Video Player
Post by: fb39ca4 on February 28, 2011, 04:33:23 pm
You know, I'm trying to set this straight in my mind. When you have the 84 Plus Keypad, it normally enters 84 Plus emulation. Does Ndless change this behavior at all? I just don't understand why you would be able to add 84+ Keypad support at all.
If you take out a keypad in the middle of an ndless program, the calc doesn't turn of like it normally would, allowing you to switch keypads. However, doing this a lot will wear out your keypad connectors.
Title: Re: nPlayer - TI-Nspire Video Player
Post by: ruler501 on February 28, 2011, 06:39:03 pm
what does ndless let you do with the 84-keypad?

EDIT: 333 posts
Title: Re: nPlayer - TI-Nspire Video Player
Post by: willrandship on February 28, 2011, 06:40:32 pm
Anything you want. It's just buttons.
Title: Re: nPlayer - TI-Nspire Video Player
Post by: Compynerd255 on March 01, 2011, 11:15:42 am
Another option for sound is a little AM radio modulation. I heard that Dwedit found out about some hardware thing that creates sound on an AM radio. He used it in his game Iceclimb on the 83 Plus. You should ask him.
Title: Re: nPlayer - TI-Nspire Video Player
Post by: fb39ca4 on March 01, 2011, 04:09:24 pm
The ti83 has a radio antenna?????????
Title: Re: nPlayer - TI-Nspire Video Player
Post by: Deep Toaster on March 01, 2011, 07:36:19 pm
I saw mentioned in here that the player would be used on the 84 keyboard, but your videos showed it with the standard keyboard/OS. which key board are you planning to use? Personally I think that the standard is much easier.

I think you might be getting this confused with the 84+ video player (http://ourl.ca/8984/175565). They were released at about the same time :)
Title: Re: nPlayer - TI-Nspire Video Player
Post by: TIfanx1999 on March 01, 2011, 09:27:23 pm
If you put a radio tuned on a blank frequency on an am radio near a calculator, it can pick up sound as if you had headphones plugged in (if the program in questions outputs sound). It isn't of the greatest quality, but it works.
Title: Re: nPlayer - TI-Nspire Video Player
Post by: DJ Omnimaga on March 03, 2011, 05:00:06 am
Yeah I remember that trick from french sites. That's how I listened to calc music before I got an adapter. :D
Anything you want. It's just buttons.
To clarify, the controls will be a bit weird, though due to the different key mapping. Keypad switching isn't detected by the hardware I think, it's by the OS it seems, since during the OS if you remove the keypad the calc turns OFF  but not during Ndless programs.
Title: Re: nPlayer - TI-Nspire Video Player
Post by: apcalc on March 04, 2011, 08:40:39 pm
Major Update! :D

I have added a on-calc interpreter for this, meaning that this is now completely independent of needing an Nspire Development Environment set up.  Also, this means that I should be able to release this soon, as it is fully functional (of course, more updates will come, but I would like to release it now while it is stable! :))

Heres an old Super Bowl Commercial (one of my all time favorites!) for you!:

(http://img.removedfromgame.com/imgs/NSPIREVIDEO0013.gif)
Title: Re: nPlayer - TI-Nspire Video Player
Post by: ruler501 on March 05, 2011, 12:25:18 am
Sounds and looks amazing. I can't wait for it to be released
Title: Re: nPlayer - TI-Nspire Video Player
Post by: TIfanx1999 on March 06, 2011, 09:43:55 am
Very nice! Video looks surprisingly good for only being in 16 shades of grey. :)
Title: Re: nPlayer - TI-Nspire Video Player
Post by: apcalc on March 06, 2011, 08:58:25 pm
If anyone wants to beta-test this, please e-mail me. :)
Title: Re: nPlayer - TI-Nspire Video Player
Post by: ParkerR on March 06, 2011, 09:08:12 pm
Almost makes you wonder what they can't do. Very nice indeed.
Title: Re: nPlayer - TI-Nspire Video Player
Post by: DJ Omnimaga on March 07, 2011, 09:34:26 pm
I'M glad this reached beta stage. Hopefully there aren't too many bugs so you can release it soon. Make sure the release won't come with a rickroll, though. :P
Title: Re: nPlayer - TI-Nspire Video Player
Post by: apcalc on April 19, 2011, 05:17:39 pm
http://www.mediafire.com/file/i7i4ca1qfqy4tix/nPlayer.zip

There is the beta test file! :)

If someone using Windows XP and someone using Windows Vista could test this and tell me if it works, I would appreciate it greatly!

NOTE:  When converting the video, use the setting 240:176, not 320:240 as stated in the instruction guide. (Likewise, there is no frame limit in this version (the guide states it is something like 1500).
Title: Re: nPlayer - TI-Nspire Video Player
Post by: compu on April 20, 2011, 01:22:31 pm
Works fine with XP and the player is awesome :D
Title: Re: nPlayer - TI-Nspire Video Player
Post by: DJ Omnimaga on April 20, 2011, 01:55:17 pm
This is great! I'll have to try it when I have time. :D
Title: Re: nPlayer - TI-Nspire Video Player
Post by: ElementCoder on June 03, 2011, 11:02:24 am
Works on vista too :D
and I had a fun time stunning my classmates with awesome vids they were like   ??? to  O.O to I WANT THIS!! Than I asked for OS, they said 3.0 WITH new boot 2 so they were like  :crazy:  :banghead:  :'(
But enough kidding, there is one thing that is kind of annoying. I wasn't able to remove the video folder. The TI Computer link throws an error when trying to remove *video*.nvid.tns and if I remove it on-calc, it just reappears after a reboot. I had to remove it on-calc and than change OS to get it off. (lukily I back up all OSes and make them upgrade-safe)
Other than that, AWESOME, keep up the good work  :thumbsup: :w00t:
Title: Re: nPlayer - TI-Nspire Video Player
Post by: ruler501 on June 03, 2011, 11:11:11 am
This is an odd problem does it do this even after you reload the OS so ndless isn't running?
Title: Re: nPlayer - TI-Nspire Video Player
Post by: Lionel Debroux on June 03, 2011, 11:42:17 am
After installing 3.0.1 with boot2 3.x, the calculator can be downgraded to boot2 1.1 or 1.4 through the RS232 port, and therefore OS 1.1-2.1 remain usable. Check critor's tutorial for more information.

After installing 3.0.2 with boot2 3.x, the calculator can be downgraded to boot2 1.1 or 1.4 through the RS232 port... but OS 3.0.2 set the anti-downgrade protection to refuse OS versions older than 3.0.2. And there's no equivalent of Nleash for OS 3.0.2...
Title: Re: nPlayer - TI-Nspire Video Player
Post by: ElementCoder on June 05, 2011, 10:39:08 am
This is an odd problem does it do this even after you reload the OS so ndless isn't running?
Problem solved. It can be removed without errors. Ndless just can't be installed if you want to remove it.

side-note: post #100 :D
Title: Re: nPlayer - TI-Nspire Video Player
Post by: DJ Omnimaga on June 06, 2011, 03:14:09 pm
After installing 3.0.1 with boot2 3.x, the calculator can be downgraded to boot2 1.1 or 1.4 through the RS232 port, and therefore OS 1.1-2.1 remain usable. Check critor's tutorial for more information.

After installing 3.0.2 with boot2 3.x, the calculator can be downgraded to boot2 1.1 or 1.4 through the RS232 port... but OS 3.0.2 set the anti-downgrade protection to refuse OS versions older than 3.0.2. And there's no equivalent of Nleash for OS 3.0.2...
In other words, most people who don't know how to use a RS232 device or can't get one are screwed D:
Title: nPlayer - TI-Nspire Video Player
Post by: apcalc on June 15, 2011, 11:33:27 am
nPlayer - TI-Nspire Video Player



http://www.omnimaga.org/index.php?action=downloads;sa=view;down=681
Title: Re: nPlayer - TI-Nspire Video Player
Post by: Hayleia on January 21, 2012, 10:37:56 am
O.O Was this ported for the CX ?
We could rickroll people with colors and play a Crysis video to make them jealous :P
Title: Re: nPlayer - TI-Nspire Video Player
Post by: apcalc on January 21, 2012, 11:23:45 am
Yes, I do have a somewhat-working version of this for the CX (well, it works fine, but it does not support all of the features of the current regular version).  I will try my best to release it soon! :)
Title: Re: nPlayer - TI-Nspire Video Player
Post by: apcalc on January 21, 2012, 12:36:04 pm
Sorry for the double post, but I think I have a version of this ready to release!  I'll post a news with the download in a minute! ;)
Title: nPlayer - CX
Post by: apcalc on January 21, 2012, 12:55:50 pm
nPlayer - CX



http://www.omnimaga.org/index.php?action=downloads;sa=view;down=770
Title: Re: nPlayer - TI-Nspire Video Player
Post by: njaddison on January 24, 2012, 11:18:23 pm
where did you find the awesome cars clip?
Title: Re: nPlayer - TI-Nspire Video Player
Post by: ChrisCj on September 24, 2012, 02:42:21 pm
MY THEME GOT DELETED! >:-(