If you want to save a video in the MP4 format you can use After Effects and Adobe Media Encoder, follow these steps:
1. Open your composition in After Effects and select Composition > Add to Media Encoder Queue… This will start Media Encoder if it is not already open on your machine. You can also use the keyboard shortcut CTRL+ALT+M on Win or Option+CMD+M on Mac.

Get 10% off when you subscribe to our newsletter

2. In Media Encoder, select the H264 option from the dropdown menu. This will export your video in an MP4 file using an H264 codec.

3. Adjust any other settings you want, then hit the ‘Start Queue’ button to begin rendering the video in the MP4 format.

Conclusion
MP4 is used to store video, audio, closed captioning, and metadata, while H264 is used to encode and decode video files. MP4 is a popular choice for delivering video content online because it is supported by most devices and web browsers. However, it is not the most efficient codec for professional-level video editing, as it tends to produce larger file sizes than some other codecs.
In general, it is recommended to use Media Encoder to export MP4 video from After Effects, as it allows you to choose the codec and customize the settings for your final video. This will give you more control over the quality and size of the final file, and ensure that it meets the specific requirements of your project.
