FFmpeg command icon

FFmpeg command

FFmpeg command

Overview

This node executes a user-provided FFmpeg command on input data. It is useful for video and audio processing tasks such as format conversion, compression, or editing by running custom FFmpeg commands. For example, converting an input video file to another format or extracting audio from a video file.

Use Case Examples

  1. Convert an input video file to MP4 format using a custom FFmpeg command.
  2. Extract audio from a video file by specifying the appropriate FFmpeg command.

Properties

Name Meaning
Command The FFmpeg command to execute, e.g., 'ffmpeg -i /folder/input.mp4 /folder/output.mp4'

Output

JSON

  • json
    • command - The original FFmpeg command executed
    • stdout - Standard output from the FFmpeg command execution
    • stderr - Standard error output from the FFmpeg command execution
    • exitCode - Exit code of the FFmpeg command execution

Dependencies

  • Requires FFmpeg executable path, resolved via utility function, to run the command.

Troubleshooting

  • Ensure the FFmpeg command starts with 'ffmpeg' and the FFmpeg executable path is correctly resolved; otherwise, the node throws an error indicating an invalid command.
  • If the command fails, check the error message in the output to diagnose issues with the FFmpeg command syntax or file paths.
  • Use 'Continue On Fail' option to handle errors gracefully and continue processing other items.

Links

Discussion