oogalleryimport is a command line tool to import media objects into OpenOffice 2.0 or greater. It can import any media supported by Oo's gallery, as well as mpf files, Microsoft Media Package Files used by recent versions of Microsoft Office.
OpenOffice 1.x user's should refer to the mpftools project for importing files from an mpf.