Thursday, October 25, 2012

Creating Automated Subtitles for Video

Normally I would try to edit the sound as best I can. But when all else fails, sometimes subtitles are the best way to go.  Unfortunately, there are a bunch of special folks online who have suggested that the only way to add subtitles to a video are doing it one at a time by hand thought the "title" option in Premier Pro (I will be using CS6, but this also applies to CS4 and 5).

If you are like me, your reaction to this was something along the lines of "I quit". Until I found this video:



Here is a copy of the script that he referenced:


Adobe After effects Subtitles Script.  For use with adobe premiere's transcription

L = thisComp.layer("name of your video. extension");
max = 5; // number of words to display
n = 0
  if (L.marker.numKeys > 0){
    n = L.marker.nearestKey(time).index;
    if (L.marker.key(n).time > time){
      n--;
    }
  }
s = " ";
if (n > 0){
  base = Math.floor((n-1)/max)*max + 1;
  for (i = base; i < base + max; i++){
    if (i <= L.marker.numKeys){
      s += L.marker.key(i).comment + " ";
    }
  }
}
s

Which can be found here:  http://www.mediafire.com/?oko5zvmq3nnzktn

I take no credit for this, but thank you so much Tory Moghadam for the post!
Happy Subtitling!

No comments:

Post a Comment