Tuesday, December 14, 2010

Adding Closed Captions to YouTube

We’ve recently had our first go at adding closed captions to our YouTube videos. Closed captions aid hearing impaired users in understanding the content of our videos and are extremely helpful for users that don’t have sound enabled on their computers. Closed Captions are also required under Guideline 1.2.2 of the Web Content Accessibility Guidelines (WCAG) 2.0.
The process is actually quite straightforward and less time-consuming than I would have thought. It does help if you’re provided with a transcript of the original content though.
Closed Captions are expected to describe all significant audio content including non-speech information such as the identity of speakers and their manner of speaking as well as music and sound effects. In this particular case it was fairly simple as the audio was largely only a voice over describing the content of the video.
YouTube currently supports two format options for closed captions, either .SRT of .SBV.
The .SBV format is YouTubes own format and is slightly simpler than .SRT so we have used it for this example.
The .SBV format is just a basic text file that follows a time format of hour:minutes:seconds.milliseconds. The times are delimitated by a comma and are followed by a line break and then the text to be displayed during this time. Two line breaks indicates the end of the caption and the start of the next time code.
Here’s how the first twenty seconds of the closed caption file looks:
Hi, I'm David Reeves
I'm the Associate Chief Librarian at the Alexander Turnbull Library in Wellington
We've undertaken a huge project to digitise a number of our photographic collections during 2010 and 2011
while the National Library building has been undergoing some major refurbishment
we've been able to dedicate around 20 staff to this special project.
Getting the captions aligned to the right time code can be slightly tricky and I found that it was easiest to play through the video and pause every now and then to pick the best start and finish time for each time code. It’s also important to keep line lengths reasonable as otherwise YouTube can cut of the captioning text. I found that no more than 15 words per line worked as a rough guide. This often means that you’ll need to break up longer sentences into several shorted time codes.
If you find that directly editing a .SBV text file is too much work then there are also sites out there such as Caption Tube which help make the captioning process easier.
Here’s how our original video looked:
And with closed captions (CC) turned on:

Have a look at the completed Pictures Online video on our YouTube channel.

Matt O'Reilly

1 comment:

hussvamp said...

Excellent entry! It's always nice when you can not only be informed, but also entertained!