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

0 Members and 2 Guests are viewing this topic.

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 #30 on: September 16, 2012, 01:03:27 pm »
On another, but related topic, porting libmpeg2 to the Nspire platform could be interesting. It was ported years ago to the comparable GP32 (133 MHz ARM processor), http://www.yaronet.com/posts.php?s=57680 .
libmpeg2 has a SDL video backend.
Member of the TI-Chess Team.
Co-maintainer of GCC4TI (GCC4TI online documentation), TILP and TIEmu.
Co-admin of TI-Planet.

Offline Twilight Sparkle

  • LV1 Newcomer (Next: 20)
  • *
  • Posts: 5
  • Rating: +2/-0
  • Programming is Magic
    • View Profile
Re: Nspire Movie Player - alternative to nPlayer
« Reply #31 on: September 17, 2012, 02:22:28 pm »
Porting libmpeg2 surely is interesting, but will it not require more std C syscalls to be added to Ndless ?
http://www.rockbox.org/wiki/PluginMpegplayer contains some useful information in the bottom links regarding libmpeg2, if anyone is interested in it :)

Offline xacto

  • LV3 Member (Next: 100)
  • ***
  • Posts: 68
  • Rating: +10/-0
    • View Profile
Re: Nspire Movie Player - alternative to nPlayer
« Reply #32 on: September 18, 2012, 10:05:27 am »
Actually, I decided a about two weeks ago to work on a batch script that would make everything easier. So far it installs MinGW, locates the desired movie, and converts it to the stream of pictures (frame 00001.jpg, frame 00002.jpg, etc). The user just has to provide input for the file locations when prompted. It will also contain ffmpeg when it is finished.

Offline Twilight Sparkle

  • LV1 Newcomer (Next: 20)
  • *
  • Posts: 5
  • Rating: +2/-0
  • Programming is Magic
    • View Profile
Re: Nspire Movie Player - alternative to nPlayer
« Reply #33 on: September 18, 2012, 11:23:14 am »
Oh, that sounds nice too :D

Offline caser

  • LV0 Newcomer (Next: 5)
  • Posts: 1
  • Rating: +0/-0
    • View Profile
Re: Nspire Movie Player - alternative to nPlayer
« Reply #34 on: September 24, 2012, 12:15:47 am »
So how's the batch script going?

Offline xacto

  • LV3 Member (Next: 100)
  • ***
  • Posts: 68
  • Rating: +10/-0
    • View Profile
Re: Nspire Movie Player - alternative to nPlayer
« Reply #35 on: September 24, 2012, 04:39:13 am »
I feel like I want to smack myself. The script is great except for one thing: when it comes time to output the files, it is denied. I believe it is because it is attempting to output the files to the script. I have been looking on how to specify the file output location in ffmpeg. Also, I think I'm going to work back on the guide until I can get the script done. Frustratingly enough, I found out while testing out my script, which is over 40 lines, that it only really needs two lines :banghead:. Which is exactly why doing a guide just became so much easier.

EDIT: I know there are a few people who would like to try the Nspire Movie Player out ... And now you can! I have just finished the guide, so feel free to give it a shot. If anyone has any problems, comments, or suggestions, I am more than glad to hear them.

The zip file is attached below.
Due to the size restriction, I had to split the zip file into volumes. Must be opened using WinRar. Simply download all of the attachments to a folder, right click the zip file and click extract.

Edit: Click link to view post containing download link. http://ourl.ca/15452/318629
« Last Edit: October 04, 2012, 01:11:46 pm by xacto »

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 #36 on: September 24, 2012, 11:12:10 am »
Great, I'll try this as soon as I get some free time :D

