Author Topic: MPEG2 player for casio prizm  (Read 9561 times)

0 Members and 1 Guest are viewing this topic.

Offline ProgrammerNerd

  • LV3 Member (Next: 100)
  • ***
  • Posts: 50
  • Rating: +9/-2
    • View Profile
MPEG2 player for casio prizm
« on: April 13, 2014, 05:08:52 pm »
This is more of a front-end to libmpeg2
The source code can be found at https://github.com/ComputerNerd/Casio-prizm-mpeg2-player
You can download the file here http://www.casiopeia.net/forum/downloads.php?view=detail&df_id=146
The latest version is 1.031 which fixes a scaling bug that causes some pixels to be ignored.
Version 1.3 fixed an issue on real hardware where the screen would get corrupt. It is highly recommend that you run the latest version. Running 1.2 or older is a bad choice.
To use this program you will see a file browser
I have it set to show *.m2v files because there is no audio but it may play mpeg2 with audio (untested) but it will be ignored
As for what resolution you should make the video I would not go over half of screen resolution it should support 384x216 maximum but malloc errors are encountered
While the video is playing press exit to go back to the file browser if you want to do such.
In the readme I have included compiling instructions if you are interested in using libmpeg2 in one of your own projects.
To encode video I used
the following avisynth script
AviSource("FILE PATH HERE")
BilinearResize(176,96)
ChangeFPS(128,13)
AssumeFPS("ntsc_video")
ConvertToYV12()

To encode the video I used HC encoder http://hank315.nl/

There are some settings that you should be aware of please use 1:1 ratio for pixels
Also if you want height to be a multiple of 16 instead of 32 make sure progress sequence is checked (In settings 2)

Icon from http://www.pubzi.com/f/Movie-icon.svg
« Last Edit: June 01, 2014, 10:48:18 am by ProgrammerNerd »

Offline Juju

  • Incredibly sexy mare
  • Coder Of Tomorrow
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 5730
  • Rating: +500/-19
  • Weird programmer
    • View Profile
    • juju2143's shed
Re: MPEG2 player for casio prizm
« Reply #1 on: April 14, 2014, 12:27:12 am »
Sounds nice, I'll try it soon. I doubt you'd be able to put anything longer than a short music video on the calculator, but still. For the sound, you can always try something with the serial port.

Remember the day the walrus started to fly...

I finally cleared my sig after 4 years you're happy now?
THEGAME
This signature is ridiculously large you've been warned.

The cute mare that used to be in my avatar is Yuki Kagayaki, you can follow her on Facebook and Tumblr.

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: MPEG2 player for casio prizm
« Reply #2 on: April 16, 2014, 03:39:30 pm »
Seems nice, although I probably won't try it yet, since like every other video player for calcs, creating the actual calc videos is a major nightmare (either they use command prompt/lacks GUI or they take several hours to figure out how to get it to work), which is probably why rarely anybody use them, even Nspire ones. Probably during my Summer vacations when I have time to sit down for a few hours. >.<

Offline ProgrammerNerd

  • LV3 Member (Next: 100)
  • ***
  • Posts: 50
  • Rating: +9/-2
    • View Profile
Re: MPEG2 player for casio prizm
« Reply #3 on: April 16, 2014, 04:52:36 pm »
DJ Omnimaga I think you are mistaken. MPEG2 is a standard format. See https://en.wikipedia.org/wiki/MPEG-2
All you need to do is encode the video in MPEG2 format which is very easy to do and many free programs will do it for you.

Offline Juju

  • Incredibly sexy mare
  • Coder Of Tomorrow
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 5730
  • Rating: +500/-19
  • Weird programmer
    • View Profile
    • juju2143's shed
Re: MPEG2 player for casio prizm
« Reply #4 on: April 16, 2014, 09:26:30 pm »
Yeah, unlike other video players it directly takes standard .mpg files.

Remember the day the walrus started to fly...

I finally cleared my sig after 4 years you're happy now?
THEGAME
This signature is ridiculously large you've been warned.

