Skip to main content
Participant
Aug 15, 2024 5:16 AM UTC
Answered

Media Encoder and Node.js

Hello, 

 

I want to automate submitting files to AME and encoding them with a preset...when the job is complete I want to send a REST API command to a Autodesk Shotgrid server indicating the job is complete / succeeded. 

 

I don't think I can send the REST command using ExtendScript so I have been trying to wrap the job in a node.js script and submit with a child_process.

 

I can set off the processing fine, no problem.
but I cannot get response from the event listener in ExtendScript back into node.js, the job completes inside AME, but the node.js script does not continue....the child_process never ends.

 

Is anyone doing AME -> Shotgrid another way ?

Has anyone succeeded in getting callbacks from ExtendScript back up to a parent process? 

 

Not married to this approach if there is a better approach to this.

 

 

This topic is closed to new replies. Start a new post to keep the conversation going.
Aarrr_6916Correct answer
Participant
Aug 16, 2024 10:28 PM UTC

After testing,

Adobe Media Encoder doesn't support any return callbacks to parent process.

And there isn't any way to connect AME to Autodesk Shotgrid and update a status.

 

The work around you have to use is a python that creates a temp .jsx file and submits that to AME, python can watch the output folder till the file size stops changing and continue to post an update.

 

Cheers

1 reply

Aarrr_6916AuthorCorrect answer
Participant
Aug 16, 2024 10:28 PM UTC

After testing,

Adobe Media Encoder doesn't support any return callbacks to parent process.

And there isn't any way to connect AME to Autodesk Shotgrid and update a status.

 

The work around you have to use is a python that creates a temp .jsx file and submits that to AME, python can watch the output folder till the file size stops changing and continue to post an update.

 

Cheers

Translate