Last modified: 2010-05-15 15:38:20 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T3948, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 1948 - Support Ogg metadata in image:img_metadata
Support Ogg metadata in image:img_metadata
Product: MediaWiki
Classification: Unclassified
File management (Other open bugs)
All All
: Normal enhancement with 6 votes (vote)
: ---
Assigned To: Nobody - You can work on this!
Depends on:
  Show dependency treegraph
Reported: 2005-04-22 17:49 UTC by Ævar Arnfjörð Bjarmason
Modified: 2010-05-15 15:38 UTC (History)
1 user (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---

An Ogg tag reader using Ogg::Vorbis::Header::PurePerl; (400 bytes, text/plain)
2005-05-09 17:21 UTC, Ævar Arnfjörð Bjarmason

Description Ævar Arnfjörð Bjarmason 2005-04-22 17:49:46 UTC
As well as exif metadata for JPEG images Ogg metadata should be supported,
however implementing this won't be as easy as exif for numerous reasons:

* There's no standard libary for it, we could use File_Ogg (see but it's in beta state currently,
alternetively we could parse the raw output from ogginfo(1)
* We can't use img_type to determine that it's an Ogg file which should be
parsed, we could fall back to anything with an .ogg extension
Comment 1 Ævar Arnfjörð Bjarmason 2005-05-08 19:50:08 UTC
I tried mucking around with the Ogg::Vorbis::Header::PurePerl Perl module and it
works very well, time to make Vorbis.php that parses the output of a custom
Comment 2 Ævar Arnfjörð Bjarmason 2005-05-09 17:21:54 UTC
Created attachment 507 [details]
An Ogg tag reader using Ogg::Vorbis::Header::PurePerl;

This is an Ogg Vorbis tag reader using Ogg::Vorbis::Header::PurePerl, I think
the best way to support Ogg metadata currently is to use something like this,
the php implementations seem to be really immature.

We could just use STDIN and STDOUT to communicate with the program:

$ ./ogginf jly.ogg 
	title = Just Like You Imagined 
	artist = Nine Inch Nails 
	album = The Fragile - Left Disc 
	tracknumber = 7 
	encodedby = Ari 
	genre = Industrial 
	date = 1999 
	bitrate_upper = 0 
	framing_flag = 1 
	channels = 2 
	version = 0 
	blocksize_0 = 4096 
	blocksize_1 = 512 
	rate = 44100 
	length = 229 
	bitrate_nominal = 224963 
	bitrate_window = -1 
	bitrate_lower = 0 
	offset = 304
Comment 3 Brion Vibber 2007-08-24 14:04:13 UTC
I think this is pretty much being done in the OggHandler extension...
Comment 4 Victor Vasiliev 2008-04-20 09:53:47 UTC
OggHandler extension stores OGG metadata.

Note You need to log in before you can comment on or make changes to this bug.