I am running the below command, to reduce the size of a mp4 video
ffmpeg -i input.mp4 -acodec mp2 output.mp4
After the output is created, I run the command again on the output and so on, because the reduction size is only around 0.1 Mb with each command execution, so I need to reduce around 2-3 Mb, that"s why I need to run the command iteratively.
I want to write a bash script to do this automatically, instead of I keep running the command again and again. And if there is an option to stop running the command, if the files size reached the size I want ?