Parser — kaa.metadata v0.7.4 documentation

### Navigation

- index
- modules |
- previous |
- kaa.metadata v0.7.4 documentation »

# Parser

## Current Parser

The following parser are available right now. Most parsers have no docstring, so the documentation is very bad. Feel free to send in a patch.

### Audio

class `metadata.audio.ac3.` `Parser`(file)

class `metadata.audio.adts.` `Parser`(file)

class `metadata.audio.mp3.` `Parser`(file, tagVersion=48)

class `metadata.audio.flac.` `Parser`(file)

class `metadata.audio.m4a.` `Parser`(file)

class `metadata.audio.ogg.` `Parser`(file)

class `metadata.audio.pcm.` `Parser`(file)

class `metadata.audio.webradio.` `Parser`(url)

class `metadata.video.asf.` `AsfAudio`
  ASF audio parser for wma files.

### Image

class `metadata.image.bmp.` `Parser`(file)

class `metadata.image.gif.` `Parser`(file)

class `metadata.image.jpg.` `Parser`(file)
  JPEG parser supporting EXIf and IPTC tables. The important information is mapped to match the kaa.metadata key naming, the complete table can be accessed with self.tables.

class `metadata.image.png.` `Parser`(file)

class `metadata.image.tiff.` `Parser`(file)

### Video

class `metadata.video.asf.` `Asf`(file)
  ASF video parser. The ASF format is also used for Microsft Windows Media files like wmv.

class `metadata.video.flv.` `Parser`(file)
  Experimental parser for Flash videos. It requires certain flags to be set to report video resolutions and in most cases it does not provide that information.

class `metadata.video.mkv.` `Parser`(file)
  Matroska video and audio parser. If at least one video stream is detected it will set the type to MEDIA_AV.

class `metadata.video.mp4.` `Parser`(file)
  Parser for the MP4 container format. This format is mostly identical to Apple Quicktime and 3GP files. It maps to mp4, mov, qt and some other extensions.

class `metadata.video.mpeg.` `Parser`(file)
  Parser for various MPEG files. This includes MPEG-1 and MPEG-2 program streams, elementary streams and transport streams. The reported length differs from the length reported by most video players but the provides length here is correct. An MPEG file has no additional metadata like title, etc; only codecs, length and resolution is reported back.

class `metadata.video.ogm.` `Parser`(file)

class `metadata.video.real.` `Parser`(file)

class `metadata.video.riff.` `Parser`(file)
  AVI parser also parsing metadata like title, languages, etc.

class `metadata.video.vcd.` `Parser`(file)
  Parser for VCD files on hard-disc. It parses cue/bin file combinations.

### Disc

class `metadata.disc.audio.` `Parser`(device)
  Audio CD support. It provides a list of tracks and if on Internet connection is available it will use CDDB for the metadata.

class `metadata.disc.dvd.` `Parser`(device)
  DVD parser for DVD discs, DVD iso files and hard-disc and DVD directory structures with a VIDEO_TS folder.

class `metadata.disc.vcd.` `Parser`(device)

### Games

class `metadata.games.gameboy.` `Parser`(file)

class `metadata.games.snes.` `Parser`(file)

### Misc

class `metadata.misc.directory.` `Parser`(directory)
  Simple parser for reading a .directory file.

class `metadata.misc.xmlfile.` `Parser`(file)

## How to add a Parser

PleaseUpdate: add some doc here

### Navigation

- index
- modules |
- previous |
- kaa.metadata v0.7.4 documentation »