LMLM4: Difference between revisions
Jump to navigation
Jump to search
m (add to container formats) |
(details of format) |
||
Line 4: | Line 4: | ||
LMLM4 files are near-raw files, containing MPEG-4 video and MPEG Layer 2, uLaw or ADPCM adio. | LMLM4 files are near-raw files, containing MPEG-4 video and MPEG Layer 2, uLaw or ADPCM adio. | ||
A file contains multiple packets, padded with zeroes to a multiple of 512 (the block size). | |||
typedef struct { | |||
uint16_t channel_number; | |||
uint16_t frame_type; | |||
uint32_t packet_size; | |||
uint8_t data[packet_size - 8]; | |||
uint8_t padding[ (512 - packet_size % 512) & 511 ]; | |||
} LMLM4_Packet; | |||
The maximum size of a packet is 1048576 bytes, which is 2048 blocks. | |||
The following frametypes are supported: | |||
0x00 - I-Frame, video | |||
0x01 - P-Frame, video | |||
0x02 - B-Frame, video | |||
0x04 - MPEG-1 Layer 2 audio | |||
0x05 - uLaw, audio | |||
0x06 - ADPCM, audio | |||
One packet contains a complete decodable frame. | |||
[[Category:Container Formats]] | [[Category:Container Formats]] |
Revision as of 09:49, 4 January 2008
- Extension: LML uses .divx on their website, though there are other file formats that use that, too.
- Company: Linux Media Labs
- Website: http://www.linuxmedialabs.com/
LMLM4 files are near-raw files, containing MPEG-4 video and MPEG Layer 2, uLaw or ADPCM adio.
A file contains multiple packets, padded with zeroes to a multiple of 512 (the block size).
typedef struct { uint16_t channel_number; uint16_t frame_type; uint32_t packet_size; uint8_t data[packet_size - 8]; uint8_t padding[ (512 - packet_size % 512) & 511 ]; } LMLM4_Packet;
The maximum size of a packet is 1048576 bytes, which is 2048 blocks.
The following frametypes are supported:
0x00 - I-Frame, video 0x01 - P-Frame, video 0x02 - B-Frame, video 0x04 - MPEG-1 Layer 2 audio 0x05 - uLaw, audio 0x06 - ADPCM, audio
One packet contains a complete decodable frame.