Skip to content

🎥 Make videos programmatically with React

fixes

Alex Fernandez4af38afc6e7c
diff --git a/packages/example/testlambdaintegrations.mjs b/packages/example/testlambdaintegrations.mjs
index 92cb096aa9..fb4ea5d2e9 100644
--- a/packages/example/testlambdaintegrations.mjs
+++ b/packages/example/testlambdaintegrations.mjs
@@ -5,7 +5,7 @@ const functionName = execSync(`pnpm exec remotion lambda functions ls -q`)
.trim()
.split(' ')[0];
-console.log('=== PHP ===');
+/* Console.log('=== PHP ===');
execSync(`php src/render.php`, {
env: {
// eslint-disable-next-line no-undef
@@ -16,8 +16,8 @@ execSync(`php src/render.php`, {
},
cwd: '../lambda-php-example',
stdio: 'inherit',
-});
-
+}); */
+/*
console.log('=== Python ===');
execSync(`python testclient.py`, {
env: {
@@ -30,3 +30,17 @@ execSync(`python testclient.py`, {
cwd: '../lambda-python',
stdio: 'inherit',
});
+
+ */
+console.log('=== Python ===');
+execSync(`python testclient_render_still.py`, {
+ env: {
+ // eslint-disable-next-line no-undef
+ ...process.env,
+ REMOTION_APP_REGION: 'us-east-1',
+ REMOTION_APP_FUNCTION_NAME: functionName,
+ REMOTION_APP_SERVE_URL: 'testbed-v6',
+ },
+ cwd: '../lambda-python',
+ stdio: 'inherit',
+});
diff --git a/packages/lambda-python/remotion_lambda/models.py b/packages/lambda-python/remotion_lambda/models.py
index e196acd0e4..9cc84532c5 100644
--- a/packages/lambda-python/remotion_lambda/models.py
+++ b/packages/lambda-python/remotion_lambda/models.py
@@ -407,9 +407,7 @@ class RenderStillParams:
Dict: A dictionary containing all the serialized parameters of the object.
"""
parameters = {
- 'region': self.region,
- 'functionName': self.function_name,
- 'serveUrl': self.serve_url,
+
'composition': self.composition,
'inputProps': self.input_props or {}, # Provide a default empty dict if None
'imageFormat': self.image_format,
diff --git a/packages/lambda-python/remotion_lambda/remotionclient.py b/packages/lambda-python/remotion_lambda/remotionclient.py
index 0a926eba64..6f32c1db26 100644
--- a/packages/lambda-python/remotion_lambda/remotionclient.py
+++ b/packages/lambda-python/remotion_lambda/remotionclient.py
@@ -1,12 +1,11 @@
# pylint: disable=too-few-public-methods, missing-module-docstring, broad-exception-caught
import json
from math import ceil
-import boto3
from .models import (RenderParams, RenderProgress,
RenderResponse, RenderProgressParams,
RenderStillParams)
-
from typing import Union, Literal
+import boto3
class RemotionClient: