The tutorial shows you how to integrate das element with your render farm.
In this example AWS Deadline with Linux is used. The concept however applies to every other render farm manager as well.
...
Watch this video tutorial to get started!
...
Table of Contents |
---|
List of useful tags
The keys get resolved during ingest/proxy generation time and will be replaced with the actual value.
You can use the post render hook to add custom values.
...
key
...
Description
...
Example value
...
custom.???
...
Custom additional values from the user that get returned from a post render hook script. (post_render.py)
...
{dependency: '611b8af0f369f3140ace450c'}
...
width
...
Pixel Width from either the source file, database entity, the transcoding preset (like thumbnail) or the overwrite from the Path Values
...
1920
...
height
...
Pixel Height from either the source file, database entity, the transcoding preset (like thumbnail) or the overwrite from the Path Values
...
1080
...
pixel_aspect
...
Pixel Aspect Ratio from either the source file, the transcoding preset (like thumbnail) or the overwrite from the Path Values
...
1
...
frame_first
...
First frame from either the source file, database entity or the overwrite from the Path Values
...
1001
...
frame_last
...
Last frame from either the source file, database entity or the overwrite from the Path Values
...
1095
...
name
...
Name of the element in the database
...
artificial_00012
...
id
...
Database ID of the element
...
82
...
media_type
...
The type of media which is either its image
, movie
or sequence
...
movie
...
path
...
File path to element
...
/some/path/artificial/artificial_00012/main_1920x1080_source/artificial_00012.mov
...
path_filmstrip
...
File path to elements filmstrip
...
/some/path/artificial/artificial_00012/filmstrip_1920x1080_srgb/artificial_00012.jpg
...
path_proxy
...
File path to elements proxy movie file
...
/some/path/artificial/artificial_00012/proxy_1920x1080_srgb/artificial_00012.mov
...
path_thumbnail
...
File path to elements thumbnail
...
/some/path/artificial/artificial_00012/thumb_960x540_srgb/artificial_00012.jpg
...
path_source
source.path
...
File path to original source
...
/source/file/path/folder/the_source_file.mov
...
source.name
...
Full file name of original source file(s)
...
foo_bar.%04.exr
...
source.basename
...
Basename file name, without extension and frame counter, of original source file(s)
...
foo_bar
...
source.extension
...
File extension of original source file(s)
...
exr
...
colorspace_source
...
Colorspace of the original source file(s)
...
Follow these steps
create shared resources folder on the server
add environment variable DASELEMENT_RESOURCES to point to that shared folder
add pre & post render hooks (needed for the job dependencies)
adjust transcoding templates
copy and paste the "executable" and "parameters" from the example files
can be found on the top of each Python files
add new
Path Values
for thewidth
andheight
Example files
The latest example files for renderfarm jobs can be found here:
https://github.com/das-element/resources
...
Python hooks
For each transcoding task, the Python hook for ‘pre_render’ (pre_render.py) and ‘post render' (post_render.py) gets the Job ID from the render farm. If the main task isn’t finished then there is nothing to render for the proxy tasks and they will probably fail.
...
Check out the example script here:
https://github.com/das-element/resources/blob/main/scripts/hooks/examples/deadline/pre_render.py
Post Render Hook
The input is the output of the process called by the custom command task.
...
Check out the example script here:
https://github.com/das-element/resources/blob/main/scripts/hooks/examples/deadline/post_render.py
Transcoding tasks
Transcoding task: main element
...
Examples for Nuke
Here are some example scripts and templates on how to use The Foundry Nuke for transcoding elements.
Check out the example script here:
https://github.com/das-element/resources/tree/main/scripts/custom/examples/nuke
Transcoding task: main element
Simple command line
Code Block |
---|
# exec: # Linux: cp # Windows: copy params: \"<source.path>\" \"<path>\" |
...
Check out the example script here:
https://github.com/das-element/resources/blob/main/scripts/custom/examples/copy_main.py
Transcoding task: thumbnail
...
Check out the example script here:
https://github.com/das-element/resources/blob/main/scripts/custom/examples/create_thumbnail.py
Transcoding task: proxy movie
...
Check out the example script here:
https://github.com/das-element/resources/blob/main/scripts/custom/examples/create_proxy.py
Transcoding task: filmstrip
...
Check out the example script here:
https://github.com/das-element/resources/blob/main/scripts/custom/examples/create_filmstrip.py
List of useful tags
The keys get resolved during ingest/proxy generation time and will be replaced with the actual value.
You can use the post render hook to add custom values.
key | Description | Example value |
---|---|---|
| Custom additional values from the user that get returned from a post render hook script. (post_render.py) |
|
| Pixel Width from either the source file, database entity, the transcoding preset (like thumbnail) or the overwrite from the Path Values |
|
| Pixel Height from either the source file, database entity, the transcoding preset (like thumbnail) or the overwrite from the Path Values |
|
| Pixel Aspect Ratio from either the source file, the transcoding preset (like thumbnail) or the overwrite from the Path Values |
|
| First frame from either the source file, database entity or the overwrite from the Path Values |
|
| Last frame from either the source file, database entity or the overwrite from the Path Values |
|
| Name of the element in the database |
|
| Database ID of the element |
|
| The type of media which is either its |
|
| File path to element |
|
| File path to elements filmstrip |
|
| File path to elements proxy movie file |
|
| File path to elements thumbnail |
|
| File path to original source |
|
| Full file name of original source file(s) |
|
| Basename file name, without extension and frame counter, of original source file(s) |
|
| File extension of original source file(s) |
|
| Colorspace of the original source file(s) |
|