Format:RoQ
Appearance
| On this wiki | Facts · Code · Notes · Topics |
|---|
id Software's cinematic format (.roq, Quake III and Return to Castle Wolfenstein era, also The 11th Hour): chunks with an 8-byte little-endian preamble (u16 type, u32 size, u16 argument); the file starts with chunk 0x1084 whose size is 0xFFFFFFFF and whose argument is the frame rate.
Layout
Every chunk has an 8-byte preamble: u16 type, u32 size, u16 argument, all little-endian. The file begins with the signature chunk: type 0x1084, size 0xFFFFFFFF (FFmpeg's probe checks exactly these 6 bytes), and an argument holding the frame rate.
Chunk types
| Type | Meaning |
|---|---|
| 0x1001 | RoQ_INFO: 8-byte body, u16 width, u16 height first |
| 0x1002 | quad codebook |
| 0x1011 | quad VQ frame data (a codebook is packaged with the next VQ chunk) |
| 0x1020 | mono sound |
| 0x1021 | stereo sound |
Audio sample rate is fixed at 22050 Hz in FFmpeg's demuxer. The video is vector-quantized on 2x2 and 4x4 blocks.
Code & repositories
- https://github.com/FFmpeg/FFmpeg @
c2bbf2b83d064313ca3739f81c651553cfbb26fb· license: LGPL-2.1-or-later (declared by the contributor; GitHub's detector did not recognize COPYING.GPLv2)
FFmpeg libavformat demuxers smacker.c, idroqdec.c, flvdec.c, mpegts.c
Tested on: source read, not run: source reading only · checked 2026-10-18; last activity 2026-10-18
Evidence & references
- FFmpeg libavformat/idroqdec.c (LGPL-2.1+).