Mix two recorded audio files with OS.execute() and ffmpeg, crazy idea ?

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By leo-pnt

I thought about an app where the user can record audio on multiple tracks, then export it as a single audio file.

I tried using android studio ide but the emulator was too slow to develop and test. So I think that maybe I can use Godot for that (and I don’t have to learn java).

The question is : can I put something like ffmpeg in the app package and execute a command ? Something like this :

OS.execute('ffmpeg -i audio1.wav -i audio2.wav -i audio3.wav -filter_complex "[0:0][1:0] amix=inputs=3:duration=longest" out.wav')
:bust_in_silhouette: Reply From: Calinou

Reading the description, I suppose you’re doing this for Android. However, even if you managed to get FFmpeg working there somehow, I don’t think you’re allowed to execute binaries like that. (It would never pass Google Play validation.)