EDIT. wiki will delete it because it think this is a original research. :(
Now I paste it here FYI.
Jonny has invented a .pmp file format for SONY's PSP. Following is the specification for PMP File Format:
1.pmp video
1.1 video header
unsigned int pmpm; // It is ASCII hardcoded "0x6d706d70"
unsigned int version;
unsigned int number_of_frames;
unsigned int width;
unsigned int height;
unsigned int scale;
unsigned int rate;
unsigned int maximum_frame_size;
1.2 video index
unsigned int size; // Frame one's size * 2 + (Frame one is KeyFrame)?1:0
unsigned int size; // Frame two's size * 2 + (Frame two is KeyFrame)?1:0
...
unsigned int size; // Frame number_of_frames's size * 2 + (Frame number_of_frames is KeyFrame)?1:0
1.3 video data
byte frame[size]; // store binary data of frame one
byte frame[size]; // store binary data of frame two
...
byte frame[size]; // store binary data of frame number_of_frames
2.pmp audio
2.1 audio header
unsigned int frame_size;
unsigned int number_of_frames;
2.2 audio index
byte index; // If Frame one is indexed, index=1, otherwise, index=0
byte index; // If Frame two is indexed, index=1, otherwise, index=0
...
byte index; // If Frame number_of_frames is indexed, index=1, otherwise, index=0
2.3 audio data
byte frame[size]; // store binary data of frame one and index (1 byte), if have.
byte frame[size]; // store binary data of frame two and index (1 byte), if have.
...
byte frame[size]; // store binary data of frame number_of_frames and index (1 byte), if have.
Pay attention:
1.The PMP File Format is only for little endian. Please be careful if you parse it in a big endian machine (e.g. PowerPC).