In Flutter, How to use data in FFMPEG commands (input & output). Like:
ffmpeg -i 1.mp3 -i 2.mp3 -i 3.mp3 -i 4.mp3 -filter_complex "[0:a][1:a][2:a][3:a]amerge=inputs=4[aout]" -map "[aout]" output.mp3
2 Question regarding this command:
- What is the path to bring the '1.mp3', '2.mp3'... to the FFMPEG.
- Where is the 'output.mp3' goes to? eventually?
Didn't find any solution, let's speak locally and after that remotely (API/SERVER).
Your
ffmpegcommand in your question assumes1.mp3and2.mp3are in the current working directory thatffmpegis being executed in.For example, in Linux if the files are in
/home/aix/music, then you would have to navigate to/home/aix/musicin your terminal (such as by runningcd /home/aix/music) before running theffmpegcommand shown in your question.Or, provide the full path to the files and the current directory will not matter:
output.mp3goes wherever you tell it to. Because no path was provided theffmpegcommand in your question it will outputoutput.mp3into the current directory.Or, provide the full path to output
output.mp3in the desired directory: