How to Export to Mp4 in After Effects
StyleFrame Team8 min read
To export an MP4 from After Effects, add your composition to the Render Queue (Ctrl/Cmd+M), set the Output Module format to H.264, choose an output location, and click Render. If you want to keep working while the file renders, send the comp to Adobe Media Encoder with Composition > Add to Adobe Media Encoder Queue and pick H.264 as the format. Either route produces an .mp4 file, which is a container holding H.264 video and audio.
Which export method should you use?
After Effects gives you two ways to get an MP4, and the right one depends on how much control you need and whether you want your machine free while it renders.
Older versions of After Effects had no H.264 option in the Render Queue, so a lot of tutorials still tell you MP4 export is impossible there. Current versions include H.264 in the Output Module, so you can render an MP4 without leaving the app. Check that your version lists it if you're on an older install.
Method 1: Export an MP4 with the Render Queue
Step 1: Set your work area
Move the playhead to where the export should begin and press B. Move to the last frame you want and press N. Everything outside those points is ignored. This saves render time and stops you from exporting dead frames after the animation ends. Many artists leave a few frames of handle at the tail for clean looping or editorial trims.
Step 2: Add the comp to the Render Queue
Select the composition and choose Composition > Add to Render Queue, or press Ctrl+M (Windows) or Cmd+M (macOS). The Render Queue panel opens with your comp listed.
Step 3: Check Render Settings
Click the blue text next to Render Settings. Best Settings is the right choice for final output. For a rough review file, drop the resolution to Half or Quarter to speed things up. Just don't send that version as the final.
Step 4: Configure the Output Module
Click the blue text next to Output Module and set the following:
- Set Format to H.264.
- Under Video Output, keep channels on RGB. H.264 does not carry alpha.
- Click Format Options to set the bitrate and encoding behavior.
- Leave Audio Output on Auto, or switch it off if the comp has no sound.
In Format Options, VBR (variable bitrate) is the usual pick, since it spends bits where the image needs them. If hardware encoding is available on your machine, enable it for faster renders. Software encoding is slower but can be a useful fallback if you see odd results from a GPU encoder.
Step 5: Choose where to save
Click Output To (it reads "Not yet specified" until you set it), name the file, pick a folder, and save. Make sure the extension is .mp4.
Step 6: Render
Click Render. When the progress bar finishes, open the file in a player you trust and scrub through it before sending it anywhere.
Method 2: Export an MP4 with Adobe Media Encoder
- Select your comp and choose Composition > Add to Adobe Media Encoder Queue. The shortcut is Ctrl+Alt+M on Windows or Cmd+Option+M on macOS. Media Encoder launches if it isn't already open.
- In the queue, set Format to H.264. Don't choose "MPEG-4". That is a different codec and not what you want for a standard .mp4.
- Pick a preset. Match Source variants are a solid default for review files. Platform-specific presets can save time for uploads.
- Set your output filename and location.
- Press the green Play button to start the queue.
The main advantage is that rendering happens in a separate process, so you can keep animating in After Effects. Media Encoder is also better when you need several versions of the same comp, such as a 16:9 master, a vertical cut, and a low-res proxy.
Settings that actually affect MP4 quality
Bitrate
Bitrate is the biggest lever you have. Higher bitrates keep more detail but make bigger files. As rough starting points, many editors use around 15 to 20 Mbps for 1080p and 30 to 40 Mbps for 4K. Treat those as a baseline, not a rule. Content with fine grain, fast camera moves, particles, or lots of small text needs more bitrate than flat motion graphics. If you see banding in gradients or blocky artifacts in dark areas, raise the bitrate before changing anything else.
Resolution and frame rate
Match the comp settings to your delivery spec. Rendering at a different resolution from the comp forces scaling in the output module, which can soften the image. Frame rate should also match the comp unless a platform requires a specific rate.
Audio
If your comp contains audio, make sure Audio Output is enabled and the sample rate matches your delivery spec. If you're using the comp purely as a silent visual, turning audio off keeps the file clean.
Color
If your project uses a wide gamut or HDR, check that your color management is set up for the target display before you render. Otherwise colors can shift between After Effects and the exported file. Always compare the MP4 against your comp on the same display.
Save your settings as a template
If you export MP4s often, click the dropdown next to Output Module and choose Make Template. Save a version with your preferred bitrate and audio settings, and do the same for Render Settings if you have a standard setup. You can then apply the same configuration to any comp in two clicks.
Troubleshooting common MP4 export problems
H.264 isn't in the Output Module list. You may be on a version that predates that option. Update After Effects, or use the Media Encoder method.
The Media Encoder option is greyed out or does nothing. Confirm Media Encoder is installed and that its version is compatible with your After Effects release.
The file is huge. Lower the target bitrate, or switch from a high-bitrate preset to a standard one. Also check that you set the work area, because rendering the entire timeline is an easy mistake.
The file looks soft or blocky. Verify Render Settings are on Best, the resolution matches the comp, and the bitrate suits the content.
Playback is choppy on a phone or older laptop. Very high bitrates and high frame rates can stress weaker decoders. Export a lower-bitrate version for review and keep the high-quality file for the archive.
Transparent background turns black. MP4 with H.264 doesn't support alpha. If you need transparency, export a ProRes 4444 QuickTime or an image sequence with alpha instead.
When MP4 is the wrong export
MP4 is a delivery format. It compresses heavily and it's lossy, so every re-encode costs quality. If the file is going to another editor, a colorist, or back into a comp, render a higher-quality intermediate first. Common choices are ProRes or an image sequence. Then encode the MP4 from that master once, at the very end.
A reliable workflow looks like this:
- Render a high-quality master (ProRes or image sequence) from After Effects.
- Review and approve the master.
- Encode MP4s from the master for web, social, or client review.
That way you never stack compression on compression, and you can regenerate MP4s at any size or bitrate without re-rendering the full comp.
Where Styleframe fits in an MP4 export pipeline
If you generate source material with AI, the same rule applies: keep it uncompressed as long as possible and compress once at the end. If you use a tool such as , bring its output into After Effects, composite it with your other layers, apply grading and type, and then follow the steps above to render your final MP4. The compositing stage stays in your existing tools, and the MP4 is simply the last encode.
Quick checklist before you hit Render
- Work area set with B and N
- Render Settings on Best (or deliberately lower for a draft)
- Output Module format set to H.264, with a bitrate suited to the content
- Audio on or off, as intended
- Filename ends in .mp4 and the save location is correct
- A master file (ProRes or image sequence) archived if the project may be revised
FAQ
Can After Effects export MP4 directly? Yes, in current versions the Render Queue includes H.264 in the Output Module. Older versions required Media Encoder.
Is H.264 the same as MP4? Not exactly. MP4 is the container, and H.264 is the codec inside it. Choosing H.264 in After Effects or Media Encoder produces an .mp4 file.
What bitrate should I use for 4K? Many artists start around 30 to 40 Mbps for 4K and adjust based on how much detail and motion the footage has.
Can I export an MP4 with a transparent background? No. H.264 doesn't store alpha. Use ProRes 4444 or an image sequence with an alpha channel.
Should I use the Render Queue or Media Encoder? Use the Render Queue for fast single exports. Use Media Encoder when you want to keep working, queue multiple outputs, or use its presets.