H.264 profiles are feature sets; higher profiles give smaller, better-looking videos but reduce device support. Pick the highest profile that still meets your compatibility requirements. For broad compatibility, baseline 3.0 is a safe floor. The ffmpeg wiki has a compatibility table for iOS baselines.