Closed Captioning Brightcove videos with CaptionSync is easy using our integration. This tutorial describes how to create multiple-language files for Brightcove pre-2017 systems.
Most systems allow for separate caption files for each language, but the Brightcove pre-2017 systems only allow for one caption file. As a result, some manual adjustments are required when the user wishes to have caption files in more than one language. There are two possible options to circumvent this limitation:
- Create two instances of your video in your Brightcove system, and put the English caption file on one instance, and the Spanish/other language caption file on the other.
- Merge the English and Spanish/other language caption files together into a single caption file, allowing users to toggle between the two languages in the Brightcove player.
If you requested translation for your media file, you'll need to download the translated caption file from Translate -> Status of Translations.
Merging two caption files:
Here are the steps to merge two caption files:
1. Open the English caption file (.bc.xml) in a text editor. Note that we name the two files with the same name, so if you download them to the same directory you will end up with a (1) or similar added to the name by your OS. You can either download the Spanish/other language file to a different folder, or rename one of them, to make sure you can differentiate between the two.
2. Delete the following two lines at the bottom of the English file (you are merging two <div>s into one <body> and <tt>, so you only need the closing tags once at the end of the file):
</body>
</tt>
3. Copy the contents of the Spanish/other language file, starting from the line that says <div xml:lang="es" style="1"> (just below the "Created by CaptionSync" comment). Copy from this <div> tag, all the way to the bottom of the file.
4. Paste that into the English file, below the English content, and save the file.
The result will look like the merged file attached. The merged version of your caption files can be uploaded to Brightcove, and the Brightcove player will show both language options:
Please note that even after saving the update, it sometimes takes several minutes before Brightcove processes the new file and propagates it through its caching system. This can make testing frustrating, because initially you'll still see the old captions, or nothing at all, if you didn't have captions.
Additional Notes:
- Brightcove systems pre-2017 require a custom output called .bc.xml -- this is generated automatically when you make your Captioning request using our integration. However, Brightcove systems pre-2017 also accept the.dfxp.xml caption file, and so the process described in this article can be applied to this output as well.
Comments
0 comments
Please sign in to leave a comment.