deltachat / deltachat-desktop

Email-based instant messaging for Desktop.
GNU General Public License v3.0
912 stars 167 forks source link

Desktop misdetects a WebM audio file as a video file and shows it accordingly #4047

Open farooqkz opened 1 month ago

farooqkz commented 1 month ago
farooqkz commented 1 month ago

Also in Gallery, it gets classified as Video not Audio.

r10s commented 1 month ago

webm is a container format and surely can be audio-only, maybe even images, stickers (although there is webp) or whatnot

however, core does not inspect file contents - that would be too much effort for all these formats nowadays - but mainly relies on extension (maybe mime types) - and does a best guess, based on real-world usage.

in case of .webm, this is video. where do the audio-only files come from? maybe they have another extension? if that is a at-scale real-world problem, we can think over :)

farooqkz commented 1 month ago

The thing is that WebM has two mime types according to Wikipedia: audio/webm and video/webm. I really don't know if there is real world usage for Audio webm or not. I don't generally use this format so I don't know. But I happen to have a webm audio file downloaded from invidious.

meganoahj commented 2 days ago

if you rename your webm audios to .opus it works correctly.