You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The current version of whatsapp-web.js (1.23.1-alpha.5 from webpack-exodus branch & 1.24.0) uses fluent-ffmpeg version 2.1.2, which has regex compatibility issues with ffmpeg versions 7 and above. This affects media file transformations (conversions from videos or GIFs to stickers) that rely on ffmpeg.
The error message received is:
Error: Output format <format> is not available
Expected behavior
An animated sticker is being sent when the user send the message '#sticker' with a GIF or video.
Send a GIF and include the #sticker message body or answer to a message containing a GIF or a video. You'll find the issue described above.
Relevant Code
This issue is due to a regex compatibility problem between fluent-ffmpeg 2.1.2 and the latest versions of ffmpeg. The problem has been fixed in fluent-ffmpeg version 2.1.3, see this pull request. The changes introduced in this PR are minor and are unlikely to break things in the whatsapp-web.js project.
Browser Type
Google Chrome
WhatsApp Account Type
Standard
Does your WhatsApp account have multidevice enabled?
Yes, I am using Multi Device
Environment
OS: Windows 11 24H2
PhoneOS: Android 12
whatsapp-web.js version: 1.23.1-alpha.5
WhatsApp Web version: 2.3000.1014583617
Node.js Version: v20.12.2
Additional context
No response
The text was updated successfully, but these errors were encountered:
Is there an existing issue for this?
Describe the bug
The current version of
whatsapp-web.js
(1.23.1-alpha.5 fromwebpack-exodus
branch & 1.24.0) usesfluent-ffmpeg
version 2.1.2, which has regex compatibility issues withffmpeg
versions 7 and above. This affects media file transformations (conversions from videos or GIFs to stickers) that rely onffmpeg
.The error message received is:
Error: Output format <format> is not available
Expected behavior
An animated sticker is being sent when the user send the message '#sticker' with a GIF or video.
Steps to Reproduce the Bug or Issue
I have created a sample repository that demonstrates the issue: https://github.com/totallynotdavid/ffmpeg-issue-whatsapp-web.js
npm run start
#sticker
message body or answer to a message containing a GIF or a video. You'll find the issue described above.Relevant Code
This issue is due to a regex compatibility problem between
fluent-ffmpeg
2.1.2 and the latest versions offfmpeg
. The problem has been fixed influent-ffmpeg
version 2.1.3, see this pull request. The changes introduced in this PR are minor and are unlikely to break things in thewhatsapp-web.js
project.Browser Type
Google Chrome
WhatsApp Account Type
Standard
Does your WhatsApp account have multidevice enabled?
Yes, I am using Multi Device
Environment
OS: Windows 11 24H2
PhoneOS: Android 12
whatsapp-web.js version: 1.23.1-alpha.5
WhatsApp Web version: 2.3000.1014583617
Node.js Version: v20.12.2
Additional context
No response
The text was updated successfully, but these errors were encountered: