← Open Source
NisaarAgharia

AI-Shorts-Creator

AI-Video-Cropper is a Python-based tool that leverages the power of GPT-4 (OpenAI's language model) to automatically analyze videos, extract the most interesting sections, and crop them for improved viewing experience. This project combines the capabilities of GPT-4, FFmpeg, and OpenCV to automate the process of identifying highlights in videos.

ApplicationsContent creationJupyter Notebook
Open on GitHub
Momentum
+0stars in 24 hours0.0%
772
Stars
150
Forks
+-2
This week
2
Contributors
Created 2023-05-27 · Updated 2026-10-14 · #13976 today
Top developers
NisaarAghariaakhil3417

NisaarAgharia/AI-Shorts-Creator is ranked 13,976 with 772 stars.

Same-category comparison

NisaarAgharia/AI-Shorts-Creator is ranked 13,976 among these 8 peers; trypear/pearai-master is ranked 13,973.

Same-category comparison
NameRankMetrics
litanlitudan/skyagi13,953
Language:
TypeScript
Stars:
775
Forks:
56
Description:
SkyAGI: Emerging human-behavior simulation capability in LLM.
w111liang222/lidar-slam-detection13,964
Language:
C++
Stars:
774
Forks:
158
Description:
LSD (LiDAR SLAM & Detection) is an open source perception architecture for autonomous vehicle/robotic.
GalaxyGeneralRobotics/OpenWBT13,966
Language:
Python
Stars:
773
Forks:
72
Description:
Official implementation of OpenWBT.
trypear/pearai-master13,973
Language:
Shell
Stars:
773
Forks:
107
Description:
Master Repo For PearAI.
chadi0x/TheBigBrother13,992
Language:
Python
Stars:
771
Forks:
117
Description:
The Big Brother is a weaponized OSINT platform featuring username enumeration (473+ platforms), quad-vector visual intelligence, Sky Radar tracking, crypto wallet analysis, SSL intelligence, digital footprint reconstruction, EXIF extraction, advanced dorking, and network reconnaissance.
dustinblackman/oatmeal13,993
Language:
Rust
Stars:
771
Forks:
42
Description:
Terminal UI to chat with large language models (LLM) using different model backends, and integrations with your favourite editors.
ihatecsv/deepseek-ocr-client13,994
Language:
JavaScript
Stars:
771
Forks:
85
Description:
A real-time Electron-based desktop GUI for DeepSeek-OCR.
mfrashad/text2art13,996
Language:
Jupyter Notebook
Stars:
771
Forks:
192
Description:
AI-powered Text-to-Art Generator - Text2Art.com.
Key parameters and specifications
Key parameters and specifications
ParameterValue
LanguageJupyter Notebook
CategoryApplications
SubcategoryContent creation
KeywordsVideo production
Stars772
Forks150
Contributors2
Created date2023-05-27
Updated date2026-10-14
Stars in 1 day0
Stars in 7 days-2
Rank13,976
Previous rank18,932
Rank change4,956
7-day stars rank18,430
Previous 7-day stars rank18,364
7-day stars rank change-66
Total stars rank13,736
Previous total stars rank13,725
Total stars rank change-11
CountryIndia
README summary

🎥✂️ (WIP, You Might face some Bugs) AI-Shorts-Creator is a powerful tool designed for content creators, podcasters, and video enthusiasts to effortlessly extract captivating segments from their videos. Leveraging the advanced language model GPT-4, this innovative solution intelligently analyzes video transcripts to identify the most viral and exciting moments. By harnessing the capabilities of FFmpeg and OpenCV, AI-Shorts-Creator automatically crops videos, allowing you to focus on the key highlights and provide an enhanced viewing experience. AI

-Shorts-Creator is a powerful tool designed to: Automatically extract captivating segments from videos. Identify the most viral and exciting moments using GPT-4. Crop videos to emphasize key highlights with precise face detection. Streamline video editing and save time by eliminating manual searching. Work seamlessly with various video formats for maximum compatibility. Enhance the viewing experience for your audience with perfectly cropped highlights. Examples: Source Video : Output Shorts: Get started with AI-Shorts-Creator today and unlock the potential

of your videos like never before! x library (install with ) library (install with ) library (install with ) library (install with ) FFmpeg (install according to your operating system) Usage 1. Install the required libraries by running the following command: 2. Install FFmpeg by following the installation instructions for your operating system. Make sure the command is accessible from the command line. Set up your OpenAI API key by replacing with your actual OpenAI API key. Modify the variable in the function to

specify the YouTube video you want to process. Run the script: The script will download the YouTube video, analyze its transcript using OpenAI's GPT-4, extract the best sections based on the analysis, crop the video using FFmpeg, and apply face detection using OpenCV to further refine the cropping. Additional Information The function downloads a YouTube video by providing the URL and specifying the filename. The function segments the video into interesting sections based on a transcript analysis using OpenAI's

GPT-4 model. The function uses face detection to identify faces in a video file. The function crops the video around the detected faces using FFmpeg. The function analyzes the lip movement or facial muscle activity within a batch of frames to determine if talking behavior is present. The function applies visual effects or adjustments to emphasize the speaker in the frame. Please note that the GPT-4 model and transcript analysis functionality in the provided code are simulated and

not fully functional. You would need a valid OpenAI API key and a working GPT-4 model to perform transcript analysis.

Frequently asked questions

How many stars and forks are recorded?

NisaarAgharia/AI-Shorts-Creator has 772 stars and 150 forks.

What is the repository rank?

NisaarAgharia/AI-Shorts-Creator is ranked 13,976.

What language and category are recorded?

NisaarAgharia/AI-Shorts-Creator has 772 stars, uses Jupyter Notebook and belongs to Applications.

Which repository is closest in rank?

NisaarAgharia/AI-Shorts-Creator is compared with trypear/pearai-master, ranked 13,973 with 773 stars.

README

#AI-Shorts-Creator! 🎥✂️ (WIP, You Might face some Bugs)

AI-Shorts-Creator is a powerful tool designed for content creators, podcasters, and video enthusiasts to effortlessly extract captivating segments from their videos. Leveraging the advanced language model GPT-4, this innovative solution intelligently analyzes video transcripts to identify the most viral and exciting moments. By harnessing the capabilities of FFmpeg and OpenCV, AI-Shorts-Creator automatically crops videos, allowing you to focus on the key highlights and provide an enhanced viewing experience.

AI-Shorts-Creator is a powerful tool designed to:

  • Automatically extract captivating segments from videos.
  • Identify the most viral and exciting moments using GPT-4.
  • Crop videos to emphasize key highlights with precise face detection.
  • Streamline video editing and save time by eliminating manual searching.
  • Work seamlessly with various video formats for maximum compatibility.
  • Enhance the viewing experience for your audience with perfectly cropped highlights.

Examples:

Source Video : https://www.youtube.com/watch?v=NHaczOsMQ20

Output Shorts:

https://github.com/NisaarAgharia/AI-Shorts-Creator/assets/22457544/318c8cf1-bcc3-4ed7-a979-7af17e545e6e

Get started with AI-Shorts-Creator today and unlock the potential of your videos like never before!

Requirements

  • Python 3.x
  • pytube library (install with pip install pytube)
  • opencv-python library (install with pip install opencv-python)
  • openai library (install with pip install openai)
  • youtube-transcript-api library (install with pip install youtube-transcript-api)
  • FFmpeg (install according to your operating system)

Usage

  1. Install the required libraries by running the following command:
pip install -r requirements.txt
  1. Install FFmpeg by following the installation instructions for your operating system. Make sure the ffmpeg command is accessible from the command line.

  2. Set up your OpenAI API key by replacing openai.api_key = '' with your actual OpenAI API key.

  3. Modify the video_id variable in the main() function to specify the YouTube video you want to process.

  4. Run the script:

python auto_cropper.py

The script will download the YouTube video, analyze its transcript using OpenAI's GPT-4, extract the best sections based on the analysis, crop the video using FFmpeg, and apply face detection using OpenCV to further refine the cropping.

Additional Information

  • The download_video(url, filename) function downloads a YouTube video by providing the URL and specifying the filename.
  • The segment_video(response) function segments the video into interesting sections based on a transcript analysis using OpenAI's GPT-4 model.
  • The detect_faces(video_file) function uses face detection to identify faces in a video file.
  • The crop_video(faces, input_file, output_file) function crops the video around the detected faces using FFmpeg.
  • The is_talking_in_batch(frames) function analyzes the lip movement or facial muscle activity within a batch of frames to determine if talking behavior is present.
  • The adjust_focus(frame, talking) function applies visual effects or adjustments to emphasize the speaker in the frame.

Please note that the GPT-4 model and transcript analysis functionality in the provided code are simulated and not fully functional. You would need a valid OpenAI API key and a working GPT-4 model to perform transcript analysis.

Nearby in the ranking
Similar items