Video capture and postprocess
Capture: Pstros is able to capture sequential stream of screens and store it on the disk. By pressing the F12 key the capture process is started or stoped (in case capture is already in progress). Pstros creates a subdirectory 'capt' in the current directory (from where the pstros was executed) and stores all the screens in here.
Screens are sequentially numbered so that postprocessing software can determine the screen order. Every video capture process will set the initial number of the first screen to 0 so it overwrites the previous and subsequent screens that might already exist in the 'capt' subdirectory. Screen image picture is stored in the TGA RGB uncompressed and loseless format so the disk space consuption is quite large (depends on the device screen size and application framerate).
Note that pstros doesn't capture the screen in constant framerate (application/game independent). The exported images match the device screen in the moment after the paint() method has finished.
Pstros can also capture screens to the single output stream by pressing Alt+F12. The capt.orv file is created in the current directory and screens along with the timing info are stored in the file. Screen data are stored in compressed form (only the differences form the previous screen are stored) so the disk consupmtion is lower compared to previous method (unless the whole screen changes completely every frame, scrolling of the screen is however handled). Zipped orv files are more convenient for sharing and archival purposes.
The capture.orv file can be later decompressed back (without quality loss) to the single images or played back in pstros or by the other program (decoder source code is freely available here).
Web orv player demo is located here.
java -jar pstros.jar capt.orv -o./capt/
Decompress the capt.orv file and stores single images in the ./capt/ directory. Playback command:
java -Xbootclasspath/a:./video.zip -jar pstros.jar -player -w176 -h208
Playbacks the capt.orv file zipped in the video.zip file on the screen with defined width and height. Postprocess: For postprocessing of the captured images like rescaling, removing unnecessary parts of the capture and exporting into the avi file there is an excellent free programm called VirtualDub. It allows you to open the captured image and automatically import all subsequent images to form a video data. It allows you to merge video streams into the single one and export it to avi file encoded by any codec available on your computer.
MP3 audio playback
Pstros supports playback of the mp3 audio files by using the external libraries made by JavaZOOM . Required are mp3spi, tritonus_share and jl libraries. Pstros execution parameters might look like this: java -Xbootclasspath/a:./mp3spi1.9.4.jar;./tritonus_share.jar;./jl1.0.jar -jar pstros.jar MyGame.jar
Embeding pstros to other java program
Pstros can be embeded to other java programs by using it's executor interface . This way a gui can be added to improve "device look & feel". Sample gui application is available here .