Author Topic: Nspire Video Player  (Read 7726 times)

0 Members and 1 Guest are viewing this topic.

Offline deng4

  • LV1 Newcomer (Next: 20)
  • *
  • Posts: 6
  • Rating: +7/-0
    • View Profile
Nspire Video Player
« on: March 23, 2011, 08:07:24 pm »
First of all this is in not the same video player as apcalc's nPlayer. I made this one during the last week in an attempt to achieve much higher levels of compression then other calculator video players The current version uses intraframe deflate compression and interframe RLE based change compression. Also interlaced videos are supported for even more compression. Overall this allows for about 7 sec/MB, but i have even more compressed video in the works. To generate video files I made a C# converter (will include in next release) of full color gifs to my more compressed format automatically. Currently the player can maintain a constant set fps which can theoretically be [1,100]. Each frame takes about 10ms (5 interlaced) to render. I would really like to know what you guys think and I will add more improvements soon.


Download Here!
« Last Edit: March 23, 2011, 08:21:10 pm by deng4 »

Offline z80man

  • Casio Traitor
  • LV8 Addict (Next: 1000)
  • ********
  • Posts: 977
  • Rating: +85/-3
    • View Profile
Re: Nspire Video Player
« Reply #1 on: March 23, 2011, 08:27:03 pm »
That looks really cool how you did an interlaced video format. I wonder if the quality would still be fine if the interlacing was done on every three lines instead of two.

List of stuff I need to do before September:
1. Finish the Emulator of the Casio Prizm (in active development)
2. Finish the the SH3 asm IDE/assembler/linker program (in active development)
3. Create a partial Java virtual machine  for the Prizm (not started)
4. Create Axe for the Prizm with an Axe legacy mode (in planning phase)
5. Develop a large set of C and asm libraries for the Prizm (some progress)
6. Create an emulator of the 83+ for the Prizm (not started)
7. Create a well polished game that showcases the ability of the Casio Prizm (not started)

Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55943
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
Re: Nspire Video Player
« Reply #2 on: March 24, 2011, 02:07:51 am »
Welcome to the forums deng4! This definitively looks pretty nice and clean. I'll have to try it soon, now that Ndless 2.0 is installed on my calc.

Offline Munchor

  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 6199
  • Rating: +295/-121
  • Code Recycler
    • View Profile
Re: Nspire Video Player
« Reply #3 on: March 24, 2011, 12:24:59 pm »
This looks awesome deng4! What's the max length/size of videos it takes?

Offline calc84maniac

  • eZ80 Guru
  • Coder Of Tomorrow
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2912
  • Rating: +471/-17
    • View Profile
    • TI-Boy CE
Re: Nspire Video Player
« Reply #4 on: March 24, 2011, 01:03:36 pm »
Hmm, I bet interlacing would actually help with the lcd response time, too :D
"Most people ask, 'What does a thing do?' Hackers ask, 'What can I make it do?'" - Pablos Holman

Offline deng4

  • LV1 Newcomer (Next: 20)
  • *
  • Posts: 6
  • Rating: +7/-0
    • View Profile
Re: Nspire Video Player
« Reply #5 on: March 24, 2011, 02:58:52 pm »
This looks awesome deng4! What's the max length/size of videos it takes?
The frame count is saved as a 32bit integer so theoretically if you had enough memory internally or externally it can go on for hours without end. But, on an ordinary nspire 15mb is about the max which can store around 2.5 minutes. This number is assuming settings are at ~24fps interlaced, so that number can vary a little depending on quality.

Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55943
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
Re: Nspire Video Player
« Reply #6 on: March 25, 2011, 04:53:29 pm »
Can we decrease the framerate? Because since the TI-Nspire LCD is very blurry, having a high framerate doesn't necessarily give much better results than a lower framerate. Past 15 frames per second, it starts being hard to see stuff sometimes, especially when grayscale is involved.

