Author Topic: Nspire Movie Player - alternative to nPlayer  (Read 49747 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
Re: Nspire Movie Player - alternative to nPlayer
« Reply #15 on: March 10, 2012, 04:06:17 am »
New version.

Esc key ends movie instead of '5' and movie rewind issue fixed. Also included a binary version of moviecompile for Windows.
« Last Edit: March 10, 2012, 04:07:01 am by tangrs »

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 #16 on: March 10, 2012, 06:56:12 am »
Thanks for compiling it :)
Now how exactly do you use the moviecompile.exe ? :P

Quote
Otherwise, if you enjoy more control over the ffmpeg options, make a folder for all your frames. Then compile the helper.c program and copy the executable into your folder.

Change into your directory and run the following command on the command line:

ffmpeg -i /path/to/movie -s qvga -an -r 15 frame-%05d.jpg

This will spit out a whole lot of files. When it finishes, run the moviecompile program and it will produce a file. Copy this to your calculator along with the main program and run it. Make sure the extension ends in .nmp.tns.
Do we put the video in the "folder for all your frames" or do we put frames in it ?
Which format is supported ?
What does "Change into your directory" mean ? :P (I am French)

edit: I didn't understand anything to ffmpeg -.-°
Would it be possible to have a method with SUPER, for example ? It can convert a video into a sequence of JPG images, with 15 fps, etc, which is what you use according to what I understood :)
« Last Edit: March 10, 2012, 10:47:00 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 njaddison

  • LV4 Regular (Next: 200)
  • ****
  • Posts: 176
  • Rating: +24/-27
    • View Profile
Re: Nspire Movie Player - alternative to nPlayer
« Reply #17 on: March 12, 2012, 07:52:05 pm »
Mon ami Rishi est stupide...
Il n'aime pas ndless.

He is missing out on all of the awesome stuff ndless lets you do, like this.

Also, I have no idea how to compile a sequence of images or whatever. Yeah, and couldn't I use something like super? I don't have ffmpegy thingy or whatever. I just want to be able to easily watch movies on my nspire.
« Last Edit: March 12, 2012, 08:18:45 pm by njaddison »
<a href="http://www.nerdtests.com/ft_nt2.php">
<img src="http://www.nerdtests.com/images/badge/nt2/5f42ec78e054645d.png" alt="NerdTests.com says I'm a Highly Dorky Nerd God.  Click here to take the Nerd Test, get geeky images and jokes, and talk to others on the nerd forum!">
</a>


Offline tangrs

  • LV5 Advanced (Next: 300)
  • *****
  • Posts: 229
  • Rating: +98/-0
    • View Profile
    • tangrs blog
Re: Nspire Movie Player - alternative to nPlayer
« Reply #18 on: March 17, 2012, 05:21:10 am »
Sorry for the lack of updates, I've been busy in the past week XD

So basically, here's an update on the situation so far:

The movie player work but it lags... Like a lot. There's two ways out - optimize the compression routines or decode ahead of time somehow and cache the frames.

Both ways, it'll take some time. I'm looking into both options right now. When we get that sorted, we can start working on stuff like fast forward and rewinding.

The other thing on the TODO list is support for the older calculators. This might come a bit later though seeing as I don't have an old Nspire to test with and the emulator image is lost somewhere on my hard drive.

Basically, top priority right now is optimizing the damn thing. Sound 'may' be a possibility through the serial port but given how annoying it is to make a dock connector, I doubt it will be feasible any time soon.

