MediaFX icon

MediaFX

Process videos, audio, and media files with FFmpeg

Actions15

Overview

The node provides video processing capabilities using FFmpeg, focusing here on the Video - Merge operation. It merges multiple video sources into a single output video file in a specified format. This is useful for combining clips from different sources or formats into one continuous video.

Common scenarios include:

  • Combining several short video clips into one longer video.
  • Merging videos from URLs and binary data inputs.
  • Creating compilations or highlight reels from multiple video files.

Example: You have three video URLs or binary video files and want to merge them into a single MP4 video for easier sharing or further processing.

Properties

Name Meaning
Video Sources A collection of video inputs to merge. Each source can be either:
- URL: Provide a direct link to a video file (e.g., https://example.com/video.mp4).
- Binary Data from Previous Node: Use binary video data from a prior workflow node.
Output Format The desired output video format after merging. Options are: MP4, AVI, or MOV.

Output

  • The node outputs a binary video file containing the merged video.
  • The binary data is available under the property named data by default.
  • The output filename corresponds to the merged video file with the chosen extension (.mp4, .avi, or .mov).
  • The JSON output contains metadata about success and operation but no direct video data; the actual video is in the binary output.

Dependencies

  • Requires FFmpeg installed and accessible in the environment where n8n runs.
  • No external API keys or services are needed; all processing is local.
  • Uses internal helper utilities for resolving input paths and cleaning temporary files.

Troubleshooting

  • No binary data found error: When using binary input sources, ensure the specified binary property exists and contains valid video data.
  • File not found errors: For URL sources, verify the URLs are accessible and correct. For binary sources, confirm previous nodes provide the expected data.
  • Unsupported format or codec issues: Ensure FFmpeg supports the input video formats and the selected output format.
  • Temporary file cleanup failures: Occasionally, old temp files may not delete immediately; this usually does not affect processing but may require manual cleanup.
  • Operation did not produce an output: If merging fails silently, check input validity and that at least two video sources are provided.

Links and References

Discussion