Triggering renders from Python
available from v4.0.15
To trigger a Lambda render using Python, install the remotion-lambda package using pip, by executing pip install remotion-lambda from your python project. Use the same version as the remotion version you are using from NPM, e.g. pip install remotion-lambda==4.0.15 (see newest version).
You first need to complete the Lambda setup.
Limitations
Sending large input props (>200KB) is not supported with Python at the moment.
Rendering a video
Below is a snippet showing how to initiate a render request and get its status.
render_media.pypython
render_media.pypython
Rendering an image
Below is a snippet showing how to initiate a still image render. Note that it does not require monitoring the render progress.
render_still.pypython
render_still.pypython
Breaking changes
4.0.82
- The datafield is nowinput_props.
- RenderParamshas been renamed to- RenderMediaParams.
- RenderProgresshas been renamed to- RenderMediaProgress.
- RenderResponseis now- RenderMediaResponse, and its fields have been updated:- renderIdis now- render_id, and- bucketNamehas been changed to- bucket_name.
- The following types have been added: CostsInfo,Privacy,ValidStillImageFormats,LogLevel,OpenGlRenderer,ChromiumOptions,CustomCredentialsWithoutSensitiveData,CustomCredentials,OutNameInputObject,PlayInBrowser,Download,DeleteAfter. These can be used for the fields onRenderMediaParamsandRenderStillParams.