File Format Description ----------------------- Audio and video is stored in ``*.aud`` and ``*.vid`` files; if there are multiple video cameras, each camera's video is stored in a separate ``*.vid`` file. The file content is described below in the order of it's appearance in the file. The general structure of the file is: #. Magic string. The string is ``HELSINKI_VIDEO_MEG_PROJECT_VIDEO_FILE`` for video files and ``HELSINKI_VIDEO_MEG_PROJECT_AUDIO_FILE`` for audio files. #. Format version number. This is a 32 bit integer specifying the format version. Format of the rest of the file is version-dependent. Version 0 ^^^^^^^^^ The audio file additionally contains: #. A 32-bit integer describing the sampling rate in Hz. #. A 32-bit integer describing the number of channels. #. Two bytes specifying the data format for a single audio sample. The two bytes should be interpreted as an Python `format string `_ in ascii encoding. For example, ``