Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Extract the most viral clips from a random youtube video.

NotificationsYou must be signed in to change notification settings

gabrielelanzafamee/viral-clips-extractor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

This is a clips extractor tool that allows you to extract the most viral, funny, or interesting parts of a YouTube video based on the transcript, create subtitles, and crop the video around detected faces using OpenCV. It leverages the power of Whisper Timestamped for transcript extraction and ChatGPT 3.5 for content analysis.

Overview

This tool provides a convenient way to:

  1. Extract the transcript of a YouTube video using whisper_timestamped.
  2. Analyze the transcript with ChatGPT 3.5 to identify the most engaging parts.
  3. Cut the video at the identified times to create shorter clips.
  4. Generate subtitles for the clips.
  5. Automatically crop the video to focus on the detected faces using OpenCV.

Requirements

To run the YouTube Clips Extractor, you'll need the following:

  • FFMPEG
  • ImageMagick
  • Check therequirements.txt file.

Installation

  1. Clone this repository:

    git clone https://github.com/xjabr/viral-clips-extractor.git
  2. Install the required Python packages:

    pip install -r requirements.txt
  3. Sign up for ChatGPT 3.5 and obtain your API credentials.

  4. Configure the API credentials for ChatGPT 3.5 by update the variableopenai.api_key incontents/chatgpt.py file in the project directory.

    openai.api_key='<your-token>'
  5. Export cookies from tiktok.com using "Get cookies.txt LOCALLY" and save it in the root of the project ascookies.txt

  6. Run the application:

    python clips_extractor.py --url<url>

Contributors

This project was developed by:

If you'd like to contribute or report issues, please feel free to open anissue or submit apull request.

Acknowledgments

We would like to thank the following libraries and services for making this project possible:

Your contributions and feedback are highly appreciated!

About

Extract the most viral clips from a random youtube video.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Sponsor this project

 

Packages

No packages published

Languages


[8]ページ先頭

©2009-2025 Movatter.jp