You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tika.apache.org by "Ralf Schmitt (JIRA)" <ji...@apache.org> on 2013/09/02 12:46:53 UTC

[jira] [Commented] (TIKA-991) Mp3Parser cannot extract the duration of an audio file

    [ https://issues.apache.org/jira/browse/TIKA-991?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13756008#comment-13756008 ] 

Ralf Schmitt commented on TIKA-991:
-----------------------------------

I think the "endloss loop fix" would justify an 1.4.1 release. I've just ran into that with tika 1.4.
                
> Mp3Parser cannot extract the duration of an audio file
> ------------------------------------------------------
>
>                 Key: TIKA-991
>                 URL: https://issues.apache.org/jira/browse/TIKA-991
>             Project: Tika
>          Issue Type: Improvement
>          Components: parser
>    Affects Versions: 1.2
>            Reporter: Oliver Heger
>            Assignee: Chris A. Mattmann
>              Labels: patch
>             Fix For: 1.5
>
>         Attachments: tika-991_2.patch, tika-991_3.patch
>
>
> The duration of an MP3 file is an important information. Currently, {{Mp3Parser}} is not able to extract this data from a file.
> Unfortunately, it is not easy to implement this functionality with the current design of the {{Mp3Parser}} class. In order to obtain the duration, all audio frames have to be read, and their durations have to be summed up. Currently, only the beginning (the ID3v2 tags) and the end (lyrics and ID3v1) are evaluated. Processing the whole file would have additional benefits, e.g. MP3s with variable bit rates could be detected.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira