A method for embedding metadata into a media file (100) comprises
providing (204) a metadata schema file (204) and a metadata instance file
(206). Providing a media file having a binary capable user field. Then
compressing (208) the metadata schema by a first compression method; and
assembling (210) the compressed metadata schema fragments. Also,
compressing (212) the metadata instance file and assembling (210) the
compressed metadata instance fragments. Setting a media file header (214)
or footer to indicate binary data payload. The method further comprises
appending (216) a data start label to the assembled metadata schema and
the assembled metadata instance and inserting (218) the assembled
metadata schema and the metadata instance into the binary capable user
field of the media file.