Closed vincent-paing closed 6 years ago
I've been debugging and I have trace it to the error showing up on using 'amix'.
As I can see in your log you're not using this library but the WritingMinds one.
Nevertheless, Out of memory
could also indicate something else is wrong e.g. with your command or files. See for instance this issue: https://stackoverflow.com/questions/42159407/amix-filter-in-ffmpeg-fails-depending-on-the-mp3-inputs
Putting the longest track as first input works. Thanks A LOT for the link.
I'm trying to mix multiple audio into one audio sequence with each having different delay. The command looks like.
./ffmpeg -i ./drum2.wav -filter_complex "[0]adelay=651|651[s0];[0]adelay=2576|2576[s1];[0]adelay=2700|2700[s2];[s0][s1][s2]amix=3[mixout]" -map "[mixout]" -y result.mp3
It runs successfully and output correct file when I it from my PC's terminal. Implementing the same thing in an Android app throw out of memory error during filter process(Testing on Xiaomi Mi A1 with Android Oreo). Is the NDK the only way to use without memory limitation or am I missing something? The complete log in my Android: