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

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

0 Members and 1 Guest are viewing this topic.

Offline z80man

  • Casio Traitor
  • LV8 Addict (Next: 1000)
  • ********
  • Posts: 977
  • Rating: +85/-3
    • View Profile
Re: TI-Nspire Video Player
« Reply #45 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

and can you post the result once you get it working because it would be nice to see the result.

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 Compynerd255

  • LV6 Super Member (Next: 500)
  • ******
  • Posts: 336
  • Rating: +53/-4
  • Betafreak Games
    • View Profile
    • Betafreak Games
Re: TI-Nspire Video Player
« Reply #46 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.
The Slime: On Hold, preparing to add dynamic tiles

Axe Eitrix: DONE

Betafreak Games: Fun filled games for XBox and PC. Check it out at http://www.betafreak.com



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 #47 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...


Offline nspirator

  • LV0 Newcomer (Next: 5)
  • Posts: 4
  • Rating: +0/-0
    • View Profile
Re: TI-Nspire Video Player
« Reply #48 on: February 10, 2011, 09:23:35 pm »
Yes I use Ndless 1.7... But thanks for your advance to the nspire developement :)

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 #49 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.
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 calc84maniac

  • eZ80 Guru
  • Coder Of Tomorrow
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2912
  • Rating: +471/-17
    • View Profile
    • TI-Boy CE
Re: TI-Nspire Video Player
« Reply #50 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
"Most people ask, 'What does a thing do?' Hackers ask, 'What can I make it do?'" - Pablos Holman

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: TI-Nspire Video Player
« Reply #51 on: February 11, 2011, 02:01:36 am »
Sounds, does nspire have speakers?
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 TIfanx1999

  • ಠ_ಠ ( ͡° ͜ʖ ͡°)
  • CoT Emeritus
  • LV13 Extreme Addict (Next: 9001)
  • *
  • Posts: 6173
  • Rating: +191/-9
    • View Profile
Re: TI-Nspire Video Player
« Reply #52 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.

Offline Compynerd255

  • LV6 Super Member (Next: 500)
  • ******
  • Posts: 336
  • Rating: +53/-4
  • Betafreak Games
    • View Profile
    • Betafreak Games
Re: TI-Nspire Video Player
« Reply #53 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!)
The Slime: On Hold, preparing to add dynamic tiles

Axe Eitrix: DONE

Betafreak Games: Fun filled games for XBox and PC. Check it out at http://www.betafreak.com



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: TI-Nspire Video Player
« Reply #54 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. :)
« Last Edit: February 14, 2011, 01:05:42 am by DJ_O »

Offline z80man

  • Casio Traitor
  • LV8 Addict (Next: 1000)
  • ********
  • Posts: 977
  • Rating: +85/-3
    • View Profile
Re: TI-Nspire Video Player
« Reply #55 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.

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 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: TI-Nspire Video Player
« Reply #56 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...
« Last Edit: February 15, 2011, 04:37:56 am by jhgenius01 »
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 ruler501

  • Meep
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2475
  • Rating: +66/-9
  • Crazy Programmer
    • View Profile
Re: TI-Nspire Video Player
« Reply #57 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.
I currently don't do much, but I am a developer for a game you should totally try out called AssaultCube Reloaded download here https://assaultcuber.codeplex.com/
-----BEGIN GEEK CODE BLOCK-----
Version: 3.1
GCM/CS/M/S d- s++: a---- C++ UL++ P+ L++ E---- W++ N o? K- w-- o? !M V?
PS+ PE+ Y+ PGP++ t 5? X R tv-- b+++ DI+ D+ G++ e- h! !r y

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 #58 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...


Offline ruler501

  • Meep
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2475
  • Rating: +66/-9
  • Crazy Programmer
    • View Profile
Re: TI-Nspire Video Player
« Reply #59 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.
I currently don't do much, but I am a developer for a game you should totally try out called AssaultCube Reloaded download here https://assaultcuber.codeplex.com/
-----BEGIN GEEK CODE BLOCK-----
Version: 3.1
GCM/CS/M/S d- s++: a---- C++ UL++ P+ L++ E---- W++ N o? K- w-- o? !M V?
PS+ PE+ Y+ PGP++ t 5? X R tv-- b+++ DI+ D+ G++ e- h! !r y