Discover and explore top open-source AI tools and projects—updated daily.
NisaarAghariaPython tool for automated video highlight extraction
Top 47.2% on SourcePulse
AI-Shorts-Creator is a Python tool designed to automatically extract and crop engaging segments from videos, targeting content creators and podcasters. It leverages GPT-4 to analyze video transcripts, identify viral moments, and uses FFmpeg and OpenCV for precise cropping and face detection, aiming to streamline video editing and enhance viewer experience.
How It Works
The tool downloads YouTube videos via pytube, then processes their transcripts using the youtube-transcript-api and OpenAI's GPT-4. It analyzes the transcript to pinpoint exciting segments, then uses OpenCV for face detection within the video frames. Finally, FFmpeg is employed to crop the video around detected faces, with potential for further refinement based on talking detection.
Quick Start & Requirements
pip install -r requirements.txtvideo_id in auto_cropper.py with the target YouTube video.python auto_cropper.pypytube, opencv-python, openai, youtube-transcript-api.Highlighted Details
Maintenance & Community
The project is marked as "WIP" (Work In Progress) and notes potential bugs. No specific community links or contributor information are provided in the README.
Licensing & Compatibility
The README does not specify a license. Compatibility for commercial use or closed-source linking is not mentioned.
Limitations & Caveats
The project is explicitly marked as "WIP" with potential bugs. The README states that GPT-4 and transcript analysis functionality are simulated and require a valid OpenAI API key and working GPT-4 model to be fully functional.
1 year ago
Inactive