Oh and about the video converting thing, I'll look into a way to make that easier. I'm a Mac/*nix user so most of the instructions were for *nix users.
« Last Edit: March 17, 2012, 05:23:14 am by tangrs »

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: Nspire Movie Player - alternative to nPlayer
« Reply #19 on: March 17, 2012, 02:37:01 pm »
Actually I didn't find Super to be any easier than ffmpeg. Most of the times it wouldn't even convert at all and it seemed really picky. X.x

The only way to really make it easier for the user of the video player is that the author of it creates a computer software designed specifically for the video player or at least as easy as it is to create RealSound or FX Audio Player music. In most cases, though, this requires a considerable amount of work for the author and he needs to know a computer language in addition to the Nspire one, so doing this is not very likely to happen.
« Last Edit: March 17, 2012, 02:40:05 pm by DJ_O »

Offline xacto

  • LV3 Member (Next: 100)
  • ***
  • Posts: 68
  • Rating: +10/-0
    • View Profile
Re: Nspire Movie Player - alternative to nPlayer
« Reply #20 on: April 13, 2012, 11:06:44 pm »
Hey tangrs I was wondering how to convert a movie for this. I already have the moviecompile.exe file, but I don't really have a clue how to compile everything in the beginning or what you meant when you said," Go into the source code and change the movie filename. Change into the directory and run make and it should compile everything."

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 #21 on: April 13, 2012, 11:09:00 pm »
with super I get 00001.jpg 00002.jpg not frame-00001.jpg
This used to contain a signature.

Offline xacto

  • LV3 Member (Next: 100)
  • ***
  • Posts: 68
  • Rating: +10/-0
    • View Profile
Re: Nspire Movie Player - alternative to nPlayer
« Reply #22 on: April 14, 2012, 10:53:54 pm »
also does anyone know how to do this using super?

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 #23 on: May 20, 2012, 11:56:56 am »
Bump
Any progress on this so we can watch MLP on calc :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

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 #24 on: May 26, 2012, 01:16:31 pm »
Sorry to keep bumping this topic but I don't manage to convert videos.
Using ffmpeg, I can get the frames (named frame-00001.jpg to frame-03032.jpg) but running the moviecompile program does nothing ???
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 xacto

  • LV3 Member (Next: 100)
  • ***
  • Posts: 68
  • Rating: +10/-0
    • View Profile
Re: Nspire Movie Player - alternative to nPlayer
« Reply #25 on: June 13, 2012, 06:16:44 pm »
I was just wondering if anyone could give me the exact link of ffmpeg and instructions on like what to type once ffmpeg is open because I have been dying to try it out but I have absolutely no idea whatsoever on what to do or how to do it. Thanks.

Offline xacto

  • LV3 Member (Next: 100)
  • ***
  • Posts: 68
  • Rating: +10/-0
    • View Profile
Re: Nspire Movie Player - alternative to nPlayer
« Reply #26 on: August 30, 2012, 12:43:58 am »
Nevermind about my previous post. I finally was able to make it work. :w00t: So many movies so little memory. I better get started. ;D
« Last Edit: August 30, 2012, 12:45:06 am by xacto »

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: Nspire Movie Player - alternative to nPlayer
« Reply #27 on: August 30, 2012, 01:07:57 am »
It would definitively be nice if there was a quicker and easier way to do it, though. SUPER is hard to download and doesn't work properly with most videos and FFMPEG requires command prompt and typing a lot of parameters. Unless there was an easier way posted before and I missed it/forgot?

Offline xacto

  • LV3 Member (Next: 100)
  • ***
  • Posts: 68
  • Rating: +10/-0
    • View Profile
Re: Nspire Movie Player - alternative to nPlayer
« Reply #28 on: August 31, 2012, 12:14:35 am »
I'm actually working on creating a text file on how I did it. When it's done, I'm hoping others will be able use it and achieve the same results. I'll try to get it posted this weekend. Wait, how would you us ffmpeg through command prompt?
« Last Edit: August 31, 2012, 12:39:52 am by xacto »

Offline MasterGeek

  • LV2 Member (Next: 40)
  • **
  • Posts: 24
  • Rating: +0/-0
    • View Profile
Re: Nspire Movie Player - alternative to nPlayer
« Reply #29 on: September 16, 2012, 12:52:48 pm »
It could be possible to make a "package" of all the files you need (including ffmpeg) and use a batch file to start the process. You would just put the file you want to convert in a certain folder or give it a certain name and open the batch file.
If you want I could make the batch file as I have experience with batch files.
« Last Edit: September 16, 2012, 12:53:39 pm by MasterGeek »