To keep the size of the output file under certain value, we use -fs option (abbreviation of file size), expected value is in bytes. For example, to specify the maximum output file size of 10 megabytes we can use the command
ffmpeg -i input.avi -fs 10MB output.mp4