Skip to content

This repository contains code for an AI project focused on automatic video transcription and subtitling. The code utilizes the Whisper ASR model for speech-to-text conversion and generates subtitles that are overlaid onto the original video. Features include text splitting, caption creation, and customization options for subtitles.

Notifications You must be signed in to change notification settings

mtnvdsk/Auto_Subtitle_generation_using_ML

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 

Repository files navigation

Video Transcription and Subtitling using ML

This project involves converting video speech to text using the Whisper ASR model and generating subtitles. The code is designed for a specific use case and includes features such as splitting the text into lines, creating captions, and overlaying them on the original video.

Table of Contents

Setup

  1. Clone the repository: git clone <repository-url>
  2. Install the required dependencies using the provided pip installations and apt-get commands.
  3. Mount Google Drive to access video files: drive.mount('/content/drive')

Usage

  1. Provide the path to the input video: input_video_path = "/content/drive/MyDrive/video/sample.mp4"
  2. Run the notebook to convert the video to text, split it into lines, and generate subtitles.
  3. Adjust parameters such as MaxChars, MaxDuration, and MaxGap in the code as needed.
  4. The final output video with subtitles will be saved as output.mp4 in the specified Google Drive location.

Dependencies

Make sure to install these dependencies before running the code.

About

This repository contains code for an AI project focused on automatic video transcription and subtitling. The code utilizes the Whisper ASR model for speech-to-text conversion and generates subtitles that are overlaid onto the original video. Features include text splitting, caption creation, and customization options for subtitles.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published