Created
July 18, 2018 19:27
-
-
Save jhmartin/b4b8ca2c7bbb6f3d7b334d61268bc111 to your computer and use it in GitHub Desktop.
Davinci Resolve Close-Captions SRT to Youtube SRT converter
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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