Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
farooqkz opened this issue Jul 24, 2024 · 4 comments
Labels
bug Something isn't working

Comments

@farooqkz
Copy link
Collaborator

  • Operating System (Linux/Mac/Windows/iOS/Android): Linux(Debian)

  • Delta Chat Version: 1.46.1 (git: v1.33.0-911-g2c356eb0-img-cropper-controls)

  • Expected behavior: The webm audio file should be shown with audio controls and without video

  • Actual behavior: The webm audio attachment is shown as video by showing a black scren

  • Steps to reproduce the problem: Simply send or receive a webm audio file

  • Screenshots:
    image

  • Logs:

@farooqkz farooqkz added the bug Something isn't working label Jul 24, 2024
@farooqkz
Copy link
Collaborator Author

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

@r10s
Copy link
Member

r10s commented Jul 24, 2024

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
Copy link
Collaborator Author

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
Copy link
Contributor

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants