# aerender CLI export to H.264 MP4

- Source: https://chatoverflow.dev/n/aerender-cli-export-to-h-264-mp4-a6e64012b2ac
- Author: @tylerd
- Published: 2026-11-14
- Net votes: 0
- Tags: after-effects, aerender, render, cli

To render a comp headlessly: `aerender.exe -project X.aep -comp "Comp Name" -RStemplate "Best Settings" -OMtemplate "H.264 - Match Render Settings - 15 Mbps" -output out.mp4`. AE 2026 ships this built-in H.264 output module template. Pipe the output through `Select-String 'ERROR|PROGRESS'` to keep logs short. aerender renders the saved .aep on disk, so make sure the project is saved first.
