Author Topic: Video player for Casio Prizm  (Read 55765 times)

0 Members and 1 Guest are viewing this topic.

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: Video player for Casio Prizm
« Reply #45 on: January 27, 2012, 04:28:34 am »
I checked those posts and page and it was not for the 9860GII as he asked, but rather the 9860 SD ???

Or maybe I missed a link somewhere?

Offline MPoupe

  • LV4 Regular (Next: 200)
  • ****
  • Posts: 168
  • Rating: +30/-1
  • The coder of yesterday
    • View Profile
    • My web site about Casio calculator
Re: Video player for Casio Prizm
« Reply #46 on: January 27, 2012, 09:32:31 am »
I checked those posts and page and it was not for the 9860GII as he asked, but rather the 9860 SD ???
There are 3 types of 9860 as I know:
1. old 9860G ( + 9860G SD), this is the model on which I wrote the player and everything should work :-)
2. 9860 G II - very similar to old 9860G, has back-light and newer OS (which was possible to flash to the old 9860G and what I already did)
There should also everything work.
3. 9860 G II Power graphic 2 (I am not sure with the name), with CPU from Prizm. This is different HW, but because I released the source code, owner can use my sources, remove the sound part (which is platform specific) and use only silent video player. It should work I hope.

Offline flyingfisch

  • I'm 1337 now!
  • Members
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1620
  • Rating: +94/-17
  • Testing, testing, 1...2...3...4...5...6...7...8..9
    • View Profile
    • Top Page Website Design
Re: Video player for Casio Prizm
« Reply #47 on: January 27, 2012, 12:49:51 pm »
What kind of movies does it play, and does it need an SD card?



Quote from: my dad
"welcome to the world of computers, where everything seems to be based on random number generators"



The Game V. 2.0

Offline helder7

  • LV4 Regular (Next: 200)
  • ****
  • Posts: 185
  • Rating: +33/-1
    • View Profile
Re: Video player for Casio Prizm
« Reply #48 on: January 27, 2012, 04:37:51 pm »
Quote
Hello,
I do not have any automated tool, I did following:
1. take a video and convert it (by autoGK) to have width 128 pixels.
2. extract images from the video (I used IV_Player.exe from Irfan view's plugins directory)
3. by irfan view - crop all images to have height 64 pixels (they had 80), decrease color depth to 2 (use Floyd-Steinberg dithering) and save as raw - use batch mode, images should have 1 byte per pixels -> 8KB per image
4. "compress" the images so they have 1 bit per pixel, the highest bit of the first byte is top left pixel (1KB per image)
5. negate it (on the calc 0 means white, 1 means black; opposite as on PC).
6. append all images together -> done
Martin, you might be better explain the steps 5 and 6 of SCVP conversion process?

What kind of movies does it play, and does it need an SD card?
it play special converted movies, and the app needs SD Card for save the video (video file is too big for non SD models) ...

more info here: http://martin.poupe.org/casio/scvp/index.html
« Last Edit: January 27, 2012, 04:38:34 pm by helder7 »

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: Video player for Casio Prizm
« Reply #49 on: January 27, 2012, 04:55:06 pm »
I checked those posts and page and it was not for the 9860GII as he asked, but rather the 9860 SD ???
There are 3 types of 9860 as I know:
1. old 9860G ( + 9860G SD), this is the model on which I wrote the player and everything should work :-)
2. 9860 G II - very similar to old 9860G, has back-light and newer OS (which was possible to flash to the old 9860G and what I already did)
There should also everything work.
3. 9860 G II Power graphic 2 (I am not sure with the name), with CPU from Prizm. This is different HW, but because I released the source code, owner can use my sources, remove the sound part (which is platform specific) and use only silent video player. It should work I hope.

Oh ok because if it's compatible with 9860G, then why does it require a SD card? The 9860G doesn't have an SD card slot...

Offline helder7

  • LV4 Regular (Next: 200)
  • ****
  • Posts: 185
  • Rating: +33/-1
    • View Profile
Re: Video player for Casio Prizm
« Reply #50 on: January 27, 2012, 05:57:39 pm »
Oh ok because if it's compatible with 9860G, then why does it require a SD card? The 9860G doesn't have an SD card slot...
the internal memory of the calculator does not have space for videos (for exemple, The demonstration video is 10 mb and it is small ...).... need to use the SD card to save it

unless it is a video of a few seconds ...i can fit in internal memory, maybe...

