A newer version of the Gradio SDK is available:
5.29.0
metadata
title: Video-to-Ghibli Style Converter
emoji: 🎬
colorFrom: indigo
colorTo: pink
sdk: gradio
sdk_version: 5.23.1
app_file: app.py
pinned: false
Video-to-Ghibli Style Converter
A Gradio web application that transforms videos into Studio Ghibli-style animations using OpenAI's GPT-4o.
Features
- Upload short videos for stylization
- Apply custom style prompts
- Secure API key handling (user provides their own key)
- Real-time conversion status updates
How It Works
- Upload a short video (a few seconds is best)
- Enter your OpenAI API key
- Customize the style prompt if desired
- Click "Stylize Video" and wait for processing
The application:
- Extracts frames from the video
- Uses GPT-4o to analyze and transform each frame to Ghibli style
- Reassembles the stylized frames into a new video
Local Setup
Create a virtual environment:
python -m venv venv source venv/bin/activate # On Windows: venv\Scripts\activate
Install dependencies:
pip install -r requirements.txt
Make sure ffmpeg is installed on your system:
- macOS:
brew install ffmpeg
- Ubuntu:
sudo apt-get install ffmpeg
- Windows: Download from ffmpeg.org
- macOS:
Run the application:
python app.py
Notes
- You need your own OpenAI API key with access to GPT-4o
- Processing time depends on video length and frame rate
- For best results, use videos that are a few seconds long