Skip to content

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

Notifications You must be signed in to change notification settings

melbinjp/Automated_videogen

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

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.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published