capcut-srt-extractor-python
April 30, 2024 ยท View on GitHub
Capcut SRT Extractor is a Python script that extracts SRT subtitles from Capcut project files. Capcut, a popular video editing application, does not provide an option to export SRT files directly. This script aims to fill that gap by parsing the JSON file generated by Capcut and generating SRT subtitles.
Why? ๐ค
When using Capcut, users often need SRT subtitles for their videos. However, Capcut only generates subtitles within the application and does not offer an export option for SRT files. This script solves this problem by extracting subtitles from Capcut project files and saving them in the widely used SRT format.
Quick Start ๐
- Clone the repository:
git clone https://github.com/danyfernandes/capcut-srt-extractor-python.git
- Navigate into the project directory:
cd capcut-srt-extractor-python
- Run the script to see available options:
python3 main.py -h
- Example usage:
python3 main.py -i PATH/TO/draft_info.json -o mySrt.srt
If no output file is specified, the script will generate an 'out.srt' file in the project root.
Usage ๐ ๏ธ
To extract SRT subtitles from Capcut project files:
- Provide the path to the 'draft_info.json' file (or 'draft_content.json' on Windows) using the
-ioption. - Optionally, specify the output SRT file path using the
-ooption.
Contributing ๐ค
Contributions are welcome! If you have any suggestions, bug reports, or feature requests, please open an issue or submit a pull request.
License ๐
This project is licensed under the MIT License - see the LICENSE file for details.