How about something like this at the bottom of function getImageMetadata just before the return statement
`//create meta filename
$metafilename = substr($filename, 0, strripos($filename, '.')).".meta";
//Check if meta file exists
if(file_exists($metafilename))
{
$file_handle = fopen($metafilename, "r");
while (!feof($file_handle) ) {
$line_of_text = fgets($file_handle);
$parts = explode('=', $line_of_text,2);
$result[$parts[0]]=$parts[1]
}
fclose($file_handle);
}`
And the meta file would be name for example movie.meta for movie.flv. The contents would look something like this:
title=This is a title
desc=This is a description
Haven't had a chance to check this code.