(Also, I read your pm some day I didn't have time to answer then forgot about it x.x Sorry)

edit: I managed to get a tns file but running it reboots the calc ??? The test.nmp.tns file runs fine however, so the problem must come from the file I generated (which takes 4.19 Mo if that helps)
« Last Edit: September 24, 2012, 12:35:14 pm 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 xacto

  • LV3 Member (Next: 100)
  • ***
  • Posts: 68
  • Rating: +10/-0
    • View Profile
Re: Nspire Movie Player - alternative to nPlayer
« Reply #37 on: September 24, 2012, 07:21:47 pm »
It is not a problem. If you start having problems again, send me the text output from running the commands in Command Prompt and I'll see if I can find where you went wrong. Also, the file size depends on the movie. Some of my seven second clips were around 882 KB. So for a file size of 4.19 Mb, your movie should of been about 30 to 33 seconds long I'm guessing.

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 #38 on: September 25, 2012, 11:41:15 am »
It is not a problem.
Of course it is, the video doesn't run. Launching it reboots the calc then 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 #39 on: September 25, 2012, 03:46:52 pm »
It is not a problem.

When I said that, I was referring to:
(Also, I read your pm some day I didn't have time to answer then forgot about it x.x Sorry)
I forgot to kinda clarify what I was talking about. Like I said earlier, try it again just so you can copy all the text from command prompt. Then save it to Notepad or something, and pm me with the attachment.
Look on the bright side: At least you made it farther than last time.

Has anyone else had any luck or obstacles trying it?
« Last Edit: September 25, 2012, 03:51:08 pm by xacto »

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 #40 on: September 26, 2012, 12:02:24 pm »
pm me with the attachment.
I think that is not possible to pm attachements, so I give you an image of the answer of the command prompt here :)
The command prompt says that, and a tns file is created but running it crashes.

Look on the bright side: At least you made it farther than last time.
That is true :D
« Last Edit: September 26, 2012, 12:03:33 pm 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 xacto

  • LV3 Member (Next: 100)
  • ***
  • Posts: 68
  • Rating: +10/-0
    • View Profile
Re: Nspire Movie Player - alternative to nPlayer
« Reply #41 on: September 26, 2012, 01:51:24 pm »
AHA! I have found the answer! :w00t: I think. Nope. I lost it. Anyways, you might want to change "MovieNameHere" to the actual name that you want the movie to be called. Also, try moving the folder location to your actual hard drive. I am also going to need a screenshot that has all of the output from both commands. Try to include everything listed from the time cmd is opened until the file creation including, the ffmpeg part. If it's to big, you could copy and pm the text as a message. Thanks. Oh and by the way, do you think I should make a guide for converting GIF's to movies? I have found a software that is simple and works pretty well.

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 #42 on: September 27, 2012, 12:36:19 pm »
Anyways, you might want to change "MovieNameHere" to the actual name that you want the movie to be called.
I did it the first time but when I saw I failed, I made other tries without changing the name.

Also, try moving the folder location to your actual hard drive.
It is on my hard drive, the one called "F:\" ???

I am also going to need a screenshot that has all of the output from both commands.
It created all the frames so I guess the first step worked. Anyways, I'll make another try and send you the output when I have some time :)
« Last Edit: September 27, 2012, 12:36:47 pm 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 xacto

  • LV3 Member (Next: 100)
  • ***
  • Posts: 68
  • Rating: +10/-0
    • View Profile
Re: Nspire Movie Player - alternative to nPlayer
« Reply #43 on: September 27, 2012, 04:15:54 pm »
It is on my hard drive, the one called "F:\" ???
Oh. I thought the F:\ drive was a flash drive.
It created all the frames so I guess the first step worked. Anyways, I'll make another try and send you the output when I have some time :)
Ok. No problem. Oh, and what about the gif idea?

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 #44 on: September 28, 2012, 01:40:16 pm »
It is on my hard drive, the one called "F:\" ???
Oh. I thought the F:\ drive was a flash drive.
Nope, it is a hard drive :)

Oh, and what about the gif idea?
Yeah, I saw on TI-Planet people who asked for a gif player on Nspire, so that would be cool if they could convert their gifs into videos then convert them for NspireMoviePlayer :)