Offline yunhua98

  • You won't this read sentence right.
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2718
  • Rating: +214/-12
  • Go take a dive in the River Lethe.
    • View Profile
Re: Nspire Video Player
« Reply #7 on: March 25, 2011, 05:23:52 pm »
wow!  that looks great!  this is the kind of thing I would have liked to receive a pm regarding this about :P:

Quote from: My Sig
Have you seen any good news-worthy programs/events?  If so, PM me with an article to be included in the next issue of CGPN!

I should write one.  ;)
« Last Edit: March 25, 2011, 05:24:34 pm by yunhua98 »

Spoiler For =====My Projects=====:
Minor setback due to code messing up.  On hold for Contest.
<hr>
On hold for Contest.


Spoiler For ===Staff Memberships===:






Have you seen any good news-worthy programs/events?  If so, PM me with an article to be included in the next issue of CGPN!
The Game is only a demo, the code that allows one to win hasn't been done.
To paraphrase Oedipus, Hamlet, Lear, and all those guys, "I wish I had known this some time ago."
Signature Last Updated: 12/26/11
<hr>

Offline deng4

  • LV1 Newcomer (Next: 20)
  • *
  • Posts: 6
  • Rating: +7/-0
    • View Profile
Re: Nspire Video Player
« Reply #8 on: March 25, 2011, 06:28:14 pm »
Can we decrease the framerate?
Yes, once i release the converter tool this will be as simple as adding one argument. It should be ready in a few days because im currently adding in actual codec support.

wow!  that looks great!  this is the kind of thing I would have liked to receive a pm regarding this about :P:

Quote from: My Sig
Have you seen any good news-worthy programs/events?  If so, PM me with an article to be included in the next issue of CGPN!

I should write one.  ;)
Yeah, sorry i didn't notice that. You are free to write whatever you like about it and or PM if you have any questions. Im currently tied up with some annoying XVID code, but ill be happy to help if needed.

Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55943
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
Re: Nspire Video Player
« Reply #9 on: March 25, 2011, 06:33:40 pm »
That would be great. It's most likely gonna go on Omni front page news when finished too, even though it's not a game nor a game development utility.

Also I'm glad to read that we'll be able to change the framerate. :D

Offline critor

  • Editor
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2079
  • Rating: +439/-13
    • View Profile
    • TI-Planet
Re: Nspire Video Player
« Reply #10 on: March 25, 2011, 06:52:43 pm »
Did I just read XVID on the TI-Nspire ? . . . =^.^=
TI-Planet co-admin.

Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55943
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
Re: Nspire Video Player
« Reply #11 on: March 25, 2011, 06:54:27 pm »
This would be funny if the Nspire supported Xvid, considering Xvid support doesn't come on all computers by default. XD (You have to install the Xvid codec in some cases)

I wonder how many codecs will be supported?

Offline deng4

  • LV1 Newcomer (Next: 20)
  • *
  • Posts: 6
  • Rating: +7/-0
    • View Profile
Re: Nspire Video Player
« Reply #12 on: March 25, 2011, 07:00:26 pm »
Did I just read XVID on the TI-Nspire ? . . . =^.^=
It is still very very experimental but MIGHT actually work in witch case no other codecs would really be needed due to its supper performance. Its not really that hard because xvid is completely open source in C.

Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55943
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
Re: Nspire Video Player
« Reply #13 on: March 25, 2011, 07:15:36 pm »
Would we be able to convert other type of formats such as h.263/4 or even Fraps? Or would we still need to use a software that supports Xvid conversion?

And it's nice that Xvid is open-source. :D

Offline squalyl

  • LV3 Member (Next: 100)
  • ***
  • Posts: 49
  • Rating: +2/-0
    • View Profile
Re: Nspire Video Player
« Reply #14 on: March 26, 2011, 06:33:44 am »
We have a nspire forge where cool nspire and projects are hosted. we have svn/git and trac (bugs, downloads, etc).

would you like a dedicated space?

just visit: http://nspforge.unsads.com