BSDAV(5)

NAME
bsdav - audio/video stream format

SYNOPSIS
#include <bsdav.h>

DESCRIPTION
Often video streams are accompanied by audio streams. The bsdav format describes a method of storing raw video and audio streams in a single file. This format also contains information about the data, to aid in playback or other processing of the streams.

bsdav streams begin with the contents of a bsdav_stream_header written as a string of BSDAV_STRHDR_SIZE hexadecimal characters. This data defines certain attributes of both the video and audio data contained in the stream. For video, the format, width and height in pixels are defined. For audio, the format, number of channels and samplerate is defined. For both audio and video, a maximum frame size is also defined. The stream header also defines a timestamp that serves as the base time for the stream.

The stream header is immediately followed by a sequence of audio and video “frames”. Each data frame begins with a bsdav_frame_header written as a string of BSDAV_FRMHDR_SIZE hexadecimal characters. This data consists of a timestamp, whether the frame contains audio or video data, the audio or video frame number, and the size of the data.

SEE ALSO
bsdavdemux(1) bsdavrec(1) bsdavplay(1)