Skip to content

A subtitle generator for videos up to 10GB, automatically transcribing and translating spoken content into Brazilian Portuguese. Ideal for multilingual content, this tool creates accurate `.srt` files for seamless integration with video players.

Notifications You must be signed in to change notification settings

barbiedeti/AISubs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 

Repository files navigation

Video Subtitle Generator with Language Detection and Translation

This project is a Python-based application that automates the process of generating subtitles for videos in any spoken language. It uses OpenAI's Whisper model for accurate transcription and automatically translates the generated subtitles into Brazilian Portuguese. The result is exported as a .srt file, which can be easily added to videos using media players or video editing software.

The application is designed to handle large video files (up to 10GB) and is ideal for filmmakers, educators, or anyone working with multilingual content.


The Fina Look

Below are some visuals to help you understand how the subs are supposed to look

1. Exported Subtitle File

Generated .srt files are accurate and can be used directly with most media players. In this example I used VLC vlcsnap-2024-12-11-10h07m48s985 vlcsnap-2024-12-11-12h19m52s493 vlcsnap-2024-12-11-12h19m42s374


Features

  • Automatic language detection using Whisper.
  • High-accuracy subtitle generation.
  • Subtitle translation to Brazilian Portuguese (or any specified language).
  • Handles large video files (up to 10GB).
  • Easy-to-use and extensible for API or GUI integration.

Technologies Used

  • Python
  • Whisper: For speech-to-text processing.
  • FFmpeg: For audio extraction from video files.
  • mTranslate: For subtitle translation.
  • MoviePy: For video processing and management.

Installation

Prerequisites

  • Python 3.8+
  • FFmpeg installed on your system (Installation Guide).
  • GPU support (optional) for faster processing.

** Support the Project

If you find this project useful, consider supporting its development:

  • USDT (TRC20):

TLpSee85pWMz9uTCSG3UyPdyWBuzNdKmYA

  • Pix (Brazil):

f1d8f782-5046-4306-825b-27faa53bc7d4

** License **

This project is licensed under the MIT License.

Feel free to contribute to this project by submitting pull requests or opening issues. Feedback and suggestions are always welcome! 😊

About

A subtitle generator for videos up to 10GB, automatically transcribing and translating spoken content into Brazilian Portuguese. Ideal for multilingual content, this tool creates accurate `.srt` files for seamless integration with video players.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages