Red Hat Bugzilla – Bug 165323
file -i returns wrong mimetype for mpeg1 video
Last modified: 2007-11-30 17:11:11 EST
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.10) Gecko/20050720 Fedora/1.0.6-1.1.fc3 Firefox/1.0.6
Description of problem:
I have various mpeg1 video files; on FC3 (file-4.12-1.FC3.1) the file -i command returned the video/mpeg mimetype for those files, that was correct.
On FC4 file -i returns "FFF6 0xFFF0 audio/X-HX-AAC-ADTS" which is not correct.
The problem appeared with a number of files, not only with one.
Use this video if you can not reproduce it with your data:
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. get an mpeg 1 video file, assuming "yourfile.mpg"
2. enter "file -i yourfile.mpg" in terminal and look at the output
Actual Results: mimetype information was: "FFF6 0xFFF0 audio/X-HX-AAC-ADTS"
Expected Results: mimetype information should be "video/mpeg"
The problem seems to be related to the magic.mime file that has changed from FC3
Using the magic.mime file from FC3 with the -m option on a FC4 system produces
correct output. (something like: file -i myfile.mpg -m /tmp/fc3_magic.mime)
Fixed, there was a typo in AAC files recognition.