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

The workflow stops at applying prerender actions using @nexrender/action-image #1037

Open
drumsta opened this issue Jan 15, 2025 · 0 comments
Labels

Comments

@drumsta
Copy link

drumsta commented Jan 15, 2025

Describe the bug
I run CLI using the .bat file:

SET NEXRENDER_ENABLE_AELOG_PROJECT_FOLDER=true

.\nexrender-cli-win64.exe --file "E:\projects\xxx\job.json" --workpath "E:\tmp" --binary "C:\Program Files\Adobe\Adobe After Effects 2025\Support Files\aerender.exe" --skip-cleanup --debug

The job.json looks like below:

{
    "template": {
        "src": "file:///E:/Projects/xxx/xxx.aep",
        "composition": "main"
    },
    "assets": [
        {
            "type": "image",
            "layerName": "Custom Image 1",
            "src": "file:///E:/Projects/xxx/xxx.jpg",
            "name": "Custom Image 1.jpg"
        }
    ],
    "actions":{
        "prerender": [
            {
                "module": "@nexrender/action-image",
                "input": "Custom Image 1.jpg",
                "filters": [
                    {
                        "name": "resize",
                        "args": { "width": 1618, "height": 1080 }
                    }
                ],
                "output": "Custom Image 1.jpg"
            }
        ],
        "postrender": [
            {
                "module": "@nexrender/action-copy",
                "input": "result.mp4",
                "output": "E:/Projects/xxx/xxx.mp4"
            }
        ]
    }
}

The output is provided below:

PS E:\nexrender> .\run.bat

E:\nexrender>SET NEXRENDER_ENABLE_AELOG_PROJECT_FOLDER=true

E:\nexrender>.\nexrender-cli-win64.exe --file "E:\projects\xxx\job.json" --workpath "E:\tmp" --binary "C:\Program Files\Adobe\Adobe After Effects 2025\Support Files\aerender.exe" --skip-cleanup --debug
> starting nexrender-cli
checking After Effects command line renderer patch...
command line patch already is in place
[RkaI23hRQTzeGf_TjJ4R0] setting up job...
[RkaI23hRQTzeGf_TjJ4R0] working directory is: E:\tmp\RkaI23hRQTzeGf_TjJ4R0
[RkaI23hRQTzeGf_TjJ4R0] applying predownload actions...
[RkaI23hRQTzeGf_TjJ4R0] downloading assets...
[RkaI23hRQTzeGf_TjJ4R0] > Downloading asset file:///E:/Projects/xxx/xxx.aep...
[RkaI23hRQTzeGf_TjJ4R0] > Downloading asset file:///E:/Projects/xxx/xxx.jpg...
[RkaI23hRQTzeGf_TjJ4R0] applying postdownload actions...
[RkaI23hRQTzeGf_TjJ4R0] applying prerender actions...
PS E:\nexrender>

The workflow stops at applying prerender actions without any error or informational message. I expect image resizing happened.

By inspecting temp folder I can see two files are copied correctly, xxx.aep and xxx.jpg.

If I would remove prerender section, then everything executes fine and the final video file is generated and copied according to the postrender section.

It could be that I use @nexrender/action-image in an incorrect or non-intended way. I just tried my best guess looking at the @nexrender/action-image code.

Information about environment

  • Which version of nexrender are you using? - 1.60.9
  • What kind of the setup do you have? (server+worker or cli) - Just CLI
  • Are you using pre-built binaries or globally installed npm packages? - CLI has been downloaded from Releases section on GitHub
  • Which kind (and version) of operating system you are running it in? - Windows 11 Enterprise
  • Any additional information that might be helpful

Expected behavior

Screenshots
If applicable, add screenshots to help explain your problem.

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

No branches or pull requests

1 participant