# ai-walking-video-generator
A powerful Elixir library for programmatically generating walking video prompts for AI models, enabling seamless integration of video creation into your Elixir applications. This package simplifies the process of crafting precise instructions for AI video generation, focusing on realistic walking scenarios.
## Installation
Add `ai_walking_video_generator` to your list of dependencies in `mix.exs`:
elixir
def deps do
[
{:ai_walking_video_generator, "~> 0.1.0"}
]
end
Then, run:
bash
mix deps.get
## Usage Examples
This package provides functions to build detailed walking video prompts. Here are a few examples:
**1. Basic Walking Prompt:**
elixir
alias AiWalkingVideoGenerator.Prompt
Prompt.generate(character: "A woman", location: "a park", action: "walking")
#=> "A woman walking in a park."
**2. Adding Details with Options:**
elixir
alias AiWalkingVideoGenerator.Prompt
Prompt.generate(
character: "A dog",
location: "a beach at sunset",
action: "walking",
style: "photorealistic",
camera_angle: "low angle",
additional_details: "with a frisbee in its mouth"
)
#=> "A photorealistic low angle shot of a dog walking on a beach at sunset with a frisbee in its mouth."
**3. Using Pattern Matching for Specific Scenarios:**
elixir
alias AiWalkingVideoGenerator.Prompt
defmodule VideoGenerator do
def generate_prompt(%{character: "Superhero", location: location}) do
Prompt.generate(
character: "Superhero",
location: location,
action: "flying then walking",
style: "comic book style",
camera_angle: "dynamic"
)
end
def generate_prompt(params) do
Prompt.generate(params)
end
end
VideoGenerator.generate_prompt(character: "Superhero", location: "Metropolis")
#=> "A comic book style dynamic shot of Superhero flying then walking in Metropolis."
VideoGenerator.generate_prompt(character: "A cat", location: "a cozy living room")
#=> "A cat walking in a cozy living room."
**4. Chaining Options with Pipes:**
elixir
alias AiWalkingVideoGenerator.Prompt
alias AiWalkingVideoGenerator.Options
"A man"
|> Options.character()
|> Options.location("a bustling city street")
|> Options.action("walking quickly")
|> Prompt.generate()
#=> "A man walking quickly in a bustling city street."
**5. Handling Complex Scenarios with Custom Functions:**
elixir
alias AiWalkingVideoGenerator.Prompt
defmodule CustomPrompts do
def create_fantasy_prompt(character, location) do
Prompt.generate(
character: character,
location: location,
action: "walking through",
style: "fantasy painting",
additional_details: "with magical effects"
)
end
end
CustomPrompts.create_fantasy_prompt("An elf", "a mystical forest")
#=> "A fantasy painting of An elf walking through a mystical forest with magical effects."
## Feature Summary
* **Simple API:** Easy-to-use functions for generating walking video prompts.
* **Customizable:** Options for character, location, action, style, camera angle, and additional details.
* **Flexible:** Supports pattern matching and pipes for building complex scenarios.
* **Elixir-Native:** Leverages Elixir's strengths for concurrency and fault tolerance.
* **AI Model Agnostic:** Generates prompts suitable for various AI video generation models.
* **Focus on Realism:** Designed to produce prompts that lead to realistic walking videos.
## License
MIT
This package is part of the ai-walking-video-generator ecosystem. For advanced features and enterprise-grade tools, visit: https://supermaker.ai/blog/ai-walking-video-generator-create-realistic-walking-videos-free/