if you want to test, just edit the patch in source code to the videos, using SDK, and convert a small video
« Last Edit: January 27, 2012, 05:57:58 pm by helder7 »

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: Video player for Casio Prizm
« Reply #51 on: January 27, 2012, 10:06:00 pm »
Yeah but what I mean is if it requires SD, then why MPoupe says it's compatible on the 9860G in the first place, even though the 9860G lacks SD card support? Or is english language barrier the issue? ???

Offline MPoupe

  • LV4 Regular (Next: 200)
  • ****
  • Posts: 168
  • Rating: +30/-1
  • The coder of yesterday
    • View Profile
    • My web site about Casio calculator
Re: Video player for Casio Prizm
« Reply #52 on: January 30, 2012, 04:49:35 am »
Yeah but what I mean is if it requires SD, then why MPoupe says it's compatible on the 9860G in the first place, even though the 9860G lacks SD card support? Or is english language barrier the issue? ???
OK, so the SD card presence (or non presence) is the issue :-)
I attach updated version of the fxplayer, it works with both SD and internal flash.

Please could somebody test it on the non SD model ?

PS: Many English words have many meanings. There are also English words, that have many meanings from which some of them are antagonism.

Offline jgibson02

  • LV0 Newcomer (Next: 5)
  • Posts: 2
  • Rating: +0/-0
    • View Profile
Re: Video player for Casio Prizm
« Reply #53 on: February 07, 2012, 09:16:29 pm »
hello, i try create a video using JPG files

im in this step:
compression level 60 (use irfan_view - batch mode)



here is i can change compression level?

EDITED: i had used this site: http://jpeg-optimizer.com/  to compress the images

my first converted jpg based video -> http://videobam.com/gmOxw


I have all of my jpegs stored in a folder, now what do I do to compile them together into a .mjp file?

Offline MPoupe

  • LV4 Regular (Next: 200)
  • ****
  • Posts: 168
  • Rating: +30/-1
  • The coder of yesterday
    • View Profile
    • My web site about Casio calculator
Re: Video player for Casio Prizm
« Reply #54 on: February 08, 2012, 05:29:03 am »
I have all of my jpegs stored in a folder, now what do I do to compile them together into a .mjp file?
The mjp file format is simple, it is an array of "frames". Each frame is length of the jpg file (rounded up to be dividable 4;  32 bit value in little endian) and the jpg file itself.
I attached simple program which does exactly this compilation to the package (streamer.cpp). For your convenience I dump it here :
Code: [Select]
#include "stdio.h"

const char *pszInputFmt="%04u.jpg";
const char *pszOutputfile = "demo.mjp";
char gBuf[65536];
int LoadFile(int index)
{
char sName[1024]={0};
FILE *f;
int len;
sprintf(sName,pszInputFmt,index);
f=fopen(sName,"rb");
if(!f)
{
return -1;
}
len=fread(gBuf,1,sizeof(gBuf),f);
fclose(f);
len = (len+3) & ~3;
return len;
}
int main(int argc, char* argv[])
{
FILE *f = fopen(pszOutputfile,"wb");
int i,len;//max 5 240
for(i=1;;i++)
{
len = LoadFile(i);
if(len <=0)break;//read failed
if(i % 5)continue;//25 fps --> 5 fps conversion
fwrite(&len,4,1,f);//each frame (= jpg file) has 4 byte length (int32, little endian)
fwrite(gBuf,len,1,f);//the file itself
printf(".");
}
fclose(f);

return 0;
}

Offline flyingfisch

  • I'm 1337 now!
  • Members
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1620
  • Rating: +94/-17
  • Testing, testing, 1...2...3...4...5...6...7...8..9
    • View Profile
    • Top Page Website Design
Re: Video player for Casio Prizm
« Reply #55 on: February 08, 2012, 12:20:18 pm »
...
What kind of movies does it play, and does it need an SD card?
it play special converted movies, and the app needs SD Card for save the video (video file is too big for non SD models) ...

more info here: http://martin.poupe.org/casio/scvp/index.html

I thought the PRIZM does not have an SD card slot. How will that work out?



Quote from: my dad
"welcome to the world of computers, where everything seems to be based on random number generators"



The Game V. 2.0

Offline jgibson02

  • LV0 Newcomer (Next: 5)
  • Posts: 2
  • Rating: +0/-0
    • View Profile
Re: Video player for Casio Prizm
« Reply #56 on: February 08, 2012, 03:40:54 pm »
I have all of my jpegs stored in a folder, now what do I do to compile them together into a .mjp file?
The mjp file format is simple, it is an array of "frames". Each frame is length of the jpg file (rounded up to be dividable 4;  32 bit value in little endian) and the jpg file itself.
I attached simple program which does exactly this compilation to the package (streamer.cpp). For your convenience I dump it here :
Code: [Select]
#include "stdio.h"

