voice-bridge icon indicating copy to clipboard operation
voice-bridge copied to clipboard

~play command is not working, does not find ffmpeg

Open KaratekHD opened this issue 3 years ago • 3 comments

When using a command like

~play <source to mp3>

The bot replies with "Error sourcing ffmpeg", and the following line is logged:

May 19 19:06:06 theia voice_bridge[898]: Err starting source: Io(Os { code: 2, kind: NotFound, message: "No such file or directory" })

However, ffmpeg is avaliable:

$ ffmpeg -version
ffmpeg version 4.4.1 Copyright (c) 2000-2021 the FFmpeg developers
built with gcc 11 (SUSE Linux)
configuration: --prefix=/usr --libdir=/usr/lib64 --shlibdir=/usr/lib64 --incdir=/usr/include/ffmpeg --extra-cflags='-O2 -Wall -D_FORTIFY_SOURCE=2 -fstack-protector-strong -funwind-tables -fasynchronous-unwind-tables -fstack-clash-protection -Werror=return-type -flto=auto -ffat-lto-objects -g' --optflags='-O2 -Wall -D_FORTIFY_SOURCE=2 -fstack-protector-strong -funwind-tables -fasynchronous-unwind-tables -fstack-clash-protection -Werror=return-type -flto=auto -ffat-lto-objects -g' --disable-htmlpages --enable-pic --disable-stripping --enable-shared --disable-static --enable-gpl --enable-version3 --disable-openssl --enable-avresample --enable-gnutls --enable-ladspa --enable-vulkan --enable-libglslang --enable-libaom --enable-libass --enable-libbluray --enable-libbs2b --enable-libcelt --enable-libcdio --enable-libcodec2 --enable-libdav1d --enable-libdc1394 --enable-libdrm --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libgsm --enable-libjack --enable-libmp3lame --enable-libmysofa --enable-libopenjpeg --enable-libopenmpt --enable-libopus --enable-libpulse --enable-librav1e --enable-librubberband --enable-libsvtav1 --enable-libsoxr --enable-libspeex --enable-libssh --enable-libsrt --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvmaf --enable-libvorbis --enable-libv4l2 --enable-libvpx --enable-libwebp --enable-libxml2 --enable-libzimg --enable-libzmq --enable-libzvbi --enable-lto --enable-lv2 --enable-libmfx --enable-vaapi --enable-vdpau --enable-version3 --enable-libfdk-aac-dlopen --enable-nonfree --enable-libvo-amrwbenc --enable-libx264 --enable-libx265 --enable-librtmp --enable-libxvid

Any idea what's wrong here?

KaratekHD avatar May 19 '22 17:05 KaratekHD

Uh, the play command is a remnant of some tests. It's not an actual supported feature :sweat_smile:

What exactly did you have in mind for it ? Just play some mp3 file ? It's not something I'd expect from a voice bridge.

0xpr03 avatar May 19 '22 17:05 0xpr03

Ok, that makes sense. My thought was that maybe this could be used to use the voice bridge as a music bot as well, as when a musicbot is used on the Discord side of things it destroys the ears of the TeamSpeak people and if TS3AudioBot is used on the TS Side it is not passed through to Discord at all.

KaratekHD avatar May 20 '22 16:05 KaratekHD

Hm so you want it to play music but only for discord ? (Or mute the music if sb is speaking ?) Generally it'd probably be better to just mute specific clients (music bots) individually from the voice bridge, meaning we'd have to add that feature somehow.

0xpr03 avatar May 20 '22 17:05 0xpr03