Summary: | Opus files with ".oga" or ".ogg" file extensions are not properly handled | ||
---|---|---|---|
Product: | [Frameworks and Libraries] frameworks-kfilemetadata | Reporter: | Schlaefer <openmail+kde> |
Component: | general | Assignee: | Pinak Ahuja <pinak.ahuja> |
Status: | REPORTED --- | ||
Severity: | normal | ||
Priority: | NOR | ||
Version: | 6.5.0 | ||
Target Milestone: | --- | ||
Platform: | Other | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | ||
Sentry Crash Report: |
Description
Schlaefer
2024-09-04 11:34:52 UTC
Sorry for the sloppy, original writeup. Here the missing context: SUMMARY kfilemetadata doesn't process the opus codec in ogg container files if the file extension isn't ".opus", but e.g. ".ogg" or ".oga". STEPS TO REPRODUCE 1. Create an opus encoded file in an ogg container (e.g. export as opus from Audacity) 2. Rename the file from "foo.opus" to "foo.ogg" 3. Try to play back the "foo.ogg" in e.g. Elisa EXPECTED RESULT Elisa should show up metadata (title, album, cover) and play back the audio. OBSERVED RESULT Elisa doesn't show any metadata and doesn't allow to start playback. ADDITIONAL INFORMATION Analysis see above. Essentially: kfilemetadata expects ".ogg" files to only contain the "vorbis" codec, but doesn't take into account that the "opus" codec is also valid. "foo.opus" files (no renaming to "foo.ogg") are handled fine (in Elisa). Interestingly ".opus" files show up as "audio/ogg" too, at least with "file --mime-type foo.opus". From what I see Elisa uses "QMimeDatabase" for ".opus" files, which must report something different(?), but this is above my paygrade now (only reading code, no clue about C++ and/or Qt). |