Skip to content

david-ca6/Resolve-OpenCaptions

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

DaVinci Resolve OpenCaptions

Free & Open-Source subtitle to Text+ tool for DaVinci Resolve. No subscriptions. No paywalls. Just captions that work.

OpenCaptions

Description

This is an open source tool that uses the DaVinci API to create a Text+ caption track on a DaVinci Timeline using .srt files and a Text+ template.

  • OpenCaptions always works with the focused timeline, no need to restart it when you change the timeline.
  • OpenCaptions will always create a new Text+ track, it will not overwrite existing Text+ tracks.

Features

  • Create Text+ from a .srt file and a Text+ template
  • Multi-track support with up to six SRT files with different templates, each generating its own Text+ track
  • Export Text+ timeline tracks back to .srt files
  • Convert Resolve subtitle tracks into Text+ tracks using templates (experimental)
  • Export Resolve subtitle tracks back to .srt files (experimental)
  • Remove punctuation (optional)
  • Case conversion [none, lower case, upper case, capitalize all words]

Setup

  1. Install DaVinci Resolve 19 or higher.

  2. Install Python 3.10 or higher.

  3. Install OpenCaptions by placing the "OpenCaptions.py" file in the following folder:

    Windows

    C:\ProgramData\Blackmagic Design\DaVinci Resolve\Fusion\Scripts\Comp\

    macOS

    /Library/Application Support/Blackmagic Design/DaVinci Resolve/Fusion/Scripts/Comp/

  4. Restart DaVinci Resolve.

Usage

  1. Create a "Captions Templates" folder in your Media Pool.
  2. Place your Text+ templates in it.
  3. Write or generate your subtitles track.
  4. Export your subtitle track to a .srt file. (skip this step if you created the subtitles outside of DaVinci Resolve)
  5. Run OpenCaptions from the Resolve Workspace menu. Workspace -> Scripts -> Comp -> OpenCaptions
  6. Select up to five SRT/template pairs.
  7. Click "Execute"; tracks are generated in order.

Why Use OpenCaptions?

  • Simple to use
  • Totally free
  • Totally open source, you can audit the code, and make your own changes
  • Cross-platform, you can use it on Windows, macOS, and Linux
  • Compatible with both DaVinci Resolve Free and DaVinci Resolve Studio (paid)

OpenCaptionsAuto (experimental)

OpenCaptionsAuto is a script that can be used as an alternative to OpenCaptions. It automatically converts subtitle tracks to Text+ tracks using templates. It is not a GUI tool; to use it, you name the subtitle tracks the same as the Text+ templates you want to use. It will convert all subtitle tracks to Text+ tracks.

Dependencies

  • Python 3.10+
  • tkinter (standard library)

About

Why the name "OpenCaptions"?

"Open" because it's open source
"Captions" because it works on subtitles and captions
And open captions are the name for subtitles burned directly into a video. Since we convert closed captions from SRT to Text+ to be burned in as open captions, it's a fitting name.

Why make it?

The starting point of OpenCaptions is based on one of my older projects, Resolve_TextPlus2SRT.
But TextPlus2SRT was more a custom script for my own use than anything else; it was missing a lot of features, it only worked with Linux, required typing in a terminal, and it only allowed converting SRT to TextPlus, nothing more. OpenCaptions is intended to be a stronger base to work from to make a more powerful and user-friendly tool.

Disclaimer about experimental features

Disclaimer about experimental features

The OpenCaptionsAuto plugin, the subtitle to Text+ conversion, and the subtitle export rely on a bug in the DaVinci Resolve API that allows reading the subtitle text from the subtitle name field. If that bug gets fixed, all plugins that convert subtitle tracks to Text+ will break. Using OpenCaptions with an SRT file is more reliable.

About

Free & Open-Source Multi-Track Subtitle to Text+ tool for DaVinci Resolve. No subscriptions. No paywalls. Just captions that work.

Topics

Resources

License

Stars

Watchers

Forks

Sponsor this project

Packages

 
 
 

Contributors

Languages