Git Product home page Git Product logo

melbinjp / automated_videogen Goto Github PK

View Code? Open in Web Editor NEW
1.0 3.0 0.0 20 KB

Automated Media Generation: A Python project that automates the creation of media content, including videos and subtitles, based on search queries. Make your content creation process more efficient and dynamic with this versatile tool.

License: MIT License

Jupyter Notebook 56.83% Python 43.17%
artificial-intelligence audio-processing automation configuration content-creation developer-tools google-custom-search-api gpt-2 gtts lambda-functions

automated_videogen's Introduction

Certainly, here's a sample README file for your code to be presented on a GitHub repository:

Automated_videogen

This repository contains a Python script for automating the generation of videos based on search queries. It combines text generation, image collection, audio synthesis, and video creation to produce informative and engaging videos.

Table of Contents

Introduction

Automated_videogen is a project that leverages advanced programs and algorithms to create videos from textual descriptions. It incorporates various technologies, including natural language processing, image processing, and audio synthesis. With this tool, you can quickly generate videos for educational, promotional, or informative purposes.

Prerequisites

Before using this tool, make sure you have the following installed:

  • Python 3.x
  • Required Python packages (install using pip): requests, audioread, PIL, transformers, gTTS, moviepy, icrawler, and whisper.
  • A Google Custom Search API Key and Custom Search Engine ID.

Installation

  1. Clone this repository to your local machine:
git clone https://github.com/melbinjp/Automated_videogen.git
cd Automated_videogen
  1. Install the required Python packages using pip:
pip install -r requirements.txt
  1. Set up your Google Custom Search API Key and Custom Search Engine ID. Place these credentials in a config.ini file in the root directory of the project.

  2. Run the script by executing:

python Automated_videogen.py

Configuration

  • Configure your settings in the config.ini file. This file includes parameters like the maximum filename length and file paths.

Usage

  1. Run the script by executing Automated_videogen.py. It will prompt you to enter a search query.
  2. The script will search for interesting topics using Google Custom Search and retrieve the top result.
  3. It will gather media by searching Google Images for related images.
  4. Audio is generated based on the retrieved text.
  5. A video is created using the images and audio.
  6. Subtitles are added to the video.
  7. The final video is saved in the output directory.

How It Works

  • The script uses Google Custom Search to find a relevant topic.
  • It collects images from the web based on the search query.
  • Text is generated using a language model from the transformers library.
  • Audio is synthesized using Google Text-to-Speech (gTTS).
  • The video is created by combining images and audio using moviepy.
  • Subtitles are generated using the Whisper library and added to the video.
  • The final video is saved in the output directory.

Contributing

Contributions to this project are welcome. Feel free to open issues and pull requests if you have any ideas for improvement or new features.

License

This project is licensed under the MIT License - see the LICENSE file for details.

automated_videogen's People

Contributors

melbinjp avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.