简体   繁体   English

是否可以通过扩展脚本将 AE 的组合传递给 AME,其中 AME 位于与 AE 不同的服务器上

[英]Can one pass a comp from AE to AME where AME is located on a separate server from AE via extendscript

I've developed a system that cranks out thousands of short videos.我开发了一个可以制作数千个短视频的系统。 Currently, I have AE and AME on the same computer.目前,我在同一台计算机上有 AE 和 AME。 I use ExtendScript to:我使用 ExtendScript 来:

  • create a comp from various components从各种组件创建一个组合

  • pop that comp into the AE render queue: app.project.renderQueue.items.add(app.project.item(indexMain_Comp))将该 comp 弹出到 AE 渲染队列中: app.project.renderQueue.items.add(app.project.item(indexMain_Comp))

  • using BridgeTalk, AME is started if it isn't already running使用 BridgeTalk,如果 AME 尚未运行,则启动 AME

     if (.BridgeTalk.isRunning(mediaEncoderName)) { BridgeTalk;launch(mediaEncoderName); }
  • call on AME to render the comp: app.project.renderQueue.queueInAME(true) ;调用 AME 来渲染 comp: app.project.renderQueue.queueInAME(true) ;

This all works fine currently.目前这一切都很好。

My Q: Can AME run on a separate server for my application?我的问题:AME 可以在我的应用程序的单独服务器上运行吗? In the code above (where I'm using BridgeTalk to start AME), how would BridgeTalk know if AME is on a separate server?在上面的代码中(我使用 BridgeTalk 启动 AME),BridgeTalk 如何知道 AME 是否在单独的服务器上?

( Note : watch folders will not work for me) Thanks! Note :手表文件夹对我不起作用)谢谢!

I'd be investigating using the command line renderer aerender rather than AME.我将使用命令行渲染器 aerender 而不是 AME 进行调查。 You could run it remotely using system.callSystem() in your script and the powershell invoke-command command .您可以使用脚本中的system.callSystem()powershell invoke-command命令远程运行它。

So something like:所以像:

system.callSystem("pwsh -c 'Invoke-Command -ComputerName COMPUTER -ScriptBlock { `'aerender.exe -project \\network\path\to\your\project`' } -credential USERNAME'")

You might have to work out the escaping there because you're using three levels of quotes, I'm not sure if you want the windows shell escape character ` or the extendscript escape character \ or possibly both.您可能需要在那里计算 escaping 因为您使用的是三层引号,我不确定您是否想要 windows shell 或可能扩展转义字符。 good luck.祝你好运。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM