Reply
New Member
arnDev
Posts: 2
Registered: ‎02-01-2011
0 Kudos

Close caption Issue

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

Administrator
BC-Robert
Posts: 237
Registered: ‎02-12-2010
0 Kudos

Re: Close caption Issue

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:

 

  • make sure the xmlns is pointing to http://www.w3.org/ns/ttml"  -- some caption creators point to an older version of the spec, which our captions engine will reject
  • note that you need a crossdomain.xml file for this to work -- that means you can't test it locally, unless you have some tool like Charles that can redirect the call to the remote DFXP file to a local copy
hope this helps,
Robert

 

New Member
arnDev
Posts: 2
Registered: ‎02-01-2011
0 Kudos

Re: Close caption Issue

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!

Administrator
BC-Robert
Posts: 237
Registered: ‎02-12-2010
0 Kudos

Re: Close caption Issue

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

Administrator
BC-Robert
Posts: 237
Registered: ‎02-12-2010
0 Kudos

Re: Close caption Issue

Hi,

 

Turns out you can turn off captions by having a "null" language set (in place of EN, ES, etc)

 

Robert

Visitor
artmorgan
Posts: 4
Registered: ‎02-22-2011
0 Kudos

Re: Close caption Issue

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. 

 

  1. We have some caption files basically working with one language, but no matter what I put in the styling section of the DFXP file, it seems to be ignored.  See a full example file that we are using below.  Is there something wrong with the format?
  2. Typically we but <br/> tags in a caption when we want to specify where a line break occurs in a caption, but on Brightcove players it adds an extra blank line.  It there a way to specify where breaks occur.

 

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&apos;t come from a family that had money.</p>
    <p begin="00:00:04.60" end="00:00:06.36">I don&apos;t know if you do or not.</p>
    <p begin="00:00:06.36" end="00:00:10.18">I didn&apos;t come from a background where<br/>I was pretty smart because I wasn&apos;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&apos;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&apos;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&apos;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&apos;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, &quot;Geez,<br/>he&apos;s made a lot of money.</p>
    <p begin="00:00:57.23" end="00:01:01.10">We&apos;re entitled to brag about ourselves, so<br/>let&apos;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.&quot;</p>
    <p begin="00:01:03.61" end="00:01:06.50">Here&apos;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&apos;re forty, not<br/>when you&apos;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&apos;re imperative</p>
    <p begin="00:01:22.44" end="00:01:24.90">that you must understand this today.</p>
   </div>
  </body>
</tt>

Administrator
BC-Robert
Posts: 237
Registered: ‎02-12-2010
0 Kudos

Re: Close caption Issue

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

Brightcove Team
BC-MattW
Posts: 2
Registered: ‎02-22-2011
0 Kudos

Re: Close caption Issue

Try using an actual line break instead of a <br/> tag - this should work for single spacing.

Visitor
artmorgan
Posts: 4
Registered: ‎02-22-2011
0 Kudos

Re: Close caption Issue

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?

Brightcove Team
BC-MattW
Posts: 2
Registered: ‎02-22-2011
0 Kudos

Re: Close caption Issue

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.