{"id":22409192,"url":"https://github.com/gabrielelanzafamee/viral-clips-extractor","last_synced_at":"2025-06-18T20:36:50.012Z","repository":{"id":195655598,"uuid":"693379996","full_name":"gabrielelanzafamee/viral-clips-extractor","owner":"gabrielelanzafamee","description":"Extract the most viral clips from a random youtube video.","archived":false,"fork":false,"pushed_at":"2024-11-07T13:57:54.000Z","size":49647,"stargazers_count":29,"open_issues_count":1,"forks_count":5,"subscribers_count":5,"default_branch":"main","last_synced_at":"2024-11-27T10:38:42.221Z","etag":null,"topics":["automation","chatgpt","clips","extractor","face-detection","moviepy","opencv","python","speech-to-text","text-to-text"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/gabrielelanzafamee.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":"FUNDING.yml","license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null},"funding":{"github":["gabrielelanzafamee"]}},"created_at":"2023-09-18T23:18:21.000Z","updated_at":"2024-11-24T19:02:51.000Z","dependencies_parsed_at":"2023-09-19T04:36:29.468Z","dependency_job_id":"b3ec6f19-ff93-4aa1-8b91-8d415c17e455","html_url":"https://github.com/gabrielelanzafamee/viral-clips-extractor","commit_stats":null,"previous_names":["xjabr/viral-clips-extractor","gabrielelanzafamee/viral-clips-extractor"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gabrielelanzafamee%2Fviral-clips-extractor","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gabrielelanzafamee%2Fviral-clips-extractor/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gabrielelanzafamee%2Fviral-clips-extractor/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gabrielelanzafamee%2Fviral-clips-extractor/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gabrielelanzafamee","download_url":"https://codeload.github.com/gabrielelanzafamee/viral-clips-extractor/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":228295615,"owners_count":17897596,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["automation","chatgpt","clips","extractor","face-detection","moviepy","opencv","python","speech-to-text","text-to-text"],"created_at":"2024-12-05T12:06:49.356Z","updated_at":"2024-12-05T12:06:49.888Z","avatar_url":"https://github.com/gabrielelanzafamee.png","language":"Python","funding_links":["https://github.com/sponsors/gabrielelanzafamee"],"categories":[],"sub_categories":[],"readme":"# Viral Clips Extractor\n\nThis 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.\n\n## Overview\n\nThis tool provides a convenient way to:\n\n1. Extract the transcript of a YouTube video using whisper_timestamped.\n2. Analyze the transcript with ChatGPT 3.5 to identify the most engaging parts.\n3. Cut the video at the identified times to create shorter clips.\n4. Generate subtitles for the clips.\n5. Automatically crop the video to focus on the detected faces using OpenCV.\n\n## Requirements\n\nTo run the YouTube Clips Extractor, you'll need the following:\n- FFMPEG\n- ImageMagick\n- Check the `requirements.txt` file.\n\n## Installation\n\n1. Clone this repository:\n\n   ```shell\n   git clone https://github.com/xjabr/viral-clips-extractor.git\n   ```\n\n2. Install the required Python packages:\n\n   ```shell\n   pip install -r requirements.txt\n   ```\n\n3. Sign up for ChatGPT 3.5 and obtain your API credentials.\n\n4. Configure the API credentials for ChatGPT 3.5 by update the variable `openai.api_key` in `contents/chatgpt.py` file in the project directory.\n\n   ```python\n   openai.api_key = '\u003cyour-token\u003e'\n   ```\n\n5. Export cookies from tiktok.com using \"Get cookies.txt LOCALLY\" and save it in the root of the project as `cookies.txt`\n\n6. Run the application:\n\n   ```shell\n   python clips_extractor.py --url \u003curl\u003e\n   ```\n\n## Contributors\n\nThis project was developed by:\n\n- Gabriele Lanzafame (@xjabr) - [GitHub Profile](https://github.com/xjabr)\n\nIf you'd like to contribute or report issues, please feel free to open an [issue](https://github.com/xjabr/viral-clips-extractor/issues) or submit a [pull request](https://github.com/xjabr/viral-clips-extractor/pulls).\n\n## Acknowledgments\n\nWe would like to thank the following libraries and services for making this project possible:\n\n- [moviepy](https://github.com/Zulko/moviepy) by Zulko\n- [whisper-timestamped](https://github.com/linto-ai/whisper-timestamped) by linto-ai\n- [ChatGPT 3.5](https://beta.openai.com/signup/) by OpenAI\n- [OpenCV](https://opencv.org/) for face detection and video manipulation\n\nYour contributions and feedback are highly appreciated!","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgabrielelanzafamee%2Fviral-clips-extractor","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgabrielelanzafamee%2Fviral-clips-extractor","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgabrielelanzafamee%2Fviral-clips-extractor/lists"}