Skip to main content

Create

Initializes a new FFmpeg session for media processing operations. This is the starting point for building FFmpeg workflows.

Common Properties

  • Name - The custom name of the node.
  • Color - The custom color of the node.
  • Delay Before (sec) - Waits in seconds before executing the node.
  • Delay After (sec) - Waits in seconds after executing node.
  • Continue On Error - Automation will continue regardless of any error. The default value is false.
info

If the ContinueOnError property is true, no error is caught when the project is executed, even if a Catch node is used.

Inputs

This node does not have any inputs.

Options

This node does not have any configurable options.

Output

  • ffmpeg_id - Unique identifier for the FFmpeg session. This ID must be passed to Input nodes to add media files to the session.

How It Works

The Create node initializes a new FFmpeg session by generating a unique session identifier. This session serves as a container for your media processing pipeline, allowing you to:

  1. Add multiple input files
  2. Apply filters and transformations
  3. Define output files
  4. Execute the complete processing command

The session ID output from this node is used by subsequent nodes (Input, Filter, Output, Run) to build and execute the media processing pipeline.

Workflow Pattern

A typical FFmpeg workflow starts with the Create node:

Create → Input → Filter (optional) → Output → Run

Multiple branches can stem from a single Create node if you need to process the same inputs in different ways.

Example Usage

Basic Video Conversion Flow

Create an FFmpeg session to convert a video file:

  1. Create - Initialize session (outputs ffmpeg_id)
  2. Input - Add source video file using the ffmpeg_id
  3. Output - Define output file path
  4. Run - Execute the conversion

Multi-Input Processing

Process multiple video files in a single session:

  1. Create - Initialize session
  2. Input (1st file) - Add first video using ffmpeg_id
  3. Input (2nd file) - Add second video using the same ffmpeg_id
  4. Filter - Concatenate the streams
  5. Output - Define merged output file
  6. Run - Execute the merge

Usage Notes

  • Each Create node generates a unique session ID
  • The session is automatically cleaned up after the Run node executes
  • You can create multiple independent sessions in the same flow for parallel processing
  • The session ID is stored in the message scope and can be accessed by downstream nodes
  • Sessions are lightweight - creating multiple sessions has minimal overhead

Best Practices

  1. Use One Create Per Pipeline: Each distinct media processing operation should start with its own Create node
  2. Store Session ID: The ffmpeg_id is automatically passed through the message context - ensure it flows to all related nodes
  3. Parallel Processing: Create separate sessions when processing multiple files independently for better performance
  4. Error Handling: Wrap Create and subsequent nodes in try-catch blocks to handle media processing errors gracefully

Example Scenarios

Scenario 1: Simple Format Conversion

Convert an AVI file to MP4 format.

Flow: Create → Input (video.avi) → Output (video.mp4) → Run

Scenario 2: Video with Audio Replacement

Replace audio track in a video file.

Flow:

  • Create → Input (video.mp4) → Input (new_audio.mp3) → Output (result.mp4) → Run

Scenario 3: Batch Processing

Process multiple videos independently.

Flow for each video:

  • Create → Input → Filter (resize) → Output → Run

Use a Loop node to iterate through multiple files, with each iteration creating its own session.

Common Errors

This node has no error conditions as it only generates a session identifier. However, ensure that:

  • The ffmpeg_id output is properly connected to downstream Input nodes
  • The session ID variable is not manually modified or cleared before use
  • Input - Adds media files to the session created by this node
  • Run - Executes the FFmpeg command for this session
  • Probe - Standalone node that doesn't require a Create session
  • Play - Standalone node that doesn't require a Create session