Bug 630997 - does not read metadata from ogg files
Summary: does not read metadata from ogg files
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: mediatomb
Version: 13
Hardware: x86_64
OS: Linux
low
high
Target Milestone: ---
Assignee: Rich Mattes
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2010-09-07 15:02 UTC by fab
Modified: 2010-11-22 22:24 UTC (History)
1 user (show)

Fixed In Version: mediatomb-0.12.1-2.fc12
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2010-11-22 22:16:51 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
test files and screen captures (5.29 MB, application/x-gzip)
2010-09-07 15:02 UTC, fab
no flags Details

Description fab 2010-09-07 15:02:23 UTC
Created attachment 443532 [details]
test files and screen captures

Description of problem:

Mediatomb does not read metadata (Artist, Album) from my ogg files, thus I cannot access easily my music library: most of my files are ogg and get classified in "Unknown" albums and artists.

Version-Release number of selected component (if applicable):

mediatomb-0.12.1-1.fc13.x86_64

How reproducible:

Launch mediatomb and add a directory containing both mp3 and ogg files with valid tags.
  
Actual results:

MP3 files are correctly classified according to the album and artist, while OGG files are classified as "Unknown" album and artist (see attached screen capture)

Here is the output of mediatomb with debug enabled:
2010-09-07 16:44:44   DEBUG: [../src/storage/sql_storage.cc:494] addObject(): insert_query: INSERT INTO "mt_cds_object" ("object_type","upnp_class","dc_title","metadata","resources","flags","location","location_hash","track_number","mime_type","parent_id","id") VALUES (2,'object.item.audioItem.musicTrack','Piste_10.mp3','dc%3Atitle=Piste%2010&upnp%3Aartist=Sean%20Callery&upnp%3Aalbum=24&upnp%3Agenre=The%20name%27s%20OBrian&upnp%3AoriginalTrackNumber=10','0~protocolInfo=http-get%3A%2A%3Aaudio%2Fmpeg%3A%2A&size=2444277&bitrate=16384&duration=00%3A02%3A33&sampleFrequency=44100&nrAudioChannels=2~~',1,'F/home/fab128/musiquetoto/Piste_10.mp3',3146795412,10,'audio/mpeg',14758,14759)
[...]
-07 16:44:44   DEBUG: [../src/storage/sql_storage.cc:494] addObject(): insert_query: INSERT INTO "mt_cds_object" ("object_type","upnp_class","dc_title","resources","flags","location","location_hash","mime_type","parent_id","id") VALUES (2,'object.item.audioItem.musicTrack','08_-_In_Pursuit_Of_Kyle.ogg','0~protocolInfo=http-get%3A%2A%3Aaudio%2Fogg%3A%2A&size=3042960~~',1,'F/home/fab128/musiquetoto/08_-_In_Pursuit_Of_Kyle.ogg',1379538035,'audio/ogg',14758,14782)


Expected results:

The metadata from OGG files should be read correctly since mediatomb is compiled with taglib support, not id3lib:

$ mediatomb --compile-info

MediaTomb UPnP Server version 0.12.1 - http://mediatomb.cc/

===============================================================================
Copyright 2005-2010 Gena Batsyan, Sergey Bostandzhyan, Leonhard Wimmer.
MediaTomb is free software, covered by the GNU General Public License version 2

Compile info:
-------------
	host:			x86_64-redhat-linux-gnu
	sqlite3:		yes
	mysql:			yes
	libjs:			yes
	libmagic:		yes
	inotify:		yes
	libexif:		yes
	id3lib:			disabled
	taglib:			yes
	ffmpeg			missing
	libmp4v2:		yes
	external transcoding:	yes
	curl:			yes
	YouTube:		yes
	libextractor		disabled
	db-autocreate:		yes
	debug log:		yes
	protocol info extension:yes
	ffmpegthumbnailer:	missing
	lastfmlib:		missing
	data directory:		/usr/share/mediatomb



Additional info:

The taginfo command confirms that both attached files have valid metadata:

$ taginfo 08_-_In_Pursuit_Of_Kyle.ogg Piste_10.mp3
FILE="08_-_In_Pursuit_Of_Kyle.ogg"
ALBUM="24"
TRACK="8"
ARTIST="Sean Callery"
TITLE="In Pursuit Of Kyle"
GENRE=""
YEAR="0"
COMMENT=""
LENGTH="159"
BITRATE="160"
SAMPLERATE="44100"
CHANNELS="2"

FILE="Piste_10.mp3"
ALBUM="24"
TRACK="10"
ARTIST="Sean Callery"
TITLE="Piste 10"
GENRE="The name's OBrian"
YEAR="0"
COMMENT=""
LENGTH="153"
BITRATE="128"
SAMPLERATE="44100"
CHANNELS="2"

Comment 1 Rich Mattes 2010-09-11 20:20:44 UTC
This might be a configuration error.  Let me know if this works:

Edit /etc/mediatomb/config.xml, and in the <mimetype-contenttype> section, add the line
<treat mimetype="audio/ogg" as="ogg"/>

Comment 2 fab 2010-09-12 12:49:46 UTC
This works ! Great !

This workaround sould be applied to next release.

Thanks Rich.

Comment 3 Rich Mattes 2010-09-12 16:16:42 UTC
The configuration file is auto-generated when you first install/run Mediatomb.  The best I can do is patch the config file generator to add the missing line, but that won't have any effect on existing installations.  I submitted a patch upstream with the fix and I'll work it into the Fedora package if they accept it.

Comment 4 Fedora Update System 2010-11-12 23:26:01 UTC
mediatomb-0.12.1-2.fc13 has been submitted as an update for Fedora 13.
https://admin.fedoraproject.org/updates/mediatomb-0.12.1-2.fc13

Comment 5 Fedora Update System 2010-11-12 23:26:08 UTC
mediatomb-0.12.1-2.fc12 has been submitted as an update for Fedora 12.
https://admin.fedoraproject.org/updates/mediatomb-0.12.1-2.fc12

Comment 6 Fedora Update System 2010-11-12 23:26:15 UTC
mediatomb-0.12.1-3.fc14 has been submitted as an update for Fedora 14.
https://admin.fedoraproject.org/updates/mediatomb-0.12.1-3.fc14

Comment 7 Fedora Update System 2010-11-14 21:27:33 UTC
mediatomb-0.12.1-3.fc14 has been pushed to the Fedora 14 testing repository.  If problems still persist, please make note of it in this bug report.
 If you want to test the update, you can install it with 
 su -c 'yum --enablerepo=updates-testing update mediatomb'.  You can provide feedback for this update here: https://admin.fedoraproject.org/updates/mediatomb-0.12.1-3.fc14

Comment 8 Fedora Update System 2010-11-22 22:16:46 UTC
mediatomb-0.12.1-3.fc14 has been pushed to the Fedora 14 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 9 Fedora Update System 2010-11-22 22:18:16 UTC
mediatomb-0.12.1-2.fc13 has been pushed to the Fedora 13 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 10 Fedora Update System 2010-11-22 22:24:40 UTC
mediatomb-0.12.1-2.fc12 has been pushed to the Fedora 12 stable repository.  If problems still persist, please make note of it in this bug report.


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