Coder Social home page Coder Social logo

qingmou / capcut-srt-export Goto Github PK

View Code? Open in Web Editor NEW

This project forked from vogelcodes/capcut-srt-export

0.0 0.0 0.0 26 KB

JS script that extracts subtitles in srt and txt format from CapCut project JSON.

Home Page: https://capcut-srt-export.vogelcodes.com

JavaScript 100.00%

capcut-srt-export's Introduction

capcut-srt-export

WebUI Available here

This script extracts auto captions from a CapCut Desktop project file into a .srt subtitle file.

NodeJS needed. Download

Copy draft_content.json from your CapCut project folder located in C:\Users\user\AppData\Local\CapCut\User Data\Projects\com.lveditor.draft\ on Windows. On MacOS the file is called draft_info.json and is located in: /Users/user/Movies/CapCut/User Data/Projects/com.lveditor.draft

Paste it inside the script folder, then run node index.js. A subtitles.srt will be saved.

Run node index.js --txt to save a copy.txt version with no timestamps.

Video Tutorial

Uppercase your project

Now you can convert every caption in your project to UPPERCASE.

First close your project and CapCut. Copy draft_content.json from your CapCut project folder located in C:\Users\user\AppData\Local\CapCut\User Data\Projects\com.lveditor.draft\ on Windows. On MacOS the file is called draft_info.json and is located in: /Users/user/Movies/CapCut/User Data/Projects/com.lveditor.draft

Paste it inside the script folder, then run node uppercase.js.

It will backup the original file and update the draft_content.json file, turning every caption to uppercase.

Now copy the draf_content.json file back to the project folder replacing the old one.

Open your project, your subtitles will be in uppercase.

In case anything goes wrong, you can restore the original file:

  • delete the modified draft_content.json file in the project folder
  • copy the draft_content.json.bak from the script folder to the project folder
  • rename it to draft_content.json
  • open your project

capcut-srt-export's People

Contributors

vogelcodes avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.