0

So, I am trying to combine an image and an audio file and convert it to a video using ffmpeg in flutter using flutter-ffmpeg but I am getting this error when I am trying to use executewithareguments() function. enter image description here

I am getting this error -> enter image description here

I suspected that maybe I should remove the double quotes but even that is giving an error. It would be very helpful if someone tells me what I am doing wrong. Also, I was using min-gpl version of ffmpeg, I thought that was causing the problem, so I changed it to full-gpl but the error still remains. Any form of help would be great.

1 Answers1

0
val cmd = arrayOf("-i",
            inputVideoPath,
            "-i",
            inputVideo2Path,
            "-y",
            "-filter_complex",
            "[1]scale=${1200}:${800}[b];[0][b] overlay=${imageXPosition}:${imageYPosition}",
             "-pix_fmt",
            "yuv420p",
            "-c:a",
            "copy",
            "-preset",
            "ultrafast",
            outputVideoPath)
Mike
  • 4,041
  • 6
  • 20
  • 37
  • 1
    Your answer could be improved with additional supporting information. Please [edit] to add further details, such as citations or documentation, so that others can confirm that your answer is correct. You can find more information on how to write good answers [in the help center](/help/how-to-answer). – Community Mar 22 '22 at 13:23