Skip to content

Instantly share code, notes, and snippets.

@jhmartin
Created July 18, 2018 19:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jhmartin/b4b8ca2c7bbb6f3d7b334d61268bc111 to your computer and use it in GitHub Desktop.
Save jhmartin/b4b8ca2c7bbb6f3d7b334d61268bc111 to your computer and use it in GitHub Desktop.
Davinci Resolve Close-Captions SRT to Youtube SRT converter
#!/usr/bin/perl -w
use strict;
while (<STDIN>) {
chomp;
if (/^\s*$/) {
next;
}
if (/^\d+$/) {
print "\n$_\n";
next;
}
print "$_\n";
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment