MediaFX icon

MediaFX

Process videos, audio, and media files with FFmpeg

Actions15

Overview

The node provides media processing capabilities focused on video, audio, image, subtitle, transition, and font management using FFmpeg. Specifically for the Font Management resource with the Get Font Preview operation, it retrieves metadata about a selected font, such as its size and timestamps of creation and modification, without exposing the actual font file path.

This node is beneficial when you want to manage fonts within your media workflows, for example:

  • Previewing font details before applying them in video subtitles or text overlays.
  • Validating that a font exists and is accessible.
  • Managing user-uploaded fonts alongside system fonts.

Practical example: Before adding subtitles with a specific font to a video, you can use this node to preview the font's metadata to confirm it is available and suitable.

Properties

Name Meaning
Font Key The identifier of the font to operate on. Options are dynamically loaded from user-uploaded fonts. This property is required.

Output

The output JSON contains metadata about the selected font, including:

  • Font properties (name, type, description).
  • File size in bytes.
  • Creation date/time.
  • Last modified date/time.

The actual font file path is omitted for security and abstraction.

Example output JSON structure:

{
  "success": true,
  "operation": "preview",
  "data": {
    "name": "Font Name",
    "type": "font-type",
    "description": "Optional description",
    "size": 123456,
    "createdAt": "2023-01-01T12:00:00.000Z",
    "modifiedAt": "2023-01-02T12:00:00.000Z"
  }
}

No binary data is output for this operation.

Dependencies

  • Requires access to the local filesystem to read font files and their metadata.
  • Uses internal utility functions to retrieve available fonts and their details.
  • No external API keys or services are needed for font preview.
  • FFmpeg is a general dependency for other media operations but not directly used for font preview.

Troubleshooting

  • Font Not Found Error: If the specified font key does not exist, the node throws an error indicating the font was not found. Ensure the font key is valid and corresponds to an existing font.
  • File Access Issues: If the font file cannot be accessed (e.g., missing or permission denied), the node will fail. Verify the font files exist and have proper read permissions.
  • Empty Output: If the operation does not produce output, check that the correct resource ("font") and operation ("preview") are selected.
  • General Errors: Other errors may occur if the font metadata cannot be read properly; reviewing the font files' integrity may help.

Links and References

Discussion