load own taglib extensions

Bart Cerneels bart.cerneels at kde.org
Mon Jun 13 08:01:20 CEST 2011


On Mon, Jun 13, 2011 at 02:01, Mathias Panzenböck
<grosser.meister.morti at gmx.net> wrote:
> On 06/12/2011 08:20 AM, Bart Cerneels wrote:
>> On Sun, Jun 12, 2011 at 06:51, Mathias Panzenböck
>> <grosser.meister.morti at gmx.net>  wrote:
>>> Hi.
>>>
>>> I wrote my own taglib extensions for a few file formats. Is there a clean way to load them into
>>> amarok without patching taglib/taglib-extras? Would I have to change amaroks source or can I somehow
>>> install them on my system so that they get automatically dynamically loaded?
>>>
>>> After I've tested them I'll see if I can send them to the taglib-extras project. The file types with
>>> added read-only support of a few tags are: s3m, it and xm.
>>>
>>> Here is what I've done so far:
>>> https://bitbucket.org/panzi/taglib-mod
>>>
>>> Some parts of this (mainly the build system) are just copied from taglib-extras with a
>>> search+replace for a few identifiers (extras ->  mod).
>>>
>>>         -panzi
>>
>> Oh wow, nice.
>> I don't know any details about taglibs plugins, so can't help you with
>> loading. But certainly get them into upstream.
>
> There is a problem: These file types have no easy way to determine the song length. You'd need to
> dummy-interperte them to find that out. I will not write any code for that, but the Xine and
> GStreamer Phonon backends do know the length of the songs! (The GStremer backend sometimes only sees
> half the song (and does not support seeking), but that's another story.)
>
> Would it be somehow possible to use Phonon to determine the song length (if
> audioProperties()->length() == 0)? It would be ok form me if it would only be determined the moment
> the file starts playing. After all the progess bar is displayed correctly then, just not the song
> length in the playlist.
>

I guess we'll just need to handle that in phonon. If we miss some data
from taglib (in this case the play-length) we can get it from other
sources, like phonon while playing. We do similar for streams with
their metadata.


More information about the Amarok-devel mailing list