Use H.264 video with AAC audio codecs for optimal compatibility on TikTok.