1001fx - NoCode functions icon

1001fx - NoCode functions

1001fx is a set of functions for any automation platform. Our functions are simple, very well tested, scalable and offer features that most automation platforms do not offer.

Actions74

audiovideo → Convert MP3 into MP4 with Images

AI-generated

Overview

This node converts an MP3 audio file into an MP4 video by combining the audio with a sequence of images. The resulting video displays the provided images for specified durations while playing the audio track. This is useful for creating simple music videos, podcasts with visual slides, or any scenario where you want to visualize audio content with static images.

Practical examples:

  • Creating a YouTube-ready video from a podcast episode and a set of promotional images.
  • Generating a slideshow video with background music for social media.
  • Automating the creation of audiograms for marketing purposes.

Properties

Name Meaning
Audio File URL The URL of the audio file (MP3) to be used as the soundtrack for the video. You can use 1001fx uploadasset for temporary asset upload.
Images Input Mode Determines how images are provided:
- Expression: Supply a JSON array of images.
- Manual: Add images one by one using fields.
Images (Expression mode) A JSON array of image objects, each specifying an image URL and duration. All images should ideally have the same aspect ratio.
Images (Manual mode) A list of images, each with:
- Image URL: The URL of the image.
- Duration: Number of seconds this image should be shown in the video.
Thumbnail Image URL The URL of the thumbnail image for the resulting video. You can use 1001fx uploadasset for temporary asset upload.

Output

  • The output is a JSON object containing the result of the conversion request.
  • Typical fields may include:
    • A URL or reference to the generated MP4 video.
    • Status or metadata about the operation.
  • If the operation fails, the output will contain an error field with details about the failure.

Example output:

{
  "videoUrl": "https://api.1001fx.com/output/your-video.mp4",
  "status": "success"
}

or on error:

{
  "error": "Invalid audio file URL"
}

Dependencies

  • External Service: Requires access to the 1001fx API.
  • API Key: You must configure n8n with valid 1001fx API credentials (1001fxApi).
  • Asset Hosting: Audio and image files must be accessible via public URLs or uploaded using the 1001fx uploadasset function.

Troubleshooting

Common issues:

  • Invalid URLs: If the audio or image URLs are incorrect or inaccessible, the node will return an error.
  • Mismatched Durations: If image durations do not sum up to the audio length, the video may end before or after the audio finishes.
  • Aspect Ratio Issues: Using images with different aspect ratios may result in inconsistent video appearance.

Error messages:

  • "Invalid audio file URL": Check that the provided audio URL is correct and publicly accessible.
  • "Missing required property: images": Ensure you have supplied at least one image with a valid URL and duration.
  • "API key missing or invalid": Make sure your 1001fx API credentials are correctly configured in n8n.

Links and References

Discussion