Why doesn't file identify Ogg containers?

Asked by Adam Buchbinder on 2008-12-04

file(1) doesn't recognize Ogg Vorbis files, but there is information in the magic database about them (grep Ogg /usr/share/file/magic).

$ file /usr/share/hwtest/data/audio_playback.ogg
/usr/share/hwtest/data/audio_playback.ogg: data

$ ogginfo /usr/share/hwtest/data/audio_playback.ogg
Processing file "/usr/share/hwtest/data/audio_playback.ogg"...

New logical stream (#1, serial: 6be80e87): type vorbis
Vorbis headers parsed for stream 1, information follows...
Version: 0
Vendor: Xiph.Org libVorbis I 20070622 (1.2.0)
Channels: 1
Rate: 44100

Nominal bitrate: 110.000000 kb/s
Upper bitrate not set
Lower bitrate not set
Vorbis stream 1:
 Total data length: 8487 bytes
 Playback length: 0m:00.766s
 Average bitrate: 88.607173 kb/s
Logical stream 1 ended

Am I doing something wrong, or is this a bug?

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu file Edit question
Assignee:
No assignee Edit question
Solved by:
Florian Diesch
Solved:
2008-12-04
Last query:
2008-12-04
Last reply:
2008-12-04
Best Florian Diesch (diesch) said : #1

Ah, thank you. I should have looked there first.

Thanks Florian Diesch, that solved my question.