OfflineSmelter
OfflineSmelter
is intended for offline processing e.g. if you need to combine few mp4 files together.
It has simplified API compared to the Smelter
class, optimized for rendering just one output file as a result.
new Smelter()
Creates a new offline smelter instance. You have to call init()
first before this object can be used.
Type definitions
Parameters
manager
Configures how the client code will connect and manage a Smelter server. Smelter SDK provides 2 implementations that you can use or extend:
LocallySpawnedInstnaceManager
(Default Configuration) - Automatically download the necessary Smelter binaries and launch the server on your local machine.ExistingInstanceManager
- Connect to a smelter server instance that is already running.
- Type:
SmelterManager
init()
Initialize the Smelter instance. This might spawn a new instance or just establish a connection, depending on the manager
used while creating Smelter instance.
After init()
you can start connecting inputs/outputs or register other elements. However, no output stream will be produced until start()
method is called.
render()
Type definitions
Register external destination that can be used as a smelter output. Visit output documentation to learn more:
registerInput()
Type definitions
Register external source that can be used as a smelter input. Visit input documentation to learn more:
registerImage()
Register an image asset. See Renderers.RegisterImage to learn more.
registerShader()
Register a shader. See Renderers.RegisterShader to learn more.