Closed (fixed)
Project:
Audio
Version:
5.x-1.x-dev
Component:
audio_getid3
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
11 Dec 2006 at 06:12 UTC
Updated:
21 Mar 2007 at 19:00 UTC
Jump to comment: Most recent file
Comments
Comment #1
drewish commenteddoes vorbis work with id3v2? if you'd like to do some research into it, we're using the getid3 library. i know that they've got ogg support but don't know how to get it to "play nice" with mp3 and ogg.
Comment #2
mfbogg vorbis has arbitrary comment fields which can be used for metadata:
http://www.xiph.org/vorbis/doc/v-comment.html
getid3 can read and write the comments so it should be straightforward..
http://getid3.org/source/module.audio.ogg.phps
http://getid3.org/source/write.vorbiscomment.phps
It should be straightforward to support ogg vorbis, flac and speex all in one patch..
Comment #3
mfbHere's a patch to support ogg files by default.
Note, vorbiscomment binary (part of the vorbis-tools package) may be required by getid3 to actually get this working.
Note, when I click to "play" the audio file in my browser (running ubuntu with flash installed), my browser crashes.
Comment #4
mfbAttempting to play an mp3 also causes my browser to crash :(
So, i'd say this code is ready for review.
Comment #5
drewish commentedmfb are you using the flash player?
Comment #6
mfbI'm having general issues with flash and XSPF players. But whatever issue that is, isn't related to this ogg vorbis feature request..
Comment #7
drewish commentedyeah totally, i was just going to comment that flash 9 is still hella unstable, that and as far as i know flash won't play ogg files.
Comment #8
drewish commentedi'm not sure i like the assignment of tagformats inside audio_write_id3tags(), it might be better to have some code in _audio_getid3_save_to_file() that selects the tagformats based on the extension... or, i wonder if getid3 is smart enough to select the formats based on the file type... need to look into that.
Comment #9
mfbFor some reason getid3 tries to write all the requested tagformats, and spits out errors if any of them don't apply.
I moved the logic into _audio_getid3_save_to_file.
Comment #10
drewish commentedmarked http://drupal.org/node/120595 as a duplicate
Comment #11
mfbWhat do you think about this patch.. too inelegant?
Comment #12
drewish commentedsorry, it'd totally fell off my radar. the thing i noticed while looking at your patch is that audio_write_id3tags() is never called with a value for the $pics parameter, meaning that the images are never written back to the file. i'll go ahead and commit this now and open a new issue for the image saving.
Comment #13
(not verified) commented