maybe it help - I use:
new IOSStartScreenRecordingOptions()
.withFps(24)
.withVideoScale("320:-2")
.withVideoType("h264") // require ffmpeg
.withTimeLimit(Duration.ofMinutes(10)));
and mine version is ffmpeg version 4.1.1
BTW: withTimeLimit The default value is 180 seconds (3 minutes)!