A PowerShell script that automatically generates .srt
subtitles in bulk for video files using whisper-ctranslate2
.
- Video Transcription: Supports .mp4, .avi, mkv, and .mov formats.
- Subtitle Management: Removes existing subtitle files with .json, .tsv, .txt, or .vtt extensions.
- Progress Tracking: Provides a progress bar to monitor the process.
- Verbose Mode: Display detailed execution information when
-Verbose
is used.
Running the script:
The video has been subtitled and is displayed correctly in the player:
- Python environment must be installed on your system.
- Install the
whisper-ctranslate2
Python package using the following command:
pip install -U whisper-ctranslate2
- For more information, visit the official repository:
https://github.com/Softcatala/whisper-ctranslate2
To process all video files in the current directory:
PS> .\TranscriptVideo.ps1
To specify the folder containing video files:
PS> .\TranscriptVideo.ps1 -FolderPath "C:\Videos"
To display detailed output:
PS> .\TranscriptVideo.ps1 -Verbose
- FolderPath: (Optional) The path to the folder containing video files. If not provided, the current directory will be used.
PS> .\TranscriptVideo.ps1 -FolderPath "C:\Videos" -Verbose
Processes all video files in C:\Videos with detailed output enabled.
This project is licensed under the MIT License - see the LICENSE file for details.