- Use H.264 video and AAC audio in an MP4 container. This is the recommended format according to Microsoft. A command would be:
ffmpeg -i input.mp4 -c:v libx264 -crf 23 -c:a aac -b:a 128k output.mp4
- Try using the WMV format instead, which has broader compatibility:
ffmpeg -i input.mp4 -c:v mpeg4 -q:v 3 -c:a wmav2 output.wmv
- Make sure hardware acceleration is enabled in FFmpeg for encoding H.264 video. This can significantly improve performance and compatibility. Add the option
-hwaccel auto
before the-c:v libx264
option. - If using H.264, try a lower CRF value like 18 for higher quality:
ffmpeg -i input.mp4 -c:v libx264 -crf 18 -c:a aac -b:a 128k output.mp4
- Double check that the input video does not contain any exotic codecs that PowerPoint can’t handle. Re-encode the audio and video streams if needed.
I’d recommend starting with #1 using AAC audio and H.264 video in an MP4. That should cover the requirements for PowerPoint on Windows. Let me know if any of those suggestions help get your videos importing properly!