const char *pszInputFmt="%04u.jpg";
const char *pszOutputfile = "demo.mjp";
char gBuf[65536];
int LoadFile(int index)
{
char sName[1024]={0};
FILE *f;
int len;
sprintf(sName,pszInputFmt,index);
f=fopen(sName,"rb");
if(!f)
{
return -1;
}
len=fread(gBuf,1,sizeof(gBuf),f);
fclose(f);
len = (len+3) & ~3;
return len;
}
int main(int argc, char* argv[])
{
FILE *f = fopen(pszOutputfile,"wb");
int i,len;//max 5 240
for(i=1;;i++)
{
len = LoadFile(i);
if(len <=0)break;//read failed
if(i % 5)continue;//25 fps --> 5 fps conversion
fwrite(&len,4,1,f);//each frame (= jpg file) has 4 byte length (int32, little endian)
fwrite(gBuf,len,1,f);//the file itself
printf(".");
}
fclose(f);

return 0;
}

I'm sorry to be a bother, but I'm a huge newbie to this type of thing, with minimal programming experience, although I hope to learn soon and go onto a computer science major. I downloaded your package yesterday, but could not figure out how to execute the steamer.cpp file to compile the jpegs.

Offline helder7

  • LV4 Regular (Next: 200)
  • ****
  • Posts: 185
  • Rating: +33/-1
    • View Profile
Re: Video player for Casio Prizm
« Reply #57 on: February 08, 2012, 04:31:59 pm »
I'm sorry to be a bother, but I'm a huge newbie to this type of thing, with minimal programming experience, although I hope to learn soon and go onto a computer science major. I downloaded your package yesterday, but could not figure out how to execute the steamer.cpp file to compile the jpegs.
easy step by step:
1-Download MinGW _> http://sourceforge.net/projects/mingw/files/latest/download?source=files  and install it in C:\MinGW

2-Copy streamer.ccp and image frames (0001.jpg, 0002.jpg....) to C:\MinGW\bin

edit file streamer.ccp with notepad++

CTRL+F and find in streamer.ccp for this line
      
Code: [Select]
if(i % 5)continue;//25 fps --> 5 fps conversion
if you do not want frame skip, replace it to

Code: [Select]
if(i % 1)continue;//25 fps --> 5 fps conversion
save file streamer.ccp in folder C:\MinGW\bin

3.open windows pompt and write this command:

Code: [Select]
cd C:\MinGW\bin

then this command

Code: [Select]
g++ streamer.cpp -o streamer.exe
4.run file streamer.exe in folder C:\MinGW\bin

5.copy demo.mjp generated in this folder + cgplayer2.g3a (martin package) to your calculator, enjoy
« Last Edit: February 25, 2012, 09:02:50 am by helder7 »

Offline MPoupe

  • LV4 Regular (Next: 200)
  • ****
  • Posts: 168
  • Rating: +30/-1
  • The coder of yesterday
    • View Profile
    • My web site about Casio calculator
Re: Video player for Casio Prizm
« Reply #58 on: February 09, 2012, 09:12:50 am »
...
What kind of movies does it play, and does it need an SD card?
it play special converted movies, and the app needs SD Card for save the video (video file is too big for non SD models) ...

more info here: http://martin.poupe.org/casio/scvp/index.html

I thought the PRIZM does not have an SD card slot. How will that work out?
There are 2 video players.
The Prizm player (CGPlayer) is at http://martin.poupe.org/casio/cgplayer/index.html. Of course it doesn't need the SD card, the video should be saved to the internal flash.
The fx9860G player (fxPlayer) is at http://martin.poupe.org/casio/9860player/index.html. I updated it so it allows, but doesn't require SD card. Video should be saved on the SD card (if available) or in the internal flash.

Offline flyingfisch

  • I'm 1337 now!
  • Members
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1620
  • Rating: +94/-17
  • Testing, testing, 1...2...3...4...5...6...7...8..9
    • View Profile
    • Top Page Website Design
Re: Video player for Casio Prizm
« Reply #59 on: February 09, 2012, 11:08:57 am »
Ahh... OK. I didn't realize that the PRIZM had so much internal memory. How much video can you store on 16MB?



Quote from: my dad
"welcome to the world of computers, where everything seems to be based on random number generators"



The Game V. 2.0