Save Video (RGBA):
The SaveVideoRGBA node is designed to facilitate the conversion of image sequences into video files, supporting both RGB and RGBA formats. This node is particularly beneficial for AI artists who wish to create videos from generated images, as it seamlessly handles the inclusion of alpha channels, allowing for transparent video outputs. By automatically selecting appropriate video formats and codecs based on the presence of an alpha channel, it ensures compatibility and optimal quality. The node supports popular video formats such as MP4, WEBM, and MOV, and codecs like H264, VP9, and ProRes, making it versatile for various artistic needs. Additionally, it can incorporate audio streams into the video, providing a comprehensive solution for multimedia content creation.
Save Video (RGBA) Input Parameters:
path
The path parameter specifies the file path where the resulting video will be saved. It is crucial for determining the storage location of the output video file. This parameter does not have a default value and must be provided by the user to ensure the video is saved in the desired directory.
format
The format parameter determines the container format of the output video. It can automatically select the appropriate format based on the presence of an alpha channel, or it can be manually set to mp4, webm, or mov. The default value is RGBAVideoContainer.AUTO, which allows the node to choose the best format based on the input data.
codec
The codec parameter specifies the video codec used for encoding the video. It can be set to h264, libvpx-vp9, or prores_ks, with the default being RGBAVideoCodec.AUTO. This parameter impacts the compression and quality of the video, with different codecs offering various balances between file size and quality.
metadata
The metadata parameter allows for the inclusion of additional information in the video file, such as author details or creation date. This parameter is optional and can be left as None if no metadata is to be included.
Save Video (RGBA) Output Parameters:
ui
The ui output parameter provides a preview of the saved video, allowing you to quickly verify the result without navigating to the file location. This feature is particularly useful for ensuring the video has been correctly encoded and saved according to the specified parameters.
Save Video (RGBA) Usage Tips:
- To maintain transparency in your video, ensure that your input images have an alpha channel and select a format that supports it, such as
webmormov. - When working with audio, ensure that the audio sample rate matches the video frame rate to avoid synchronization issues.
Save Video (RGBA) Common Errors and Solutions:
Only WEBM and MOV formats support alpha channel
- Explanation: This error occurs when you attempt to save a video with an alpha channel using a format that does not support transparency.
- Solution: Change the video format to
webmormovto ensure alpha channel support.
Supported formats: MP4, WEBM, MOV
- Explanation: This error indicates that an unsupported video format was specified.
- Solution: Ensure that the format parameter is set to one of the supported formats:
mp4,webm, ormov.
Supported codecs: H264, VP9, ProRes
- Explanation: This error arises when an unsupported codec is selected for video encoding.
- Solution: Adjust the codec parameter to use one of the supported codecs:
h264,libvpx-vp9, orprores_ks.
