Jump to content



Photo
- - - - -

Mpeg2 Player For Casio Prizm


  • Please log in to reply
2 replies to this topic

#1 ProgrammerNerd

ProgrammerNerd

    Newbie

  • Members
  • Pip
  • 14 posts

  • Calculators:
    Casio Prizm

Posted 11 September 2014 - 11:36 PM

This is more of a front-end to libmpeg2
The source code can be found at https://github.com/C...zm-mpeg2-player
You can download the file here http://www.cemetech....de=file&id=1070
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


Edited by ProgrammerNerd, 11 September 2014 - 11:37 PM.

  • MicroPro likes this

#2 MicroPro

MicroPro

    Casio Overlord

  • Deputy
  • PipPipPipPipPipPipPip
  • 640 posts
  • Gender:Male
  • Location:Iran

  • Calculators:
    Casio ClassPad 300

Posted 12 September 2014 - 07:24 AM

It must be fun how you port libraries to calculators. As I noticed from your build instructions, you managed to meet the memory requirements of Prizm though I'm not sure how. Was this the hardest part?

 

If you used specific methods to overcome memory requirement, they could be used elsewhere too. E.g a commonly requested project in calculator forums are file compression utilities, which have high memory requirements.



#3 ProgrammerNerd

ProgrammerNerd

    Newbie

  • Members
  • Pip
  • 14 posts

  • Calculators:
    Casio Prizm

Posted 12 September 2014 - 09:00 PM

Well consider I have have 512kb of ram plus 128kb of heap plus an additional area of ram that is normally used for saving a copy of the VRAM and is 162kb of ram available for use not much needs changing. You should have asked this in the open jazz jack rabbit topic. I had to make lots of changes for that.
  • MicroPro likes this




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users