YouTube Shorts Automator
Automatisierte Erstellung von YouTube Shorts auf Android-Geräten
Über das Projekt
Der YouTube Shorts Automator ist ein Python-Tool, das die vollständige Erstellung von YouTube Shorts automatisiert - von der Video-Bearbeitung bis zum Upload auf Android-Geräten.
Hauptfunktionen:
- Automatisches Zuschneiden auf 9:16 Format
- Text-Overlay mit Styling
- Hintergrundmusik mit Loop-Funktion
- ADB-basierter Upload auf Android
- Konfigurierbar über JSON
Technologie-Stack
Python 3.8+
MoviePy
OpenCV
pure-python-adb
Pillow
Projektstruktur
youtubeshortadb/ ├── youtube_shorts_creator.py # Hauptanwendung ├── config.json # Konfigurationsdatei ├── requirements.txt # Python-Abhängigkeiten ├── README.md # Dokumentation └── venv/ # Virtuelle Umgebung
Kernkomponenten
Video Processing
Die Video-Klasse verarbeitet das Quellvideo:
- Format-Umwandlung zu 9:16 (Shorts-Format)
- Zentriertes Zuschneiden bei anderen Aspect Ratios
- Text-Overlay mit konfigurierbarem Styling
Audio Handling
Audiokomponenten für professionelle Shorts:
- Audiodateien mit automatischer Längenanpassung
- Loop-Funktion für kürzere Musikstücke
- AAC-Encoding für Kompatibilität
ADB Integration
Steuerung des Android-Geräts für Upload:
- TCP-Verbindung zum Android-Gerät
- Automatisierte App-Steuerung via Shell-Kommandos
- Touch-Event-Simulation für UI-Interaktion
Verwendung
Konfiguration (config.json):
{
"adb_host": "127.0.0.1",
"adb_port": 5555,
"source_video": "input_video.mp4",
"text": "Dein Text hier",
"music_file": "background_music.mp3",
"output_path": "output_short.mp4"
}
Ausführung:
# Installation pip install -r requirements.txt # Ausführung python youtube_shorts_creator.py
Voraussetzungen
- Python 3.8 oder höher
- ADB (Android Debug Bridge) installiert
- Android-Gerät mit USB-Debugging
- YouTube App installiert