MediaFX icon

MediaFX

Process videos, audio, and media files with FFmpeg

Actions13

Overview

The node provides video processing capabilities using FFmpeg, focusing on applying fade effects to videos. Specifically, the "Fade" operation under the "Video" resource allows users to apply either a fade-in or fade-out effect to a single video source. This is useful for creating smooth transitions at the beginning or end of a video clip.

Common scenarios include:

  • Adding a fade-in effect to introduce a video softly.
  • Adding a fade-out effect to conclude a video smoothly.
  • Preparing video clips for presentations, social media, or other multimedia projects where polished transitions are desired.

Practical example:

  • A user wants to fade in a promotional video starting from 0 seconds over 2 seconds duration and output the result as an MP4 file.

Properties

Name Meaning
Output Format The format of the output video file. Options: MP4, MOV, AVI, MKV.
Video Source The input video to which the fade effect will be applied. Can be provided as a URL or binary data.
Fade Effect Type of fade effect to apply. Options: Fade In, Fade Out.
Fade Start Time (seconds) The time in seconds when the fade effect should start.
Fade Duration (seconds) The length in seconds of the fade effect.

Output

The node outputs the processed video as binary data attached to the data binary property. The JSON output object is empty ({}), indicating that the main result is the binary video file with the fade effect applied.

  • binary.data: Contains the resulting video file with the fade effect.
  • The output filename corresponds to the chosen output format extension (e.g., .mp4).

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 functions to handle temporary files and video processing commands.

Troubleshooting

  • No binary data found: If the video source is set to binary but the specified binary property does not exist or is empty, the node will throw an error. Ensure the correct binary property name is used and that the input contains valid binary video data.
  • File not found: When providing a local file path (if supported), ensure the file exists and the path is correct.
  • Unsupported output format: Choose one of the supported formats (MP4, MOV, AVI, MKV). Using unsupported formats may cause errors.
  • FFmpeg errors: If FFmpeg is not installed or not in the system PATH, the node will fail. Install FFmpeg and verify accessibility.
  • Invalid fade times: Setting negative or out-of-range start times or durations may cause unexpected results or errors.

Links and References

Discussion