Page 1 of 2 12 LastLast
Results 1 to 10 of 14

Thread: Live Captions Not Being Recorded

  1. #1

    Default Live Captions Not Being Recorded

    Hello - I am using Wowza version: 3.5.2.02 build4123

    I am successfully injecting captions into a Live Stream using this server-side code:
    ...
    AMFDataObj amfData = new AMFDataObj();
    amfData.put("text", new AMFDataItem(caption));
    amfData.put("language", new AMFDataItem("eng"));
    amfData.put("trackid", new AMFDataItem(99));							
    mediaStream.sendDirect("onTextData", amfData);
    ((MediaStream)mediaStream).processSendDirectMessages();
    ...
    I can view the captions in FlowPlayer (but not JWPlayer, as they can't seem to handle live captions), and also with the CEA-608 code you've provided, I am getting the captions down to IOS (Live AND OnDemand) with no problem!

    However, when I record the stream locally on the server, I do not seem to get the captions captured (either in Flow or JW, with console logging enabled - i see onMetaData events fine in the console when using both, in LIVE mode, just not OnDemand, once the file is recorded). Additionally, I do see *some* metadata being pushed down in OnDemand mode, but it appears to be all "buffer" data events, so I know something is being captured. I've enabled (on the live point that I'm capturing) this code in Streams/Properties:
    <Property>
      <Name>mp4WriterRecordData</Name>
      <Value>true</Value>
      <Type>Boolean</Type>
    </Property>
    <Property>
      <Name>mp4WriterRecordOnMetaData</Name>
      <Value>true</Value>
      <Type>Boolean</Type>
    </Property>
    ...and call the Recording of the file like this from server-side:
    ...
    IMediaStream mediaStream = appInstance.getStreams().getStream(streamName);
    LiveStreamRecordContainer container = new LiveStreamRecordContainer(new Date(), new LiveStreamRecorderMP4());
    // Record Data...
    container.Recorder.setRecordData(true);
    // Set to true if you want to version the previous file rather than overwrite it
    container.Recorder.setVersionFile(true);
    // If recording only audio set this to false so the recording starts immediately
    container.Recorder.setStartOnKeyFrame(false);
    // file writer...
    String outputPath = "/foo.mp4"
    // start recording
    container.Recorder.startRecording(mediaStream, outputPath, false);
    ...
    What am I doing incorrectly that is precluding my captions from (apparently) being recorded.

    Thanks!

    --dan

  2. #2
    Join Date
    Dec 2007
    Posts
    21,962

    Default

    Using the LiveStreamRecord API, you can do ILiveStreamRecord.setRecordData(true);

    Richard

  3. #3

    Default

    Live onTextData captions currently work in JWPlayer 5 but not version 6. We are working with the Longtail folks on this so they will be supported in JWPlayer 6.

    Scott

  4. #4

    Default

    Quote Originally Posted by rrlanham View Post
    Using the LiveStreamRecord API, you can do ILiveStreamRecord.setRecordData(true);

    Richard
    Richard:

    Thanks for the reply here - in my code block above, is what you're suggesting programmatically different from this?:

    LiveStreamRecordContainer container = new LiveStreamRecordContainer(new Date(), new LiveStreamRecorderMP4());
    container.Recorder.setRecordData(true);
    ...as that's what I'm currently doing...

    Thanks for any help here!

    --dan

  5. #5

    Default

    Quote Originally Posted by ScottKell View Post
    Live onTextData captions currently work in JWPlayer 5 but not version 6. We are working with the Longtail folks on this so they will be supported in JWPlayer 6.

    Scott
    Scott:

    Yep - thanks for this, I found this to be true as well. It's extremely frustrating with JW6, as their language would lead one to believe this _does_ work for live. Once we went back to version 5, things functioned as expected - however, we're still not getting the onTextData recorded to a file recorded on the server.

  6. #6
    Join Date
    Dec 2007
    Posts
    21,962

    Default

    Yes, looks same. Do you have a short sample that you can send to support@wowza.com? If so, include a link to this thread for reference.

    Richard

  7. #7

    Default

    Quote Originally Posted by rrlanham View Post
    Yes, looks same. Do you have a short sample that you can send to support@wowza.com? If so, include a link to this thread for reference.

    Richard
    Richard - thanks so much - sent as requested.

    Standing By!

    --dan

  8. #8

    Default

    Quote Originally Posted by danwestman
    we're still not getting the onTextData recorded to a file recorded on the server.
    Was there any solution to this? I just experienced this on a server running 3.5.2.08.

  9. #9

    Default

    Quote Originally Posted by m0zziter View Post
    Was there any solution to this? I just experienced this on a server running 3.5.2.08.
    Can you give more details about your set up?

    How are you injecting cuepoints?
    What is the cuepoints name?
    How are you listening for them?
    And did they work at any point?

    Salvadore

  10. #10

    Default

    I'm injecting them almost exactly how dan is:
    ...
    AMFDataObj amfData = new AMFDataObj();
    amfData.put("text", new AMFDataItem(onTextData.text));
    amfData.put("language", new AMFDataItem("eng"));
    amfData.put("trackid", new AMFDataItem(99));
    Object[] argdata = {amfData};
    stream.sendDirect("onTextData", argdata);
    ((MediaStream)stream).processSendDirectMessages();
    ...
    I can see the captions when viewing the live stream; however, if I record the stream by going to http://[wowza server ip]:8086/livestreamrecord/ and play the file that is created there are no captions. I haven't recorded anything until this week but so far, no none of the recordings I've made have captions. Do I need to explicitly call ILiveStreamRecord.setRecordData(true) to record the captions?

Page 1 of 2 12 LastLast

Similar Threads

  1. Injecting "closely synced" live captions via AMF onTextData: Timecode alignment?
    By videodoctor in forum Server-side Modules and Code Samples Discussion
    Replies: 2
    Last Post: 02-14-2014, 02:19 PM
  2. Replies: 4
    Last Post: 09-27-2013, 01:10 PM
  3. Embedded closed captions in rtmp live stream
    By Shradha in forum Media Players and Devices Discussion
    Replies: 11
    Last Post: 02-28-2013, 10:26 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •