Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot render an MP4 through aerender commandline #25

Closed
markymark1234 opened this issue Jan 11, 2017 · 23 comments
Closed

Cannot render an MP4 through aerender commandline #25

markymark1234 opened this issue Jan 11, 2017 · 23 comments

Comments

@markymark1234
Copy link

Cannot render an MP4 through aerender commandline, AfterEffects 2017 version
Nexrender says as output MP4, but aerender does not support it by default, I tried work arounds but they dont work. Can any one help?

@inlife
Copy link
Owner

inlife commented Jan 11, 2017

have you tried this?

https://helpx.adobe.com/after-effects/using/basics-rendering-exporting.html

OutputExt field describes which file extension will be used to save render file. 

Make sure this file ext. corresponds to the right output module template that will be used to render current project.

Note: default value is: "mp4". It's perfectly pairs with "h264" output module template, see above.

@markymark1234
Copy link
Author

markymark1234 commented Jan 11, 2017 via email

@inlife
Copy link
Owner

inlife commented Jan 11, 2017

Q: Do we need to use "output module template" for AE to get it to work?

If you want to render mp4 - then yes. aerender binary works on settings, which you set up in your After Effects application.

By default AE don't have mp4 output rendering via h264. And maybe, latest versions don't event support it. Adobe forces users to use Media Encoder tool for some reason.

In any case, you always can change rendering output any other format.

@markymark1234
Copy link
Author

markymark1234 commented Jan 11, 2017 via email

@inlife
Copy link
Owner

inlife commented Jan 11, 2017

In that case, if there are no options of creating "h264" output template in the 2017 version of After Effects, i can only suggest you to downgrade version to the one, which supports adding custom output rendering templates.

  1. only MP4 can we used to stream to html5 tag

also you can render in avi or mov for example, and then convert it to mp4 using any available convertor. For example ffmpeg (console) or Format Factory (win gui), etc

@markymark1234
Copy link
Author

markymark1234 commented Jan 11, 2017 via email

@inlife
Copy link
Owner

inlife commented Jan 11, 2017 via email

@markymark1234
Copy link
Author

markymark1234 commented Jan 11, 2017 via email

@inlife
Copy link
Owner

inlife commented Jan 11, 2017 via email

@inlife inlife closed this as completed Jan 11, 2017
@pharrowboy
Copy link

I don't know much about aeRender I'm still reading but I do know that h264 is supported on ae 2017 only with QuickTime. You have to download QuickTime to output h264. The file format is .mov but most platforms support it anyhow like YouTube and such. Could I use .mov with this program?

@inlife
Copy link
Owner

inlife commented Jan 14, 2017

Look, you can render whatever format your version of aerender (After Effects) support. You need just say nexrender to use this particular format, and magic will happen by itself. :)

@Troy-Yang
Copy link

Troy-Yang commented Jun 15, 2017

@pharrowboy @inlife I know this thread is closed but I still want to ask for some help from you guys. I am using ae2017 and also can't generate MP4 as h264 module missing. Do you know how to use h264 from QuickTime in AeRender command line? I've installed QuickTime and run the below command

let params = [
    '-project', 'E:\\Git\\demos\\aerender\\projects\\FlatLogo.aep',
    '-comp', 'LOGO_MAIN_COMP_EDIT/RENDER',
    '-continueOnMissingFootage',
    '-output', 'c:\\output\\test1.avi',
    '-OMtemplate', 'h264'
]
process.env.AE_BINARY = 'C:\\Program Files\\Adobe\\Adobe After Effects CC 2017\\Support Files\\aerender.exe';
const { execFile } = require('child_process');

Still showing module not found issue.

Also, do you know which AE version include h264 by default? AE CC 2015?

Thanks,

@inlife
Copy link
Owner

inlife commented Jun 15, 2017

Hello,

You've tried setting up custom h264 output module in AE settings right ?
https://helpx.adobe.com/after-effects/using/basics-rendering-exporting.html#output_modules_and_output_module_settings

Im gonna try to download newest version of AE and try
Its not first time someone asked about CC 2017
Gonna check myself :)

@pharrowboy
Copy link

Other than rendering with QuickTime output. 2017 edition requires adobe media encoder that you get by subscription to output mp4 h264

@inlife
Copy link
Owner

inlife commented Jun 16, 2017

Seems like Adobe doesnt like the ability to render and compress stuff directly from AE :/

@Troy-Yang
Copy link

Troy-Yang commented Jun 17, 2017

Hey guys,

I was so happy that I may figured out a new way to solve H264 not support issue in CC2015 or maybe same as CC2017 (not test):

First of all, install QuickTime, then Simply creating a custom Output Module Templete in Edit=>Perferences item, then named it as "H264" or what ever, then choose QuickTime format and select H.264 decoding, then save it. (Maybe the names are not full correct as I am using a chinese version AE)

After that, then run your command line and set "-OMtemplate" as "H264" which is the custom module name you just created, then the Output module error never happens and I can generate a small .mov video (still not sure why not mp4)!!! But it is a victory for me as it will help me to avoid generating a huge avi file and then compress it with ffmpeg.

@inlife
Copy link
Owner

inlife commented Jun 18, 2017

yeah, if its small - means that its encoded via h264
however mov container is created cuz of quicktime
in any case changing container (mov -> mp4) via ffmpeg or something similar
should take less then 1 second (its not converting video just changing container)

@Troy-Yang
Copy link

Wow, thanks Inlife for the explanation. That makes sense! I am an newbie on video process and format. Anyway, for now, I am not afraid to use CC2015 and CC2017.

@ZuzooVn
Copy link

ZuzooVn commented Aug 7, 2017

in any case changing container (mov -> mp4) via ffmpeg or something similar
should take less then 1 second (its not converting video just changing container)

How can we do this with ffmpeg? Thanks

@inlife
Copy link
Owner

inlife commented Aug 7, 2017

depends on your preferences
can someway like this:
$ ffmpeg -i movie.mov -vcodec copy -acodec copy out.mp4

@sbala69gmail
Copy link

Is it possible to render template aerender to codec. For reason we need to reduce the render time. MOV to MP4.

Is it any possible to directly render in codec.

@sbala69gmail
Copy link

Hi all,

Convert directly MP4 help of aescript and aeplugin.

Steps 1: I was installed aescript & aeplugin and after codec.
Steps 2: set OMtemplate Aftercodec
Steps 3: run output, it's directly convert MP4.

It's helped me. Is it correct way?.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

7 participants
@ZuzooVn @inlife @sbala69gmail @Troy-Yang @pharrowboy @markymark1234 and others