https://bugs.kde.org/show_bug.cgi?id=492644

--- Comment #1 from Schlaefer <openmail+...@siezi.com> ---
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).

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to