Metadata-Version: 2.4
Name: ai-jiggle-video
Version: 1772077.463.512
Summary: High-quality integration for https://supermaker.ai/video/ai-jiggle-video/
Home-page: https://supermaker.ai/video/ai-jiggle-video/
Author: SuperMaker
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: MIT License
Requires-Python: >=3.6
Description-Content-Type: text/markdown
License-File: LICENSE
Dynamic: author
Dynamic: classifier
Dynamic: description
Dynamic: description-content-type
Dynamic: home-page
Dynamic: license-file
Dynamic: requires-python
Dynamic: summary

# ai-jiggle-video

`ai-jiggle-video` is a Python library that provides a streamlined interface for leveraging the capabilities of the ai-jiggle-video service. It simplifies the process of programmatically interacting with the service for various video manipulation tasks.

## Installation

You can install `ai-jiggle-video` using pip:
bash
pip install ai-jiggle-video

## Basic Usage Examples

Here are a few examples demonstrating how to use the `ai-jiggle-video` library:

**1. Jiggling a Video:**
python
from ai_jiggle_video import JiggleVideo

# Replace with your actual API key or service credentials
api_key = "YOUR_API_KEY"

jiggle = JiggleVideo(api_key=api_key)

input_video_path = "path/to/your/input_video.mp4"
output_video_path = "path/to/your/output_video.mp4"

try:
  jiggle.jiggle(input_video_path, output_video_path)
  print(f"Video jiggled successfully! Output saved to: {output_video_path}")
except Exception as e:
  print(f"An error occurred: {e}")


**2. Adjusting Jiggle Intensity:**
python
from ai_jiggle_video import JiggleVideo

api_key = "YOUR_API_KEY"
jiggle = JiggleVideo(api_key=api_key)

input_video_path = "path/to/your/input_video.mp4"
output_video_path = "path/to/your/output_video_intense.mp4"

try:
  jiggle.jiggle(input_video_path, output_video_path, intensity=0.7) # Intensity between 0.0 and 1.0 (default is 0.5)
  print(f"Video jiggled with adjusted intensity! Output saved to: {output_video_path}")
except Exception as e:
  print(f"An error occurred: {e}")

**3. Applying Jiggle to a Specific Region of Interest (ROI):**
python
from ai_jiggle_video import JiggleVideo

api_key = "YOUR_API_KEY"
jiggle = JiggleVideo(api_key=api_key)

input_video_path = "path/to/your/input_video.mp4"
output_video_path = "path/to/your/output_video_roi.mp4"

# Define the ROI as (x1, y1, x2, y2) - top-left and bottom-right coordinates
roi = (100, 100, 300, 300)

try:
  jiggle.jiggle(input_video_path, output_video_path, roi=roi)
  print(f"Video jiggled within ROI! Output saved to: {output_video_path}")
except Exception as e:
  print(f"An error occurred: {e}")

**4. Handling Asynchronous Jiggling:**
python
import asyncio
from ai_jiggle_video import JiggleVideo

async def jiggle_video_async():
  api_key = "YOUR_API_KEY"
  jiggle = JiggleVideo(api_key=api_key)

  input_video_path = "path/to/your/input_video.mp4"
  output_video_path = "path/to/your/output_video_async.mp4"

  try:
    await jiggle.jiggle_async(input_video_path, output_video_path)
    print(f"Video jiggled asynchronously! Output saved to: {output_video_path}")
  except Exception as e:
    print(f"An error occurred: {e}")

asyncio.run(jiggle_video_async())

## Feature List

*   **Simplified Jiggling:**  Easily apply the jiggle effect to videos with a single function call.
*   **Intensity Control:** Adjust the intensity of the jiggle effect for fine-grained control.
*   **Region of Interest (ROI):** Apply the jiggle effect to specific areas within the video.
*   **Asynchronous Operation:**  Support for asynchronous jiggling to improve performance and responsiveness.
*   **Error Handling:** Robust error handling to gracefully manage potential issues during processing.

## License

MIT

This project is a gateway to the ai-jiggle-video ecosystem. For advanced features and full capabilities, please visit: https://supermaker.ai/video/ai-jiggle-video/
