mdb.cli

mdb – a command line for inspecting Avid media databases.

mdb summary FILE container geometry, class census, HEAD mdb mobs FILE one line per mob: name, kind, rate, path mdb paths FILE every media path the database names mdb obj FILE 0x109a0 dump one object, property by property mdb class FILE WINL dump every object of one class mdb tree FILE 0x10a43 walk a mob’s tracks, sequences and clips mdb attrs FILE 0x10a43 an object’s Avid attribute tree mdb find FILE “text” which objects contain this text mdb owner FILE 0x1f40 which entry wrote the byte at this offset mdb classes FILE HEAD’s class dictionary (the metadict) mdb validate FILE integrity checks; exit 1 on any error

cmd_summary(f, args)[source]
Return type:

int

cmd_mobs(f, args)[source]
Return type:

int

cmd_paths(f, args)[source]
Return type:

int

cmd_obj(f, args)[source]
Return type:

int

cmd_class(f, args)[source]
Return type:

int

cmd_tree(f, args)[source]
Return type:

int

cmd_attrs(f, args)[source]
Return type:

int

cmd_find(f, args)[source]
Return type:

int

cmd_owner(f, args)[source]
Return type:

int

cmd_classes(f, args)[source]

The class dictionary, and which Python class each 4CC resolves to.

Four answers are possible per row, and the difference matters when a file from a newer Media Composer turns up. typed means the library has a class for that 4CC; alias means the 4CC differs from a known one only in case, which is Avid’s typo rather than a new class (the dictionary of both reference samples declares ASPI and ASpi); inherited means neither, but the file’s own dictionary named an ancestor the library does know; generic means none of those, and the object still reads – every property by OMF name – just without typed attributes.

Return type:

int

cmd_validate(f, args)[source]
Return type:

int

build_parser()[source]
Return type:

ArgumentParser

main(argv=None)[source]
Return type:

int