Author Topic: Nspire Movie Player - alternative to nPlayer  (Read 55356 times)

0 Members and 1 Guest are viewing this topic.

Offline tangrs

  • LV5 Advanced (Next: 300)
  • *****
  • Posts: 229
  • Rating: +98/-0
    • View Profile
    • tangrs blog
Nspire Movie Player - alternative to nPlayer
« on: March 07, 2012, 05:30:11 am »
Inspired by nPlayer, I spent a long time trying to write an improved video player and looking for a easy way to get compression on the video files.

Today, I managed to incorporate JPEG compression into my program and I'm happy to say, I have managed to bring the file size of a movie file from ~131.84MB per minute (sequential raw bitmaps at 15fps) to a measly ~2.86MB per minute (sequential JPEGs at 15fps).

I can play the whole Rickroll song while only using about 10.5MB for the movie file. Combine that with the ~90MB free space you get on a CX, you could probably fit about a half an hour movie or anime on it.

Although it's a WIP, I probably won't have any time to further improve it (school yah see). The nPlayer developer(s) are welcome to use my ideas and code (code is GPL'd though) to improve nPlayer.

Anyway, here's the video and link to the source code.



Source code

Offline Jonius7

  • python! Lua!
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1918
  • Rating: +82/-18
  • Still bringing new dimensions to the TI-nspire...
    • View Profile
    • TI Stadium
Re: Nspire Movie Player - alternative to nPlayer
« Reply #1 on: March 07, 2012, 07:11:00 am »
Wow, well done! This definitely reduces files down to a manageable size, and will help greatly. Looking forward to seeing progress on this!
EDIT: Not really sure how to compile this exactly [shrug] :P
« Last Edit: March 07, 2012, 07:21:38 am by Jonius7 »
Programmed some CASIO Basic in the past
DJ Omnimaga Music Discographist ;)
DJ Omnimaga Discography
My Own Music!
My Released Projects (Updated 2015/05/08)
TI-nspire BASIC
TI-nspire Hold 'em
Health Bar
Scissors Paper Rock
TI-nspire Lua
Numstrat
TI-nspire Hold 'em Lua
Transport Chooser
Secret Project (at v0.08.2 - 2015/05/08)
Spoiler For Extra To-Be-Sorted Clutter:

Spoiler For Relegated Projects:
TI-nspire BASIC
Battle of 16s (stalled) | sTIck RPG (stalled) | Monopoly (stalled) | Cosmic Legions (stalled)
Axe Parser
Doodle God (stalled while I go and learn some Axe)

Offline Hayleia

  • Programming Absol
  • Coder Of Tomorrow
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 3367
  • Rating: +393/-7
    • View Profile
Re: Nspire Movie Player - alternative to nPlayer
« Reply #2 on: March 07, 2012, 11:11:23 am »
This looks great !
However, could you post a compiled tns file and some kind of a tutorial so we know how to use it ? ;)
« Last Edit: March 07, 2012, 11:11:28 am by Hayleia »
I own: 83+ ; 84+SE ; 76.fr ; CX CAS ; Prizm ; 84+CSE
Sorry if I answer with something that seems unrelated, English is not my primary language and I might not have understood well. Sorry if I make English mistakes too.

click here to know where you got your last +1s

Offline Adriweb

  • Editor
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1708
  • Rating: +229/-17
    • View Profile
    • TI-Planet.org
Re: Nspire Movie Player - alternative to nPlayer
« Reply #3 on: March 07, 2012, 01:04:13 pm »
This is awesome, congratulations.

And Critor will be pleased to know somebody successfully got a jpg format reader to compile :)
« Last Edit: March 07, 2012, 01:04:27 pm by adriweb »
My calculator programs
TI-Planet.org co-admin.
TI-Nspire Lua programming : Tutorials  |  API Documentation

Offline Lionel Debroux

  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2135
  • Rating: +290/-45
    • View Profile
    • TI-Chess Team
Re: Nspire Movie Player - alternative to nPlayer
« Reply #4 on: March 07, 2012, 01:32:32 pm »
Good job, as usual ;)

I've created a news about this interesting new development on TI-Planet , in French.
« Last Edit: March 07, 2012, 01:34:28 pm by Lionel Debroux »
Member of the TI-Chess Team.
Co-maintainer of GCC4TI (GCC4TI online documentation), TILP and TIEmu.
Co-admin of TI-Planet.

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 Movie Player - alternative to nPlayer
« Reply #5 on: March 07, 2012, 02:07:28 pm »
Looks nice. Somebody definitively gotta compile this so people can use it immediately. I might eventually post a news too.

Offline Spyro543

  • LV9 Veteran (Next: 1337)
  • *********
  • Posts: 1189
  • Rating: +74/-3
    • View Profile
Re: Nspire Movie Player - alternative to nPlayer
« Reply #6 on: March 07, 2012, 03:35:12 pm »
It probably won't work on the older Nspires, right?

Offline cyanophycean314

  • LV6 Super Member (Next: 500)
  • ******
  • Posts: 363
  • Rating: +43/-1
  • It's You!
    • View Profile
