This project processes and edits videos by adding subtitles, cutting out silent parts, and generating viral captions and hashtags. It leverages the power of OpenAI GPT-3 to automatically generate viral content for social media platforms like Instagram Reels.
- Video Editing: Users upload videos, and the system cuts out silent parts of the video.
- Subtitles: The spoken content in the video is transcribed from the audio and burned into the video as subtitles.
- Viral Content Generation: The video content is analyzed, and captions and hashtags are generated for Instagram Reels based on the video.
- Cutting Silent Parts: Removes unnecessary silent portions from the video.
- Subtitle Generation: Subtitles are added to the video based on the extracted audio.
- Viral Caption and Hashtags: OpenAI GPT-3 is used to generate captions and hashtags tailored to the video content.
- Organized Outputs: All results are stored in a clean and structured
outputs/folder.
Clone the latest version of the project to your local machine using the following command:
git clone https://github.com/username/video-editing-viral-generator.git
cd video-editing-viral-generatorTo install all the necessary Python libraries, run the following command:
pip install -r requirements.txtThe system processes videos by taking a video file as input. You can run the project from the command line like this:
python main.py /path/to/your/video.mp4After processing, the following files will be saved in the outputs/ folder:
- edited_video.mp4: The video with silent parts removed.
- final_output_with_subs.mp4: The final video with subtitles burned in.
- temp_audio.wav: The audio extracted from the video.
- subtitles.srt: The subtitle file.
- caption_and_hashtags.txt: The viral caption and hashtags generated for the video.
- This project fully automates the video editing and viral content generation process.
- The videos are intended to be formatted for Instagram Reels
- To generate captions and hashtags, you'll need an OpenAI GPT-3 API key.
This project is under the GNU General Public License v3.0
If you'd like to contribute to the project, feel free to open a pull request. Please be clear about what you want to add or change in the project.