

you can lower the resolution with -vf scale=1280:720.if the output is not enough then use 2/3 of the original video bitrate with -b:v and keep lowering until you reach a desired size.

I'd recommend that you first let ffmpeg compress it automatically without any arguments ffmpeg -i input.ext output.mp4 not all videos will look good with a video bitrate of 700kb it depends on the resolution, the original codec used and whether there's a lot of movement / particles.for audio it's better to specify the bitrate rather than the codec, 96Kb is good enough -b:a 96k.in the time of writing this (jan 2023) you don't need to specify h264 as the video codec in ffmpeg when the output is mp4 since that's the default codec.
