Visit ComfyUI Online for ready-to-use ComfyUI environment
Converts MediaInfo object to JSON string for user-friendly display.
The JNodes_MediaInfoToString
node is designed to convert media information into a human-readable string format. This node takes a MediaInfo
object, which contains various details about a media file such as frame count, frames per second (fps), duration, and dimensions, and transforms this data into a JSON-formatted string. This conversion is particularly useful for logging, debugging, or displaying media metadata in a user-friendly manner. By providing a clear and structured representation of media information, this node helps you better understand and manage your media assets.
The in_media_info
parameter expects an input of type JNODES_MEDIA_INFO
. This parameter represents the media information object that contains various attributes of the media file, such as start frame, frame count, fps, duration, frame time, width, and height. The MediaInfo
object encapsulates all these details, and the node will convert this object into a JSON string. This parameter is required for the node to function correctly.
The output parameter STRING
is a JSON-formatted string that represents the media information contained in the MediaInfo
object. This string includes details such as the start frame, frame count, fps, duration, frame time, width, and height of the media file. The JSON format makes it easy to read and understand the media metadata, facilitating better management and analysis of media assets.
in_media_info
parameter is not a valid MediaInfo
object.MediaInfo
object containing all the necessary attributes.in_media_info
parameter is missing or not provided.MediaInfo
object to the in_media_info
parameter before executing the node.© Copyright 2024 RunComfy. All Rights Reserved.