The cute mare that used to be in my avatar is Yuki Kagayaki, you can follow her on Facebook and Tumblr.

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: MPEG2 player for casio prizm
« Reply #5 on: April 16, 2014, 11:07:07 pm »
Yeah that was the good part about this particular player. All other ones used weird formats that required special, hard to find softwares that didn't work. However, the other video players also had the disadvantage of requiring the user to use command prompt, and unfortunately, the target audience of a video player (mostly kids who just want to show off and are either not tech-savy or lack the extra patience that command prompt requires) is most likely gonna get turned away by this. Of course, I haven't checked if this MPEG2 player has a GUI or not, but if it lacks one, it might be a good idea to add one.
« Last Edit: April 16, 2014, 11:11:22 pm by DJ Omnimaga »

Offline Streetwalrus

  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 3821
  • Rating: +80/-8
    • View Profile
Re: MPEG2 player for casio prizm
« Reply #6 on: April 17, 2014, 03:34:57 am »
Butbutbut CLI. D: CLI stuff is awesome, I smoke weed use it everyday. :P

Offline ProgrammerNerd

  • LV3 Member (Next: 100)
  • ***
  • Posts: 50
  • Rating: +9/-2
    • View Profile
Re: MPEG2 player for casio prizm
« Reply #7 on: April 17, 2014, 05:30:44 pm »
Yes the player does have a gui. See the attachment if you want to see what it looks like. Also I see nothing wrong with command line. Even though it is not necessary for my program I don't see any reason to avoid learning it.
« Last Edit: April 18, 2014, 01:41:29 pm by ProgrammerNerd »

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: MPEG2 player for casio prizm
« Reply #8 on: April 17, 2014, 10:10:38 pm »
Aah that's cool to hear. :D As for command line I don't have troubles using it but I just find it takes much longer on the user end to navigate to the right folder then type the program name with commands than when double-clicking an icon then selecting one or two options. >.<

Offline Streetwalrus

  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 3821
  • Rating: +80/-8
    • View Profile
Re: MPEG2 player for casio prizm
« Reply #9 on: April 18, 2014, 07:02:30 am »
That's because you don't use Zsh. :P
* Streetwalrus pokes DJ to switch to Linux.

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: MPEG2 player for casio prizm
« Reply #10 on: April 18, 2014, 07:13:32 am »
But... but... Battle.net 1.0/ICCup  D:

Offline bb010g

  • LV6 Super Member (Next: 500)
  • ******
  • Posts: 428
  • Rating: +22/-1
  • I do stuff
    • View Profile
    • elsewhere on the net
Re: MPEG2 player for casio prizm
« Reply #11 on: April 27, 2014, 03:46:58 pm »
Dual-booting is your friend.
Arch Linux user
Haskell newbie | Warming up to Lua | Being dragged into C++
Calculators: HP 50g, HP 35s, Casio Prizm, TI-Nspire CX CAS, HP 28s, HP Prime, Mathematica 9 (if that counts)
π: 3.14...; l: 108; i: 105; e: 101; l+i+e: 314
THE CAKE IS A LIE IS A PIE

Offline Streetwalrus

  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 3821
  • Rating: +80/-8
    • View Profile
Re: MPEG2 player for casio prizm
« Reply #12 on: April 29, 2014, 01:37:47 pm »
^That. That's what I do and it works pretty well. Windows for games and emulation because GPU (performance and feature set), and Linux for pretty much everything else. :P

Offline Eiyeron

  • Urist McEiyolobster
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1430
  • Rating: +130/-10
  • (-_(//));
    • View Profile
    • Rétro-Actif : Rétro/Prog/Blog
Re: MPEG2 player for casio prizm
« Reply #13 on: May 05, 2014, 08:27:32 am »
Linux now has good performances with nvidia drivers, they even support Optimus! Oo I saw Melee on Dolphin running in 1080p on a Manjaro.

I should try this addin on my calc, it seems quite the fun project.

Offline Streetwalrus

  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 3821
  • Rating: +80/-8
    • View Profile
Re: MPEG2 player for casio prizm
« Reply #14 on: May 05, 2014, 12:57:22 pm »
I have an AMD GPU and the catalyst drivers don't perform as good on Linux as they do on Windows. Or so it would seem. :/