The audiotools.dvda module contains a set of classes for accessing DVD-Audio data.
A DVDA object represents the entire disc. audio_ts_path is the path to the disc’s mounted AUDIO_TS directory, such as /media/cdrom/AUDIO_TS. cdrom_device, if given, is the path to the device the disc is mounted from, such as /dev/cdrom.
If the disc is encrypted and cdrom_device is given, decryption will be performed automatically.
May raise IOError if some error occurs opening the disc.
The number of title sets on the disc, typically 1.
A Titleset object represents a title set on a disc. dvda is a DVDA object and titleset_number is the title set number.
My raise IndexError if the title set is not found on the disc.
The title set’s number.
The number of titles in the title set.
A Title object represents a title in a title set. titleset is a Titleset object and title_number is the title number.
May raise IndexError if the title is not found in the title set.
The title’s number.
The number of tracks in the title.
The length of the title in PTS ticks. There are 90000 PTS ticks per second.
A Track object represents a track in a title. title is a Title object and track_number is the track number.
May raise ValueError if the track is not found in the title.
The track’s number.
The starting point of the track in the title, in PTS ticks.
The length of the track in PTS ticks. There are 90000 PTS ticks per second.
The track’s first sector in the stream of .AOB files. Each sector is exactly 2048 bytes long.
The track’s last sector in the stream of .AOB files.
Returns a TrackReader for reading this track’s data. May raise IOError if some error occurs opening the reader.
TrackReader is a audiotools.PCMReader compatible object for extracting the audio data from a given track. track is a Track object.
May raise IOError if some error occurs opening the reader.
The track’s sample rate, in Hz.
The track’s bits-per-sample, either 24 or 16.
The track’s channel count, often 2 or 6.
The track’s channel mask as a 32-bit value.
The track’s total number of PCM frames.
The track’s codec as a string.
Attempts to read the given number of PCM frames from the track as a audiotools.pcm.FrameList object. May return less than the requested number of PCM frames at the end of the disc.
Attempting to read from a closed stream will raise ValueError.
Closes the stream for further reading.