ffmpeg Node icon

ffmpeg Node

n8n Node for some Ffmpeg functionality

Actions11

Overview

The node provides functionality related to FFmpeg operations, including RTMP restreaming. Specifically, the "Start Restream" operation under the "RTMP Restreaming" resource allows users to stream a media file to a specified RTMP URL. This is useful for scenarios where you want to broadcast or restream video content from a media source (local file or URL) to an RTMP server, such as live streaming platforms or custom streaming servers.

Practical examples include:

  • Streaming a recorded video file to a live streaming platform.
  • Restreaming a media input from one source to another RTMP endpoint.
  • Broadcasting media content dynamically within an automated workflow.

Properties

Name Meaning
Media File Input A valid media URL or the name of the input binary field containing the media file to stream.
RTMP Url A valid RTMP URL where the media file will be streamed to.

Output

The node outputs JSON data representing the result of the restreaming operation. The exact structure is not detailed in the provided code, but typically it would include status information about the streaming process, such as success confirmation, error messages if any, and possibly metadata about the stream.

If the node supports binary data output (e.g., processed media files), it would be included in the output's binary fields, but this is not explicitly shown in the provided snippet.

Dependencies

  • Requires an API key credential for FFmpeg-related services (referred generically as an API authentication token).
  • Depends on FFmpeg functionality exposed via an external service or API.
  • The node internally uses a router module (./router) to delegate execution logic.
  • No direct external environment variables are mentioned, but proper configuration of the FFmpeg API credentials in n8n is necessary.

Troubleshooting

  • Invalid Media Input: If the media file input URL or binary field name is incorrect or inaccessible, the restreaming will fail. Ensure the media source is valid and reachable.
  • Invalid RTMP URL: Providing an invalid or unreachable RTMP URL will cause connection errors. Verify the RTMP endpoint is correct and active.
  • Credential Issues: Missing or incorrect API authentication tokens will prevent the node from executing FFmpeg operations. Confirm that the required API key credential is configured properly.
  • Timeouts or Streaming Failures: Network issues or server-side problems at the RTMP destination can interrupt streaming. Check network connectivity and RTMP server health.
  • Error Messages: The node may throw errors related to media processing or streaming failures. Review error details in the node execution logs and verify inputs and credentials.

Links and References

Discussion