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
- Convert an input video file to MP4 format using a custom FFmpeg command.
- 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
jsoncommand- The original FFmpeg command executedstdout- Standard output from the FFmpeg command executionstderr- Standard error output from the FFmpeg command executionexitCode- 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
- FFmpeg Documentation - Official documentation for FFmpeg commands and usage.