Introduction
NUT is a low overhead, general-purpose container for audio, video, subtitle and user-defined streams. FFmpeg and MPlayer developers started it in 2003 and finalised it in 2008.
FFmpeg both reads and writes it.
Structure
FFmpeg's source defines the file identifier as the text nut/multimedia container followed by a zero byte. It also defines these 64-bit start codes:
| Packet | Start code |
|---|---|
| Main header | 0x4E4D7A561F5F04AD |
| Stream header | 0x4E5311405BF2F9DB |
| Syncpoint | 0x4E4BE4ADEECA4569 |
| Index | 0x4E58DD672F23E64E |
| Info | 0x4E49AB68B596BA78 |
The format has two header flags for special uses. BROADCAST adds the sender's wall clock time to syncpoints. PIPE leaves syncpoints out, for output that cannot be seeked.
Not described
This page is a short summary. The packet and frame layout is not yet described here, and there is no viewer for NUT files.
Known, not yet covered
- Reference: header fields, frame coding, syncpoints and the index.
- Viewer: listing the streams and packets.
Links
Software
- FFmpeg – media toolkit that reads and writes NUT
Reference
- NUT – FFmpeg's description of the format and its modes
- nut.h – constants used by FFmpeg
- FFmpeg General Documentation – table of supported formats