• nPlayer - TI-Nspire Video Player 5 1
Currently:  

Author Topic: nPlayer - TI-Nspire Video Player  (Read 53501 times)

0 Members and 1 Guest are viewing this topic.

Offline apcalc

  • The Game
  • CoT Emeritus
  • LV10 31337 u53r (Next: 2000)
  • *
  • Posts: 1393
  • Rating: +120/-2
  • VGhlIEdhbWUh (Base 64 :))
    • View Profile
nPlayer - TI-Nspire Video Player
« 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):

« Last Edit: February 27, 2011, 05:10:41 pm by apcalc »


Offline Michael_Lee

  • LV9 Veteran (Next: 1337)
  • *********
  • Posts: 1019
  • Rating: +124/-9
    • View Profile
Re: TI-Nspire Video Player
« Reply #1 on: January 31, 2011, 06:36:57 pm »
Cool!  Can it play for longer then a few seconds?
My website: Currently boring.

Projects:
Axe Interpreter
   > Core: Done
   > Memory: Need write code to add constants.
   > Graphics: Rewritten.  Needs to integrate sprites with constants.
   > IO: GetKey done.  Need to add mostly homescreen IO stuff.
Croquette:
   > Stomping bugs
   > Internet version: On hold until I can make my website less boring/broken.

Offline critor

  • Editor
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2079
  • Rating: +439/-13
    • View Profile
    • TI-Planet
Re: TI-Nspire Video Player
« Reply #2 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?
TI-Planet co-admin.

Offline apcalc

  • The Game
  • CoT Emeritus
  • LV10 31337 u53r (Next: 2000)
  • *
  • Posts: 1393
  • Rating: +120/-2
  • VGhlIEdhbWUh (Base 64 :))
    • View Profile
Re: TI-Nspire Video Player
« Reply #3 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! :)
« Last Edit: January 31, 2011, 07:00:38 pm by apcalc »


Offline thepenguin77

  • z80 Assembly Master
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1594
  • Rating: +823/-5
  • The game in my avatar is bit.ly/p0zPWu
    • View Profile
Re: TI-Nspire Video Player
« Reply #4 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.
zStart v1.3.013 9-20-2013 
All of my utilities
TI-Connect Help
You can build a statue out of either 1'x1' blocks or 12'x12' blocks. The 1'x1' blocks will take a lot longer, but the final product is worth it.
       -Runer112

Offline apcalc

  • The Game
  • CoT Emeritus
  • LV10 31337 u53r (Next: 2000)
  • *
  • Posts: 1393
  • Rating: +120/-2
  • VGhlIEdhbWUh (Base 64 :))
    • View Profile
Re: TI-Nspire Video Player
« Reply #5 on: January 31, 2011, 08:06:50 pm »
Rickroll!


Offline ztrumpet

  • The Rarely Active One
  • CoT Emeritus
  • LV13 Extreme Addict (Next: 9001)
  • *
  • Posts: 5712
  • Rating: +364/-4
  • If you see this, send me a PM. Just for fun.
    • View Profile
Re: TI-Nspire Video Player
« Reply #6 on: January 31, 2011, 08:08:38 pm »
Wow, that's epic.  Great job! ;D
* ZTrumpet <3s the rickroll. :P

Offline Deep Toaster

  • So much to do, so much time, so little motivation
  • Administrator
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 8217
  • Rating: +758/-15
    • View Profile
    • ClrHome
Re: TI-Nspire Video Player
« Reply #7 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.
« Last Edit: January 31, 2011, 08:17:00 pm by Deep Thought »




Offline Builderboy

  • Physics Guru
  • CoT Emeritus
  • LV13 Extreme Addict (Next: 9001)
  • *
  • Posts: 5673
  • Rating: +613/-9
  • Would you kindly?
    • View Profile
Re: TI-Nspire Video Player
« Reply #8 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

SirCmpwn

  • Guest
Re: TI-Nspire Video Player
« Reply #9 on: January 31, 2011, 09:09:14 pm »
Sound? :D

Offline apcalc

  • The Game
  • CoT Emeritus
  • LV10 31337 u53r (Next: 2000)
  • *
  • Posts: 1393
  • Rating: +120/-2
  • VGhlIEdhbWUh (Base 64 :))
    • View Profile
Re: TI-Nspire Video Player
« Reply #10 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! :)


Offline Builderboy

  • Physics Guru
  • CoT Emeritus
  • LV13 Extreme Addict (Next: 9001)
  • *
  • Posts: 5673
  • Rating: +613/-9
  • Would you kindly?
    • View Profile
Re: TI-Nspire Video Player
« Reply #11 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

Offline apcalc

  • The Game
  • CoT Emeritus
  • LV10 31337 u53r (Next: 2000)
  • *
  • Posts: 1393
  • Rating: +120/-2
  • VGhlIEdhbWUh (Base 64 :))
    • View Profile
Re: TI-Nspire Video Player
« Reply #12 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 :(
« Last Edit: January 31, 2011, 10:22:38 pm by apcalc »


SirCmpwn

  • Guest
Re: TI-Nspire Video Player
« Reply #13 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.
« Last Edit: January 31, 2011, 10:25:00 pm by SirCmpwn »

Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55941
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
Re: TI-Nspire Video Player
« Reply #14 on: January 31, 2011, 10:58:01 pm »
Awesome! With compression I wonder how long videos could get on the Nspire...