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
ffmpeg
command in your question assumes1.mp3
and2.mp3
are in the current working directory thatffmpeg
is being executed in.For example, in Linux if the files are in
/home/aix/music
, then you would have to navigate to/home/aix/music
in your terminal (such as by runningcd /home/aix/music
) before running theffmpeg
command shown in your question.Or, provide the full path to the files and the current directory will not matter:
output.mp3
goes wherever you tell it to. Because no path was provided theffmpeg
command in your question it will outputoutput.mp3
into the current directory.Or, provide the full path to output
output.mp3
in the desired directory: