Flutter FFmpeg - [AVFilterGraph @ 0x88f4b300] No such filter: '"scale'

1.1k Views Asked by At

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

There are 1 best solutions below

1
On
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)