[
https://issues.apache.org/jira/browse/TIKA-5083?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18154134#comment-18154134
]
Nick Burch commented on TIKA-5083:
----------------------------------
The exceptions thing is a known issue -
[https://github.com/Gagravarr/VorbisJava/issues/52] . Aiming to do a breaking
1.0 change fairly soon, which will switch everything to things extending
{{IOException}} . Just need to get all the Tika unit tests into Tika, zap the
Tika code, then plan to release.... Soonish!
I think I'll leave the Tika call largely as-is, and put the extra validation
into the calculator, if that seems sensible?
Cost and memory size ones I'm not sure on. Do we have any kind of existing
Parse Context flags around re-calculating that I should check before running /
skipping? (Can't think of any). If not, should we add a generic "re-compute
missing audio-visual statistics" with never / if-missing / always, which others
could use? Or make it FLAC specific more like how eg the PDF ones work?
> FlacParser should use the new FlacAudioStatistics calculator if there is no
> duration set in the header
> ------------------------------------------------------------------------------------------------------
>
> Key: TIKA-5083
> URL: https://issues.apache.org/jira/browse/TIKA-5083
> Project: Tika
> Issue Type: Improvement
> Components: parser
> Affects Versions: 4.3.0
> Reporter: Nick Burch
> Priority: Minor
> Fix For: 4.3.0
>
>
> {{FlacParser}} was brought over from the VorbisJava project (along with its
> friends) last year as part of the 4.x release. One improvement that didn't
> come, as the wasn't a matching release of the {{vorbis-java-core}} library
> with it in, was the ability to calculate the duration of a Flac file if the
> header didn't include that.
> Now that there is the 0.10 release, and before theĀ {{vorbis-java-tika}}
> module is retired in favour of the code now in Tika, need to bring that
> enhancement over.
--
This message was sent by Atlassian Jira
(v10.3.26#10030026)