danog / MadelineProto

Async PHP client API for the telegram MTProto protocol
https://docs.madelineproto.xyz
GNU Affero General Public License v3.0
2.83k stars 654 forks source link

The passed file was not generated by MadelineProto or @libtgvoipbot, please pre-convert it using @libtgvoip bot or install FFI and ffmpeg to perform realtime conversion! #1433

Closed gibbo520 closed 11 months ago

gibbo520 commented 11 months ago

Hi, i'm trying to make a voice call and pass an mp3 file . I'm using docker and i see is installed ffmpeg for real time conversion

Why i'm getting :

"The passed file was not generated by MadelineProto or @libtgvoipbot, please pre-convert it using @libtgvoip bot or install FFI and ffmpeg to perform realtime conversion!" ??

Thanks

danog commented 11 months ago

Make sure to also enable ffi in php and install libopus!

gibbo520 commented 11 months ago

i'm running in docker pulled from your repo ad edited with your instruction libopus is installed

/app # apk list | grep opus asterisk-opus-18.15.1-r2 aarch64 {asterisk} (GPL-2.0-only WITH OpenSSL-Exception) libopusenc-0.2.1-r0 aarch64 {libopusenc} (BSD-3-Clause) libopusenc-dev-0.2.1-r0 aarch64 {libopusenc} (BSD-3-Clause) libopusenc-doc-0.2.1-r0 aarch64 {libopusenc} (BSD-3-Clause) opus-1.4-r0 aarch64 {opus} (BSD-3-Clause) [installed] opus-dev-1.4-r0 aarch64 {opus} (BSD-3-Clause) opus-doc-1.4-r0 aarch64 {opus} (BSD-3-Clause) opus-tools-0.2-r1 aarch64 {opus-tools} (BSD-2-Clause) opus-tools-doc-0.2-r1 aarch64 {opus-tools} (BSD-2-Clause) opusfile-0.12-r5 aarch64 {opusfile} (BSD-3-Clause) opusfile-dev-0.12-r5 aarch64 {opusfile} (BSD-3-Clause) opusfile-doc-0.12-r5 aarch64 {opusfile} (BSD-3-Clause) opustags-1.8.0-r0 aarch64 {opustags} (BSD-3-Clause) opustags-doc-1.8.0-r0 aarch64 {opustags} (BSD-3-Clause) Thank you

gibbo520 commented 11 months ago

a simple reboot did the trick !