Answers.Body: <p>Better later than never.</p>
  
  <p>Since After Effects CC 2015.3 (13.8) you can send your comp to AME queue and render it immédiate with the recently used template.</p>
  
  <p>app.project.renderQueue.canQueueInAME --> false is there is nothing to render in AE
  app.project.renderQueue.queueInAME(false); --> false = no render, true = render immedialty in AME</p>
  
  <p>Adobe exemple : </p>
  
  <pre><code>// Scripting support for Queue in AME.
  // Requires Adobe Media Encoder 11.0.
  {
      if (app.project.renderQueue.canQueueInAME == true)
      {
          // Send queued items to AME, but do not start rendering.
          app.project.renderQueue.queueInAME(false);
      }
      else {
          alert("There are no queued item in the Render Queue.");
      }
  }
  </code></pre>
  
  <p>My exemple of use :</p>
  
  <pre><code>var resultFile = new File(outputVideoPath + outputVideoName)
  var renderQueue = app.project.renderQueue;
  var render = renderQueue.items.add(comp);
  render.outputModules[1].file = resultFile;
  
  app.project.renderQueue.queueInAME(true);
  </code></pre>
  
  <p>More details : <a href="https://forums.adobe.com/thread/2230567" rel="nofollow noreferrer">https://forums.adobe.com/thread/2230567</a></p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2017-04-05T12:56:26.367Z
Answers.LastActivityDate: 2017-04-05T12:56:26.367Z
Answers.UserDisplayName: JohnB
Body: <p>I can add my composition to Adobe Media Encoder Queue using below command</p>
  
  <pre><code>app.executeCommand(3800);
  </code></pre>
  
  <p>Now how i can render it from Adobe Media Encoder using render command like this</p>
  
  <pre><code>aerender -project /path/to/project/  -comp "Composition"  -v "ERRORS_AND_PROGRESS" -output output.mp4'
  </code></pre>
  
  <p>Thanks</p>
  
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2015-02-04T06:54:54.597Z
Comments.Text: It's a little unclear what you're trying to do. Are you trying to start the media encoder render queue from the command line?
Comments.UserDisplayName: stib
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2015-02-05T09:11:06.147Z
Comments.Text: Thanks. Exactly. I want to add my composition to Adobe media encoder render queue and then render it with aerender, all using after effects script
Comments.UserDisplayName: Lal
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2015-02-06T05:16:22.657Z
Comments.Text: Why not just use the second command? If you want to render something you don't need media encoder, you can just use aerender.
Comments.UserDisplayName: stib
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2015-02-09T12:09:00.037Z
Comments.Text: Thanks. Stib
  actually i want output in MP4 format and AE latest version doesn't support MP4 as an output format so thats why i want to use Media Encoder
Comments.UserDisplayName: Lal
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2015-11-22T16:14:59.307Z
Comments.Text: try to install x264 via "mega-codec pack" and choose avi->x264
Comments.UserDisplayName: dazzafact
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2015-12-11T11:02:38.160Z
Comments.Text: Did you ever find a solution on this? I'm having the same issue, and looking for a way to automate rendering of mp4 videos
Comments.UserDisplayName: Jonas Jongejan
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2015-12-11T12:15:29.143Z
Comments.Text: No. I rendered video using `Adobe After Effects` default renderer and add an extra step using `FFMPEG` to convert to Mp4
Comments.UserDisplayName: Lal
Tags: <video><after-effects><adobe-media-encoder>
Title: How to render MP4 using After Effects Script with Adobe Media Encoder
UserDisplayName: Lal
ThreadText: # How to render MP4 using After Effects Script with Adobe Media Encoder
  
  (Asked by: username_0 on 2015-02-02)
  
  I can add my composition to Adobe Media Encoder Queue using below command
  
  ```
  app.executeCommand(3800);
  
  ```
  
  Now how i can render it from Adobe Media Encoder using render command like this
  
  ```
  aerender -project /path/to/project/  -comp "Composition"  -v "ERRORS_AND_PROGRESS" -output output.mp4'
  
  ```
  
  Thanks
  
  **Tags:** video, after-effects, adobe-media-encoder
  
  > **Comments:**
  > **username_1**: It's a little unclear what you're trying to do. Are you trying to start the media encoder render queue from the command line?  
  > **username_0**: Thanks. Exactly. I want to add my composition to Adobe media encoder render queue and then render it with aerender, all using after effects script  
  > **username_1**: Why not just use the second command? If you want to render something you don't need media encoder, you can just use aerender.  
  > **username_0**: Thanks. username_1 actually i want output in MP4 format and AE latest version doesn't support MP4 as an output format so thats why i want to use Media Encoder  
  > **username_2**: try to install x264 via "mega-codec pack" and choose avi->x264  
  > **username_3**: Did you ever find a solution on this? I'm having the same issue, and looking for a way to automate rendering of mp4 videos  
  > **username_0**: No. I rendered video using `Adobe After Effects` default renderer and add an extra step using `FFMPEG` to convert to Mp4  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_4 on 2017-04-05. Score: 1
  
  Better later than never.
  
  Since After Effects CC 2015.3 (13.8) you can send your comp to AME queue and render it immédiate with the recently used template.
  
  app.project.renderQueue.canQueueInAME --> false is there is nothing to render in AE
  app.project.renderQueue.queueInAME(false); --> false = no render, true = render immedialty in AME
  
  Adobe exemple :
  
  ```
  // Scripting support for Queue in AME.
  // Requires Adobe Media Encoder 11.0.
  {
      if (app.project.renderQueue.canQueueInAME == true)
      {
          // Send queued items to AME, but do not start rendering.
          app.project.renderQueue.queueInAME(false);
      }
      else {
          alert("There are no queued item in the Render Queue.");
      }
  }
  
  ```
  
  My exemple of use :
  
  ```
  var resultFile = new File(outputVideoPath + outputVideoName)
  var renderQueue = app.project.renderQueue;
  var render = renderQueue.items.add(comp);
  render.outputModules[1].file = resultFile;
  
  app.project.renderQueue.queueInAME(true);
  
  ```
  
  More details : <https://forums.adobe.com/thread/2230567>
  
  
  ---
  
  