🎬 Repurp
🚀 Effortlessly repurpose videos for Instagram, Twitter, TikTok, Broadcast and more!
Repurp is a powerful library and command-line tool that helps you repurpose your videos for various social media platforms, ensuring the best quality and format for each platform's requirements.
✨ Features
- 📱 Support for multiple platforms:
- Instagram (Story, Post, Reel)
- TikTok
- Twitter (Landscape, Square)
- LinkedIn (Landscape, Square)
- Broadcast (Standard, Closeup)
- 🎯 Platform-specific optimizations
- 🔄 Batch processing for multiple platforms
- ⚡ Optimized FFmpeg settings for quality and performance
- 🛠️ Easy-to-use command line interface
🔧 Prerequisites
Before using Repurp, ensure you have the following installed:
- 🎥 FFmpeg (required for video processing)
- 🐍 Python 3.8 or higher
📦 Installation
From PyPI (Recommended)
pip install repurp
From Source
git clone https://github.com/nwaughachukwuma/repurp.git
cd repurp
pip install .
As Executable
Download the latest release for your platform from the releases page.
🚀 Usage
As a Library
from repurp import VideoRepurp
# Initialize with input video
video = VideoRepurp("input_video.mp4")
# Process for a specific platform and style
instagram_story = video.repurp("instagram", "story")
twitter_post = video.repurp("twitter", "landscape")
# Batch process for multiple platforms
outputs = video.batch_repurp(batch_platforms=["instagram", "tiktok", "twitter"])
# Get platform specifications
instagram_specs = video.get_platform_spec("instagram")
The library provides type-safe methods with platform-specific optimizations:
- Supports major social platforms (Instagram, TikTok, Twitter, LinkedIn)
- Supports Broadcast formats (Standard, Closeup)
- Automatically creates an 'output' directory next to your input video
- Returns paths to processed video files
- Handles proper video scaling, padding, and encoding for each platform
CLI Basic Usage
# Repurpose a video for Instagram Story
repurp -i video.mp4 -p instagram -s story
# Repurpose for Twitter in landscape format
repurp -i video.mp4 -p twitter -s landscape
Batch Processing
# Process for all supported platforms
repurp -i video.mp4 -b
# Process for specific platforms
repurp -i video.mp4 -b instagram twitter
Convert Video for Instagram Story
repurp -i my_video.mp4 -p instagram -s story
Batch Process for Multiple Social Media
repurp -i my_video.mp4 -b instagram tiktok twitter
Create Broadcast-Ready Version
repurp -i my_video.mp4 -p broadcast -s standard
CLI Options
Options:
-i, --input Path to the input video file (required)
-p, --platform Target platform (instagram, tiktok, twitter, linkedin, broadcast)
-s, --style Style for the platform (e.g., story, post, reel for instagram)
-b, --batch Batch process for specified platforms
-h, --help Show this help message
Platform-Specific Styles
- Instagram:
story,post,reel - TikTok:
standard - Twitter:
landscape,square - LinkedIn:
landscape,square - Broadcast:
standard,closeup
🤝 Contributing
Contributions are welcome! Here's how you can help:
- Fork the repository
- Create a feature branch (
git checkout -b feature/amazing-feature) - Commit your changes (
git commit -m 'Add amazing feature') - Push to the branch (
git push origin feature/amazing-feature) - Open a Pull Request
Please make sure to update tests as appropriate and follow the existing coding style.
📝 License
This project is licensed under the MIT License - see the LICENSE file for details.
🙏 Acknowledgments
- FFmpeg for providing the powerful video processing capabilities
Metadata
Release files for repurp 0.2.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| repurp-0.2.0.tar.gz | 7.4 kB | Without provenance | Details for repurp-0.2.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| repurp-0.2.0-py3-none-any.whl | Python 3 | none | any | Details for repurp-0.2.0-py3-none-any.whl |
Total release size: 15.8 kB
Release files / repurp-0.2.0.tar.gz
| Download URL | repurp-0.2.0.tar.gz |
|---|---|
| Size | 7.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
0147d30e4d01bbf17392d1be48d6e870385a3acce88279bd0e977b42bd2092f0
|
|
BLAKE2b-256 checksum How to use checksums |
8070d5d31bb25e9146151372f4716c785e09ffb4f3ac73808c61883fbf652d34
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.12.9
|
Release files / repurp-0.2.0-py3-none-any.whl
| Download URL | repurp-0.2.0-py3-none-any.whl |
|---|---|
| Size | 8.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
e5598c95401244e3458971fd369875ffa280e1bc618d7abb709ea5ddd6e2e70b
|
|
BLAKE2b-256 checksum How to use checksums |
556c2ff0c9ee2e4ab24bde29e60ee97d9f773c7af43867a443e8dfe34af2114f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.12.9
|
Security for repurp 0.2.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.