02-01-2011 12:58 AM
Greetings
I have a player and four video files. The client would like to use close captioning for all four videos. I went ahead and create four DFXP files. No where in the documentations it mentioned how to do this. Does that means close captioning only works with onne video file?
Are there any step by step how to achieve adding close caption on multiple videos for example what if one has a playlist how do I achieve close caption.
Thanks
02-01-2011 05:27 PM
Hi,
You should be able to combine the DFXP files into one, like this:
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<tt xmlns="http://www.w3.org/ns/ttml" xmlns:tts="http://www.w3.org/ns/ttml#styling">
<head>
</head>
<body>
<div xml:lang="en">
<p begin="00:00:00.100" end="00:00:03.000"> Hi, I'm Karen Guardino, an Account Manager at Brightcove. </p>
....
</div>
<div xml:lang="es">
<p begin="00:00:00.100" end="00:00:03.000">Hola: Soy Karen Guardino, Gestora de Cuentas de Brightcove. </p>
.....
</div>
<div xml:lang="ja">
<p begin="00:00:00.100" end="00:00:03.000"> こんにちは。Brightcove のアカウント マネージャ、カレン・ガーディノです。 </p>
......
</div>
</body>
</tt>
A couple of notes that might save you headaches:
02-07-2011 04:36 PM
I've managed to dynamically load a DFXP file using the player API, I have closed caption working, however I'm unable to toggle it on/off so its always visible any ideas or work-around. At the current state of the documentation there are no hooks for for doing this via the API.
Thanks in advanced!
02-08-2011 09:32 AM
Hi,
Unfortunately, I don't think we have an on/off toggle for captions presently. You might do that manually via the Player API by getting the component by ID "closedCaptionsCombo" and making it invisible, but I don't think that work -- expect the first set of captions will still show.
I'll check with the developer and see if there are any other workarounds for this.
Robert
02-08-2011 11:54 AM
Hi,
Turns out you can turn off captions by having a "null" language set (in place of EN, ES, etc)
Robert
02-22-2011 02:48 PM
I have a few related questions. If it's better to start a new thread let me know, but since they are related and this thread is fairly new I will post them here to start.
Here's an example file:
<?xml version="1.0" encoding="UTF-8"?>
<tt xml:lang="en" xmlns="http://www.w3.org/ns/ttml" xmlns:tts="http://www.w3.org/ns/ttml#styling">
<head>
<styling>
<style id="1" tts:textAlign="center" tts:color="#FFFFFF" tts:backgroundColor="#000000" tts:fontSize="16" tts:fontFamily="Verdana" tts:wrapOption="wrap"/>
</styling>
</head>
<body>
<div xml:lang="en" style="1">
<p begin="00:00:00.94" end="00:00:04.60">I didn't come from a family that had money.</p>
<p begin="00:00:04.60" end="00:00:06.36">I don't know if you do or not.</p>
<p begin="00:00:06.36" end="00:00:10.18">I didn't come from a background where<br/>I was pretty smart because I wasn't.</p>
<p begin="00:00:10.18" end="00:00:12.07">I struggled in school.</p>
<p begin="00:00:12.07" end="00:00:19.19">But what I was able to do was to start<br/>the foundation of the rest of my life.</p>
<p begin="00:00:19.19" end="00:00:23.64">Now, I'm not going to stand here and give you<br/>the next thirty five years of chapter and verse</p>
<p begin="00:00:23.64" end="00:00:27.30">about what I did and so forth, but<br/>lets suffice it to say that I went</p>
<p begin="00:00:27.30" end="00:00:32.45">into the real estate business, and through<br/>real estate and through doing deals,</p>
<p begin="00:00:32.45" end="00:00:35.38">I've had a great deal of success in my life.</p>
<p begin="00:00:35.38" end="00:00:38.03">Have I had backwards steps?</p>
<p begin="00:00:38.03" end="00:00:41.18">You bet. Have they been crushes?</p>
<p begin="00:00:41.18" end="00:00:45.68">You bet. But you don't make<br/>a hit movie every year.</p>
<p begin="00:00:45.68" end="00:00:49.15">If you just try and make a movie<br/>every year, you hit a couple homeruns.</p>
<p begin="00:00:49.15" end="00:00:50.79">That's what I did.</p>
<p begin="00:00:50.79" end="00:00:55.42">So, I guess when you get to be a point in life</p>
<p begin="00:00:55.42" end="00:00:57.23">where somebody says, "Geez,<br/>he's made a lot of money.</p>
<p begin="00:00:57.23" end="00:01:01.10">We're entitled to brag about ourselves, so<br/>let's invite Eddie back to the university</p>
<p begin="00:01:01.10" end="00:01:03.61">and tell these kids how to do it."</p>
<p begin="00:01:03.61" end="00:01:06.50">Here's what I want to be able to do today.</p>
<p begin="00:01:06.50" end="00:01:10.91">I want to be able to share some<br/>basic core things that happen</p>
<p begin="00:01:10.91" end="00:01:13.58">that I think are important to you now.</p>
<p begin="00:01:13.58" end="00:01:16.83">Not when you're forty, not<br/>when you're fifty, right now.</p>
<p begin="00:01:16.83" end="00:01:22.44">I want to pass these on to you<br/>because I think they're imperative</p>
<p begin="00:01:22.44" end="00:01:24.90">that you must understand this today.</p>
</div>
</body>
</tt>
02-22-2011 03:29 PM
Hi,
We don't yet support styling in captions, I'm afraid, so you can't modify the style unless you use a different solution. Wrapping is turned on automatically, but I think <br/> tags should still work. I will ping our captioning expert about this.
Robert
02-22-2011 06:02 PM
Try using an actual line break instead of a <br/> tag - this should work for single spacing.
02-22-2011 06:29 PM
You are right! In-elegant, but it works.
I still think there is a bug in the DFXP parser. It should ignore line breaks, but should handle <br/>. Instead, it seems to add in extra line breaks whenever it detects a <br/> tag.
Wouldn't you agree?
02-23-2011 09:54 AM
Oh yes, I agree. Since we don't officially support any styling or positioning within captions, I wanted to get you a temporary solution until we are able to add this support. I imagine, going forward, we would implement the behavior you describe.
Brightcove Inc., a leading global provider of cloud content services, provides a family of products used to publish and distribute the world's professional digital media. The company's products include Brightcove Video Cloud, the market-leading online video platform, and Brightcove App Cloud, the pioneering content app platform. Together, more than 4,200 customers in 50 countries rely on Brightcove's cloud content services to build and operate exceptional media experiences across PCs, smartphones, tablets and connected TVs.
Brightcove Inc.
© 2012 Brightcove Inc.
