Results 1 to 4 of 4

Thread: Can't get captions using .srt file

  1. #1
    Join Date
    Aug 2015
    Posts
    2

    Default Can't get captions using .srt file

    The video plays fine, but I cannot get captions to work. The file is vidtest.mp4 and the caption file is vidtest.srt.

    I updated the VOD Caption providers to say
    <TimedText>
    <!-- VOD caption providers (separate with commas): vodcaptionprovidermp4_3gpp, vodcaptionproviderttml, vodcaptionproviderwebvtt, vodcaptionprovidersrt, vodcaptionproviderscc -->
    <VODTimedTextProviders>vodcaptionprovidermp4_3gpp,vodcaptionproviderttml,vodcaptionproviderwebvtt, vodcaptionprovidersrt, vodcaptionproviderscc</VODTimedTextProviders>
    </VODTimedTextProviders>

    <!-- Properties for TimedText -->
    <Properties>
    </Properties>
    </TimedText>

    Here is the page code
    <div id="player"><a href="rtsp://hqiisrad02n:1935/OCCnet/mp4:vidtest.mp4">RTSP Link</a></div>

    <script type="text/javascript">
    jwplayer("player").setup({
    playlist: [{
    file: 'rtmp://hqiisrad02n:1935/OCCNet/mp4:vidtest.mp4',
    title:'vidtest.mp4'
    }],
    width: 854,
    height: 480,
    });
    </script>
    For the VOD application under Closed Caption Sources I heave all sources checked.

    Any assistance would be appreciated.

  2. #2

    Default

    Hi,

    I just did a quick test using the default "vod" application, our provided sample.mp4 as source video, and an srt file called sample.srt - using example caption content taken from our example here.

    I then created a simple JWPlayer page, the meat of which was

    PHP Code:
    <div id="player">
    <
    script type="text/javascript">
    jwplayer("player").setup({
    playlist: [{
    file'rtmp://[WOWZA-IP]:1935/vod/mp4:sample.mp4',
    title:'sample.mp4'
    }],
    width854,
    height480,
    });
    </script> 
    My <TimedText> block was as follows

    <TimedText>
         <VODTimedTextProviders>vodcaptionprovidersrt</VODTimedTextProviders>
         <Properties>
         </Properties>
    </TimedText>
    I opened the web page on a Windows machine / Chrome browser and it showed closed captions correctly. Ensure you select the [cc] button to show text.

    So I'd suggest just following this example and testing that it works. If it does not then something clearly is not right somewhere. You could try enabling the following debug properties and checking the [install-path]/logs/wowzastreamingengine_access.log to see if anything is being reported. If that doesn't help then consider raising it as a ticket via our standard support process. Please also include a link to this forum thread if so.


    Paul
    Last edited by Paul_S; 08-03-2015 at 09:33 AM.

  3. #3
    Join Date
    Aug 2015
    Posts
    2

    Default No srt file for sample.mp4

    I replaced the code using your sample and also trimmed down the VODTimedTextProviders to just srt. The sample does not play captions and there is now on/off button for CC. My sample.mp4 did not come with a sample.srt. Where do I get a copy of the srt file or do I make it manually?
    The sample given in the forums http://www.wowza.com/html/caption.html uses a stream and utilizes a plugins parameter which from what I read is no longer needed. Is there a link to see the sample.mp4 that is not a stream?

    Quote Originally Posted by Paul_S View Post
    Hi,

    I just did a quick test using the default "vod" application, our provided sample.mp4 as source video, and an srt file called sample.srt - using example caption content taken from our example here.

    I then created a simple JWPlayer page, the meat of which was

    PHP Code:
    <div id="player">
    <
    script type="text/javascript">
    jwplayer("player").setup({
    playlist: [{
    file'rtmp://[WOWZA-IP]:1935/vod/mp4:sample.mp4',
    title:'sample.mp4'
    }],
    width854,
    height480,
    });
    </script> 
    My <TimedText> block was as follows

    <TimedText>
         <VODTimedTextProviders>vodcaptionprovidersrt</VODTimedTextProviders>
         <Properties>
         </Properties>
    </TimedText>
    I opened the web page on a Windows machine / Chrome browser and it showed closed captions correctly. Ensure you select the [cc] button to show text.

    So I'd suggest just following this example and testing that it works. If it does not then something clearly is not right somewhere. You could try enabling the following debug properties and checking the [install-path]/logs/wowzastreamingengine_access.log to see if anything is being reported. If that doesn't help then consider raising it as a ticket via our standard support process. Please also include a link to this forum thread if so.


    Paul

  4. #4

    Default

    Hi,

    You can create a text file called sample.srt and place it in your content folder where the sample.mp4 file is. I used the following contents just to test it

    1
    00:00:00,000 --> 00:00:3,000
    SRT (0)
    
    2
    00:00:05 --> 00:00:08.000
    English (5)
    
    3
    00:00:10,000 --> 00:00:15,
    SRT (10)
    
    4
    00:00:20,000 --> 00:00:24,400
    Text at 20 seconds
    There shouldn't be any need to use any other JW plugins, though I would make sure you're using an up to date JWPlayer.


    Paul

Similar Threads

  1. How can we add CEA-608 captions at the time of transcoding
    By Aiman Kazi in forum Closed Captioning
    Replies: 8
    Last Post: 09-23-2015, 09:47 AM
  2. vods3 can not get s3 file to playback (nothing changed on my wms)
    By andy_c in forum Wowza Media Server 3 for Amazon EC2 Discussion
    Replies: 0
    Last Post: 12-24-2013, 07:30 PM
  3. VOD and SRT files
    By aphillips in forum Video On Demand Streaming Discussion
    Replies: 1
    Last Post: 08-09-2013, 11:13 AM
  4. Captions filename - using captionFileNamingRule
    By pajter in forum Closed Captioning
    Replies: 1
    Last Post: 01-07-2013, 02:03 PM
  5. I am trying to get MP4 embedded captions to work with Wowza and JW FLV
    By lerickson in forum Media Players and Devices Discussion
    Replies: 7
    Last Post: 01-24-2012, 02:13 PM

Posting Permissions

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