Register

Prizm CGplayer2 and 3 Video Conversion Tools

Discuss anything related to calculators. For specific help on certain games/programs check the Released Projects subforum.
Senior Member
Posts: 369
Joined: Tue Jan 03, 2012 11:24 pm
Calculators: Casio Afx 1.0, Casio fx-9860GII SD, Casio Classpad 330, Casio fx-CG20, Casio Classpad fx-CP400

Prizm CGplayer2 and 3 Video Conversion Tools

Postby helder7 » Sun May 06, 2012 2:16 pm

Some time ago, Martin Poupe released to the public their video player for casio prizm.
However, he did not release any tool to convert videos (only some instructions), they had to be converted using the command line, what was difficult for normal prizm users.

Image

I've been working to create an easy way to convert videos, and I come here today to release this conversion tools.

Conversion Tool for cgplayer 2 (jpg based) V2:

Changes:
-New Preview Function

You need:
You need Java - http://java.com/en/download/index.jsp
Conversion tool - http://www.casio-scene.com/downloads.php?do=file&id=447
Pc running windows (doesnt work on linux)

Usage:
1-Download .rar file and extract it (on desktop, or at any place)

2-Copy your video to the folder "video" and rename it to cs.extension

Exemples:
old name: casio-scene.wmv
new name cs.wmv

old name: casio-scene.mpg
new name: cs.mpg

3-Open file BatchGUI.jar, click in "Start!" and select your video file in folder video (named cs.extension)

4-close BatchGUI.jar wait some seconds until the video frames is extracted

Open folder video and run the file 1-YOUREXTENSION.exe

for exemple, if my video is cs.wmv, i need run the file 1-WMV.exe

then, run file 2-delete_frames.bat to delete all frames and clear the folder video

if you want test the video in pc, open 3-test it.bat (in video folder).

5- copy cgplayer2.g3a (in package root) and demo.mjp (in folder video) to your prizm (in calculator root), enjoy!


Conversion Tool for cgplayer 3 (raw based) NEW!:

You need:
You need Java - http://java.com/en/download/index.jsp
Conversion tool - http://www.casio-scene.com/downloads.php?do=file&id=448 (new link, framerate bug fixed)
Pc running windows (doesnt work on linux)

Usage:
1-Download .rar file and extract it (on desktop, or at any place)

2-Copy your video to the folder "video" and rename it to cs.extension

Exemples:
old name: casio-scene.wmv
new name cs.wmv

old name: casio-scene.mpg
new name: cs.mpg

3-Open file BatchGUI.jar, click in "Start!" and select your video file in folder video (named cs.extension)

4-close BatchGUI.jar wait some seconds until the video frames is extracted

Open folder video and run the file 1-convert_frames.bat (to convert extracted .jpg frames to .pgm)

after open 2-YOUREXTENSION.exe

for exemple, if my video is cs.wmv, i need run the file 2-WMV.exe

then, run file 3-delete_frames.bat to delete all frames and clear the folder video

if you want test the video in pc, open 4-test it.bat (in video folder).

5- copy cgplayer3.g3a (in package root) and demo.mjp (in folder video) to your prizm (in calculator root), enjoy!


Only tested on 2 pcs with windows 7, if you find some bugs, report here...
SiO2 + CaCO3 ----------> CaSiO3 + CO2

Martin

Postby Martin » Mon May 07, 2012 5:28 pm

Hi, you did a good job !

Senior Member
Posts: 369
Joined: Tue Jan 03, 2012 11:24 pm
Calculators: Casio Afx 1.0, Casio fx-9860GII SD, Casio Classpad 330, Casio fx-CG20, Casio Classpad fx-CP400

Postby helder7 » Mon May 07, 2012 7:25 pm

thanks!

i want make a similar tool for scvp

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


how you append all images together (step 6)?
SiO2 + CaCO3 ----------> CaSiO3 + CO2

Martin

Postby Martin » Wed May 09, 2012 9:41 am

The step 6 is easy, use the same method like for cgplayer2 (appending jpeg image frames to 1 big file). The only difference is, that scvp video file contains only the images (= no 4 byte length before each image)

Senior Member
Posts: 369
Joined: Tue Jan 03, 2012 11:24 pm
Calculators: Casio Afx 1.0, Casio fx-9860GII SD, Casio Classpad 330, Casio fx-CG20, Casio Classpad fx-CP400

Postby helder7 » Wed May 16, 2012 11:52 am

About step 4, who do you "compress" raw frames?
SiO2 + CaCO3 ----------> CaSiO3 + CO2

Martin

Postby Martin » Wed May 16, 2012 5:09 pm

"compress" the images so they have 1 bit per pixel, the highest bit of the first byte is top left pixel (1KB per image):
You convert 8 KB frames, where 1 byte = pixel to 1KB frames, where 1 bit = pixel (or 1 byte = 8 pixels).
You have to make 1 output byte from each 8 input bytes. Each input byte has only 1 of 2 possible values = 0 or 255.

So take 0 as output byte B.
If 1. input byte == 255 then B |= 128;
If 2. input byte == 255 then B |= 64;
If 3. input byte == 255 then B |= 32;
...
If 7. input byte == 255 then B |= 2;
If 8. input byte == 255 then B |= 1;

Save output byte B to output file,load next 8 bytes from the input frame and repeat.

Senior Member
Posts: 369
Joined: Tue Jan 03, 2012 11:24 pm
Calculators: Casio Afx 1.0, Casio fx-9860GII SD, Casio Classpad 330, Casio fx-CG20, Casio Classpad fx-CP400

Postby helder7 » Thu May 17, 2012 3:35 pm

you have some tool to do this or what program do you use?
SiO2 + CaCO3 ----------> CaSiO3 + CO2

Return to General

Who is online

Users browsing this forum: No registered users and 108 guests