Ok, I made another try and it still didn't work :-\
Here is the total output of the command prompt, in the spoiler.
Spoiler For Spoiler:

F:\TI 83 Plus\NSPIRE CX CAS\NDLESS\nspire movie player v0.1.1\xacto\ffmpeg\
bin>ffmpeg -i "F:\II.mp4" frame-%05d.jpg
ffmpeg version N-43921-ga366bea Copyright (c) 2000-2012 the FFmpeg developers
  built on Aug 26 2012 20:57:47 with gcc 4.7.1 (GCC)
  configuration: --enable-gpl --enable-version3 --disable-pthreads --enable-runt
ime-cpudetect --enable-avisynth --enable-bzlib --enable-frei0r --enable-libass -
-enable-libcelt --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-l
ibfreetype --enable-libgsm --enable-libmp3lame --enable-libnut --enable-libopenj
peg --enable-librtmp --enable-libschroedinger --enable-libspeex --enable-libtheo
ra --enable-libutvideo --enable-libvo-aacenc --enable-libvo-amrwbenc --enable-li
bvorbis --enable-libvpx --enable-libx264 --enable-libxavs --enable-libxvid --ena
ble-zlib
  libavutil      51. 70.100 / 51. 70.100
  libavcodec     54. 54.100 / 54. 54.100
  libavformat    54. 25.104 / 54. 25.104
  libavdevice    54.  2.100 / 54.  2.100
  libavfilter     3. 13.101 /  3. 13.101
  libswscale      2.  1.101 /  2.  1.101
  libswresample   0. 15.100 /  0. 15.100
  libpostproc    52.  0.100 / 52.  0.100
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'F:\II.mp4':
  Metadata:
    major_brand     : mp42
    minor_version   : 0
    compatible_brands: isomavc1mp42
  Duration: 00:00:03.60, start: 0.000000, bitrate: 536 kb/s
    Stream #0:0(und): Audio: aac (mp4a / 0x6134706D), 44100 Hz, stereo, s16, 109
 kb/s
    Metadata:
      handler_name    : (C) 2007 Google Inc. v06.24.2007.
    Stream #0:1(und): Video: h264 (Baseline) (avc1 / 0x31637661), yuv420p, 480x3
60 [SAR 1:1 DAR 4:3], 420 kb/s, 25 fps, 25 tbr, 25k tbn, 50k tbc
    Metadata:
      handler_name    : (C) 2007 Google Inc. v06.24.2007.
Output #0, image2, to 'frame-%05d.jpg':
  Metadata:
    major_brand     : mp42
    minor_version   : 0
    compatible_brands: isomavc1mp42
    encoder         : Lavf54.25.104
    Stream #0:0(und): Video: mjpeg, yuvj420p, 480x360 [SAR 1:1 DAR 4:3], q=2-31,
 200 kb/s, 90k tbn, 25 tbc
    Metadata:
      handler_name    : (C) 2007 Google Inc. v06.24.2007.
Stream mapping:
  Stream #0:1 -> #0:0 (h264 -> mjpeg)
Press [q] to stop, [?] for help
frame=   90 fps=0.0 q=0.0 Lsize=       0kB time=00:00:03.60 bitrate=   0.0kbits/
s
video:607kB audio:0kB subtitle:0 global headers:0kB muxing overhead -100.000000%


F:\TI 83 Plus\NSPIRE CX CAS\NDLESS\nspire movie player v0.1.1\xacto\ffmpeg\
bin>moviecompile "F:\TI 83 Plus\NSPIRE CX CAS\NDLESS\nspire movie player v0
.1.1\xacto\ffmpeg\bin" MovieNameHere.nmp.tns 15

F:\TI 83 Plus\NSPIRE CX CAS\NDLESS\nspire movie player v0.1.1\xacto\ffmpeg\
bin>
edit: karmTI doesn't even want to receive the produced tns, transferring doesn't work. Maybe a header problem or something ??
« Last Edit: September 28, 2012, 02:15:30 pm 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