krille-chan / fluffychat

The cutest instant messenger in the [matrix]
https://fluffychat.im/
GNU Affero General Public License v3.0
1.11k stars 195 forks source link

Voice messages do not work with matrix bridges #964

Open nitanmarcel opened 6 months ago

nitanmarcel commented 6 months ago

Bug Description

When I send a voice message from FluffyChat to my bridged Whatsapp or Telegram account the voice messages are not sent .

This only happens from FluffyChat, other clients work fine.

Steps to Reproduce

1: Setup a matrix bridge 2: Sent a voice message from FluffyChat to a bridge chat

Expected Behavior

Voice messages should be sent over

App Version

1.19.0

Additional Platform Information

OnePlus 6T

Additional Context

No response

Twipeep commented 5 months ago

Hello! I get the same error when sending vocal messages, ffmpeg can’t overwrite a temporary file.

Here is the log: WRN File '/tmp/mautrix_ffmpeg_1992569585/input.m4a' already exists. Overwrite? [y/N] Not overwriting - exiting

I asked tulir, creator of mautrix bridges, about it, here is his answer:

tulir fluffychat doesn't send voice messages correctly actually that error shouldn't happen if fluffy just sent normal audio files, which makes me think fluffy is actively violating the spec rather than just sending audio files

I think there is a link with issue #926

For me it has worked normally for a long time, but since about a month it does not anymore and it’s very anoying. I tried rolling back to previous versions of Fluffychat but it didn’t fixed anything.

You can ask if you need anymore information or log.

kempertom commented 5 months ago

I have the same Problem. Is there a workaround? bridged speech notes work with Element and Schildi Chat, but i prefer Fluffy Chat

djagoo commented 2 months ago

I can confirm, it's because fluffy chat uses video/mp4 as mimetype instead of audio/ogg. mautrix-whatsapp returns "⚠ Your message was not bridged: unsupported media type "video/mp4" in audio message"

So solving #926 would be the solution to this problem too.