I'm using a php function finfo_file to determine mimetype and it keeps reporting .mpg files as application/octet-stream instead of video/mpeg.
I'm using CentOS, and in /etc/mime.types I see:
# grep 'mpg' /etc/mime.types
audio/mpeg mpga mp2 mp3
video/mpeg mpeg mpg mpe
Updated below is sample code:
$file = '/tmp/sample.mpg';
$fi = new finfo( FILEINFO_MIME_TYPE );
echo $fi->file( $file );
outputs:
application/octet-stream