Re: Nspire Movie Player - alternative to nPlayer
« Reply #7 on: March 07, 2012, 05:28:10 pm »
Om Nom. Very good! I shall rickrolls my friends now... >:D

Offline Jim Bauwens

  • Lua! Nspire! Linux!
  • Editor
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1881
  • Rating: +206/-7
  • Linux!
    • View Profile
    • nothing...
Re: Nspire Movie Player - alternative to nPlayer
« Reply #8 on: March 08, 2012, 03:14:09 am »
Very nice work!

Offline tangrs

  • LV5 Advanced (Next: 300)
  • *****
  • Posts: 229
  • Rating: +98/-0
    • View Profile
    • tangrs blog
Re: Nspire Movie Player - alternative to nPlayer
« Reply #9 on: March 08, 2012, 04:09:54 am »
Thanks for the feedback!

I'll polish it up a bit before a binary release since it's quite ugly right now :P I'll probably have it up by the end of tomorrow.

Edit: Thanks to the CX's bigger storage area, I managed to get a full episode of an anime onto the calc!

It probably won't work on the older Nspires, right?

It doesn't take much to port it to the old calcs. I'll get around to it after I polish things up.
« Last Edit: March 08, 2012, 04:12:00 am by tangrs »

Offline tangrs

  • LV5 Advanced (Next: 300)
  • *****
  • Posts: 229
  • Rating: +98/-0
    • View Profile
    • tangrs blog
Re: Nspire Movie Player - alternative to nPlayer
« Reply #10 on: March 09, 2012, 04:43:10 am »
A very early version is ready for use!

Offline annoyingcalc

  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1953
  • Rating: +140/-72
  • Found in Eclipse.exe
    • View Profile
Re: Nspire Movie Player - alternative to nPlayer
« Reply #11 on: March 09, 2012, 04:57:45 am »
Wow, well done! This definitely reduces files down to a manageable size, and will help greatly. Looking forward to seeing progress on this!
EDIT: Not really sure how to compile this exactly [shrug] :P
thank you

but can I have never gonna give you up in a tns file?
« Last Edit: March 09, 2012, 05:02:09 am by annoyingcalc »
This used to contain a signature.

Offline Hayleia

  • Programming Absol
  • Coder Of Tomorrow
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 3367
  • Rating: +393/-7
    • View Profile
Re: Nspire Movie Player - alternative to nPlayer
« Reply #12 on: March 09, 2012, 10:03:55 am »
A very early version is ready for use!
Yay ! Thanks :D
However, my calc crashed :P
I sent the player, the test video you included and a new ndless.cfg.tns (so it works with file associations) then ran the video. The calc played the video then shut down, and no key responded, except the reset one :P

edit: also, the quitting key is not that obvious :P
edit: also, not everybody has a working Ndless SDK D:. Wouldn't it be possible to have another way to convert videos ?
« Last Edit: March 09, 2012, 11:15:58 am by Hayleia »
I own: 83+ ; 84+SE ; 76.fr ; CX CAS ; Prizm ; 84+CSE
Sorry if I answer with something that seems unrelated, English is not my primary language and I might not have understood well. Sorry if I make English mistakes too.

click here to know where you got your last +1s

Offline tangrs

  • LV5 Advanced (Next: 300)
  • *****
  • Posts: 229
  • Rating: +98/-0
    • View Profile
    • tangrs blog
Re: Nspire Movie Player - alternative to nPlayer
« Reply #13 on: March 09, 2012, 05:57:29 pm »
A very early version is ready for use!
Yay ! Thanks :D
However, my calc crashed :P
I sent the player, the test video you included and a new ndless.cfg.tns (so it works with file associations) then ran the video. The calc played the video then shut down, and no key responded, except the reset one :P

edit: also, the quitting key is not that obvious :P
edit: also, not everybody has a working Ndless SDK D:. Wouldn't it be possible to have another way to convert videos ?

Haha, like I said, it's a very early version. Which calc did you run it on? I have yet to test it on classics.

Yep, more polish coming up! I'll change the quitting key on the next release.

You don't need the Ndless SDK to convert videos, you just need a working C compiler to compile the helper program. I understand not everyone has one installed on their system though so I'll try to compile the helper program for Windows and release a binary.

Offline Hayleia

  • Programming Absol
  • Coder Of Tomorrow
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 3367
  • Rating: +393/-7
    • View Profile
Re: Nspire Movie Player - alternative to nPlayer
« Reply #14 on: March 10, 2012, 12:55:20 am »
Wait, in fact it seems that it didn't crash O.O
But after it ran the video, it diplays a black screen and waits for the 5 key to be pressed.
And when I tried all the keys, I pressed them quickly, maybe it didn't detect it when I pressed it.
Now it is ok, I press 5 at the end and it quits :)

I ran it on a CX CAS

I understand not everyone has one installed on their system though so I'll try to compile the helper program for Windows and release a binary.
Yeah, thanks :D
My sister uses a C compiler but I don't know how it works so I'll wait for your release :P
I own: 83+ ; 84+SE ; 76.fr ; CX CAS ; Prizm ; 84+CSE
Sorry if I answer with something that seems unrelated, English is not my primary language and I might not have understood well. Sorry if I make English mistakes too.

click here to know where you got your last +1s