ComfyUI > Nodes > Dream Video Batches > 👉 Sine Camera Pan

ComfyUI Node: 👉 Sine Camera Pan

Class Name

Sine Camera Pan [DVB]

Category
🎭 DVB/🎥 camera
Author
Dream Project (Account age: 661days)
Extension
Dream Video Batches
Latest Updated
2024-05-22
Github Stars
0.05K

How to Install Dream Video Batches

Install this extension via the ComfyUI Manager by searching for Dream Video Batches
  • 1. Click the Manager button in the main menu
  • 2. Select Custom Nodes Manager button
  • 3. Enter Dream Video Batches in the search bar
After installation, click the Restart button to restart ComfyUI. Then, manually refresh your browser to clear the cache and access the updated list of nodes.

Visit ComfyUI Online for ready-to-use ComfyUI environment

  • Free trial available
  • High-speed GPU machines
  • 200+ preloaded models/nodes
  • Freedom to upload custom models/nodes
  • 50+ ready-to-run workflows
  • 100% private workspace with up to 200GB storage
  • Dedicated Support

Run ComfyUI Online

👉 Sine Camera Pan Description

Create smooth, oscillating camera pan effect with sine wave motion for dynamic video scenes.

Sine Camera Pan [DVB]:

The Sine Camera Pan [DVB] node is designed to create a smooth, oscillating camera pan effect in your video frames, mimicking the natural motion of a sine wave. This node is particularly useful for adding dynamic movement to static scenes or enhancing the visual interest of your video content. By leveraging the mathematical properties of sine waves, it ensures a fluid and continuous motion that can be customized in terms of direction, speed, and phase. This node is ideal for AI artists looking to introduce a rhythmic and loopable pan effect to their animations or video sequences, providing a professional touch with minimal effort.

Sine Camera Pan [DVB] Input Parameters:

frames

This parameter accepts a set of video frames that you want to apply the sine camera pan effect to. It is the primary input and determines the content that will be processed by the node.

output_width

This integer parameter specifies the width of the output frames. The default value is 512, with a minimum value of 1. Adjusting this parameter will change the horizontal resolution of the output video.

output_height

This integer parameter specifies the height of the output frames. The default value is 512, with a minimum value of 1. Adjusting this parameter will change the vertical resolution of the output video.

direction_x

This float parameter determines the horizontal direction of the pan. A positive value moves the camera to the right, while a negative value moves it to the left. The default value is 1.0.

direction_y

This float parameter determines the vertical direction of the pan. A positive value moves the camera downwards, while a negative value moves it upwards. The default value is -1.0.

period_seconds

This float parameter defines the period of the sine wave in seconds, which controls the speed of the oscillation. The default value is 1.0, with a minimum value of 0.1 and adjustable in steps of 0.1. A shorter period results in faster oscillation.

phase_seconds

This float parameter sets the phase shift of the sine wave in seconds, allowing you to offset the start of the oscillation. The default value is 0.0. Adjusting this parameter can help synchronize the pan effect with other elements in your video.

pan_mode

This parameter offers two options: "edge to edge" and "edge to center". "Edge to edge" mode pans the camera from one edge of the frame to the opposite edge, while "edge to center" mode pans from the edge towards the center. This setting affects the motion path of the camera pan.

Sine Camera Pan [DVB] Output Parameters:

frames

The output parameter is a set of video frames that have been processed with the sine camera pan effect. These frames will exhibit the smooth, oscillating motion defined by the input parameters, providing a dynamic and visually appealing result.

Sine Camera Pan [DVB] Usage Tips:

  • To create a subtle and smooth pan effect, use a longer period_seconds value.
  • Adjust the direction_x and direction_y parameters to fine-tune the pan direction and achieve the desired visual effect.
  • Use the phase_seconds parameter to synchronize the pan effect with other animations or movements in your video.

Sine Camera Pan [DVB] Common Errors and Solutions:

WARNING: Cannot pan - output larger than input!

  • Explanation: This error occurs when the specified output dimensions (output_width and output_height) are larger than the dimensions of the input frames.
  • Solution: Ensure that the output_width and output_height are equal to or smaller than the dimensions of the input frames.

WARNING: Cannot pan - no direction!

  • Explanation: This error occurs when both direction_x and direction_y are set to 0.0, resulting in no movement.
  • Solution: Set either direction_x or direction_y (or both) to a non-zero value to define a valid pan direction.

👉 Sine Camera Pan Related Nodes

Go back to the extension to check out more related nodes.
Dream Video Batches
RunComfy

© Copyright 2024 RunComfy. All Rights Reserved.

RunComfy is the premier ComfyUI platform, offering ComfyUI online environment and services, along with ComfyUI workflows featuring stunning visuals.