Powered by MSDN

US - English
NEW! Silverlight 5 is available Learn More

Closed caption issue with EE4 and SMF player RSS

1 reply

Last post Feb 24, 2011 06:50 AM by Tommy5201

(0)
  • sathis

    sathis

    0 Points

    2 Posts

    Closed caption issue with EE4 and SMF player

    Feb 18, 2011 10:07 PM | LINK

    Hi,
    I i have been using  EE4 pro with Sp1 (MSDN version) to encode my video to IIS smooth streaming(V1 advanced). its converts fine without any issues. I am using SMF player and it works perfectly without any issues.
    Now i wanted to use subtitle so i just added .srt file on the text panel and now i can see 2 extra files in my output directory which is ISMT and .dfxp files. 
    When i just give the mediaurl as ""http://sathisc-980:11/Videos/sl/sample.ism/Manifest" i though smf player will pickup the caption from ism file but i didnot see the captions enabled on the smf player when press cc button.
    then i found the sample from the SMF codeplex website and they mentioned need to explictly select the dfxp file so i have added the code on my player
    <smf_media:PlaylistItem DeliveryMethod="AdaptiveStreaming" MediaSource="http://sathisc-980:11/Videos/sl/sample.ism/Manifest">
    <smf_media:PlaylistItem.MarkerResource>
         <smf_media:MarkerResource Source="sample.eng.capt.dfxp"/>
    </smf_media:PlaylistItem.MarkerResource>
    </smf_media:PlaylistItem>
     
    but I still  didnot see my captions on the player. I am not sure i am doing wrong. but when i compare the sample xml file that SMF used with my .dfxp file i saw the format was slightly different
    smfsampleCAPTION.xml
     
    <?xml version="1.0" encoding="utf-8"?>
    <tt xml:lang="en-GB" xmlns="http://www.w3.org/2006/10/ttaf1">
     <head>
     <metadata>
      <ttm:title xmlns:ttm="http://www.w3.org/2006/10/ttaf1#metadata" />
      <ttm:desc xmlns:ttm="http://www.w3.org/2006/10/ttaf1#metadata" />
      <ttm:copyright xmlns:ttm="http://www.w3.org/2006/10/ttaf1#metadata" />
     </metadata>
     <styling>
      <style xml:id="backgroundStyle" p5:fontFamily="proportionalSansSerif" p5:fontSize="25%" p5:textAlign="center" p5:origin="10% 85%" p5:extent="80% 10%" p5:backgroundColor="rgba(0,0,0,100)" p5:displayAlign="center" xmlns:p5="http://www.w3.org/2006/10/ttaf1#styling" />
      <style xml:id="speakerStyle" p5:style="backgroundStyle" p6:color="white" p6:backgroundColor="transparent" xmlns:p6="http://www.w3.org/2006/10/ttaf1#styling" xmlns:p5="http://www.w3.org/2006/10/ttaf1" />
     </styling>
     <layout>

    Hi,


    I i have been using  EE4 pro with Sp1 (MSDN version) to encode my video to IIS smooth streaming(V1 advanced). its converts fine without any issues. I am using SMF player and it works perfectly without any issues.

    Now i wanted to use subtitle so i just added .srt file on the text panel and now i can see 2 extra files in my output directory which is ISMT and .dfxp files. 

    When i just give the mediaurl as ""http://sathisc-980:11/Videos/sl/sample.ism/Manifest" i though smf player will pickup the caption from ism file but i didnot see the captions enabled on the smf player when press cc button.

    then i found the sample from the SMF codeplex website and they mentioned need to explictly select the dfxp file so i have added the code on my player


    <smf_media:PlaylistItem DeliveryMethod="AdaptiveStreaming" MediaSource="http://sathisc-980:11/Videos/sl/sample.ism/Manifest">
    <smf_media:PlaylistItem.MarkerResource>
         <smf_media:MarkerResource Source="sample.eng.capt.dfxp"/>
    	</smf_media:PlaylistItem.MarkerResource>
    </smf_media:PlaylistItem>



    but I still  didnot see my captions on the player. I am not sure i am doing wrong. but when i compare the sample xml file that SMF used with my .dfxp file i saw the format was slightly different


    SMF sampleCAPTION.xml

    <?xml version="1.0" encoding="utf-8"?>
    <tt xml:lang="en-GB" xmlns="http://www.w3.org/2006/10/ttaf1">
      <head>
        <metadata>
          <ttm:title xmlns:ttm="http://www.w3.org/2006/10/ttaf1#metadata" />
          <ttm:desc xmlns:ttm="http://www.w3.org/2006/10/ttaf1#metadata" />
          <ttm:copyright xmlns:ttm="http://www.w3.org/2006/10/ttaf1#metadata" />
        </metadata>
        <styling>
          <style xml:id="backgroundStyle" p5:fontFamily="proportionalSansSerif" p5:fontSize="25%" p5:textAlign="center" p5:origin="10% 85%" p5:extent="80% 10%" p5:backgroundColor="rgba(0,0,0,100)" p5:displayAlign="center" xmlns:p5="http://www.w3.org/2006/10/ttaf1#styling" />
          <style xml:id="speakerStyle" p5:style="backgroundStyle" p6:color="white" p6:backgroundColor="transparent" xmlns:p6="http://www.w3.org/2006/10/ttaf1#styling" xmlns:p5="http://www.w3.org/2006/10/ttaf1" />
        </styling>
        <layout>
          <region p4:begin="00:00:00:00" p4:end="00:01:00:00" xmlns:p4="http://www.w3.org/2006/10/ttaf1" xml:id="speaker" p5:style="speakerStyle" p6:zIndex="1" xmlns:p6="http://www.w3.org/2006/10/ttaf1#styling" xmlns:p5="http://www.w3.org/2006/10/ttaf1" />
          <region p4:begin="00:00:00:00" p4:end="00:01:00:00" xmlns:p4="http://www.w3.org/2006/10/ttaf1" xml:id="background" p5:style="backgroundStyle" p6:zIndex="0" xmlns:p6="http://www.w3.org/2006/10/ttaf1#styling" xmlns:p5="http://www.w3.org/2006/10/ttaf1" />
        </layout>
      </head>
      <body>
        <div>
          <p p4:region="speaker" p4:begin="00:00:15:00" p4:end="00:00:17:28" xmlns:p4="http://www.w3.org/2006/10/ttaf1">At the left we can see... </p>
          <p p4:region="speaker" p4:begin="00:00:18:04" p4:end="00:00:20:02" xmlns:p4="http://www.w3.org/2006/10/ttaf1">At the right we can see the... </p>
          <p p4:region="speaker" p4:begin="00:00:20:03" p4:end="00:00:21:28" xmlns:p4="http://www.w3.org/2006/10/ttaf1">...the head-snarlers </p>
          <p p4:region="speaker" p4:begin="00:00:21:29" p4:end="00:00:24:11" xmlns:p4="http://www.w3.org/2006/10/ttaf1">Everything is safe. Perfectly safe. </p>
          <p p4:region="speaker" p4:begin="00:00:24:17" p4:end="00:00:27:01" xmlns:p4="http://www.w3.org/2006/10/ttaf1">Emo? </p>
          <p p4:region="speaker" p4:begin="00:00:28:06" p4:end="00:00:29:29" xmlns:p4="http://www.w3.org/2006/10/ttaf1">Watch out! </p>
          <p p4:region="speaker" p4:begin="00:00:47:01" p4:end="00:00:48:14" xmlns:p4="http://www.w3.org/2006/10/ttaf1">Are you hurt? </p>
          <p p4:region="speaker" p4:begin="00:00:51:29" p4:end="00:00:53:28" xmlns:p4="http://www.w3.org/2006/10/ttaf1">I don't think so. You? </p>
          <p p4:region="speaker" p4:begin="00:00:55:04" p4:end="00:00:56:29" xmlns:p4="http://www.w3.org/2006/10/ttaf1">I'm Ok. </p>
          <p p4:region="speaker" p4:begin="00:00:57:03" p4:end="00:01:00:00" xmlns:p4="http://www.w3.org/2006/10/ttaf1">Get up. Emo, it's not safe here. </p>
        </div>
      </body>
    </tt>


    my .dfxp file

    -------------

    <?xml version="1.0" encoding="utf-8"?>
    <tt xmlns:tt="http://www.w3.org/ns/ttml" xmlns:ttm="http://www.w3.org/ns/ttml#metadata" xmlns:tts="http://www.w3.org/ns/ttml#styling" xmlns:ttp="http://www.w3.org/ns/ttml#parameter" xml:lang="en" xmlns="http://www.w3.org/ns/ttml">
      <tt:head>
        <tt:metadata>
          <ttm:title />
          <ttm:desc />
          <ttm:copyright />
        </tt:metadata>
        <tt:styling>
          <tt:style xml:id="backgroundStyle" tts:fontFamily="proportionalSansSerif" tts:fontSize="1.5c" tts:textAlign="center" tts:origin="0% 90%" tts:extent="100% 8%" tts:backgroundColor="rgba(0,0,0,0)" tts:displayAlign="center" />
          <tt:style xml:id="speakerStyle" tt:style="backgroundStyle" tts:color="white" tts:textOutline="0px 1px" tts:backgroundColor="transparent" />
        </tt:styling>
        <tt:layout>
          <tt:region xml:id="speaker" tt:style="speakerStyle" tts:zIndex="1" />
          <tt:region xml:id="background" tt:style="backgroundStyle" tts:zIndex="0" />
        </tt:layout>
      </tt:head>
      <tt:body>
        <tt:div>
          <tt:p tt:region="speaker" tt:begin="00:00:00:13" tt:end="00:00:02:23">Today is your father's birthday. </tt:p>
          <tt:p tt:region="speaker" tt:begin="00:00:02:28" tt:end="00:00:05:13">Singamuthu's birthday. Then, we must celebrate it </tt:p>
          <tt:p tt:region="speaker" tt:begin="00:00:05:23" tt:end="00:00:07:23">He took loans all over and ran away. </tt:p>
          <tt:p tt:region="speaker" tt:begin="00:00:07:28" tt:end="00:00:09:23">Don't say that </tt:p>
          <tt:p tt:region="speaker" tt:begin="00:00:09:28" tt:end="00:00:12:05">He gave money to everyone. </tt:p>
          <tt:p tt:region="speaker" tt:begin="00:00:12:16" tt:end="00:00:15:16">l know how generous he is. He has 3 wives. </tt:p>
          <tt:p tt:region="speaker" tt:begin="00:00:15:21" tt:end="00:00:19:13">fathered a child every year and even celebrated a silver jublie too. </tt:p>
          <tt:p tt:region="speaker" tt:begin="00:00:19:18" tt:end="00:00:20:20">Please don't say that. </tt:p>
          <tt:p tt:region="speaker" tt:begin="00:00:20:26" tt:end="00:00:22:23">He treated us like queens. </tt:p>
          <tt:p tt:region="speaker" tt:begin="00:00:22:28" tt:end="00:00:25:20">You are looking like queens. But l am like a servant </tt:p>
          <tt:p tt:region="speaker" tt:begin="00:00:26:04" tt:end="00:00:28:28">Okay. l am getting late to the race. l am moving. </tt:p>
          <tt:p tt:region="speaker" tt:begin="00:00:29:03" tt:end="00:00:31:28">Velu, get your father's blessings. </tt:p>
          <tt:p tt:region="speaker" tt:begin="00:00:32:23" tt:end="00:00:34:26">Father, l must win this race. </tt:p>
          <tt:p tt:region="speaker" tt:begin="00:00:35:13" tt:end="00:00:37:01">And l must get rich. </tt:p>
          <tt:p tt:region="speaker" tt:begin="00:00:37:23" tt:end="00:00:39:01">Only then, I can clear all your debts. </tt:p>
          <tt:p tt:region="speaker" tt:begin="00:00:41:18" tt:end="00:00:49:13">- Brother... - Sister.. </tt:p>
          <tt:p tt:region="speaker" tt:begin="00:00:49:18" tt:end="00:00:51:23">Stop it What's your problem now? </tt:p>
          <tt:p tt:region="speaker" tt:begin="00:00:52:26" tt:end="00:00:55:28">- My husband has gone to Singapore. - How are you dear? </tt:p>
          <tt:p tt:region="speaker" tt:begin="00:00:56:24" tt:end="00:00:59:13">So, you have come here to say for a month. </tt:p>
          <tt:p tt:region="speaker" tt:begin="00:00:59:23" tt:end="00:01:02:23">ls he going to Singapore &amp; Malaysia to sell tooth powder? </tt:p>
          <tt:p tt:region="speaker" tt:begin="00:01:03:01" tt:end="00:01:04:13">Won't you inquire him? </tt:p>
          <tt:p tt:region="speaker" tt:begin="00:01:04:26" tt:end="00:01:06:13">lt's a business visit </tt:p>
          <tt:p tt:region="speaker" tt:begin="00:01:06:21" tt:end="00:01:09:03">Wives always support husbands. Go inside. </tt:p>
          <tt:p tt:region="speaker" tt:begin="00:01:09:21" tt:end="00:01:12:28">- Pay Rs. 200 to the auto man. - Okay right </tt:p>
          <tt:p tt:region="speaker" tt:begin="00:01:13:13" tt:end="00:01:14:18">- All the best - Thank you. </tt:p>
          <tt:p tt:region="speaker" tt:begin="00:01:14:26" tt:end="00:01:16:01">All the best </tt:p>
        </tt:div>
      </tt:body>
    </tt>

    I would appriciate if someone help me to save my time.  I also wanted to know i still need to mention the caption file on the playListItem or it will take it from .ism/manifest


    Thanks,

    Sathis



  • Tommy5201

    Tommy5201

    Contributor

    4942 Points

    796 Posts

    Re: Closed caption issue with EE4 and SMF player

    Feb 24, 2011 06:50 AM | LINK

    What's it going now?  Have you ever seen this  http://smf.codeplex.com/wikipage?title=Create%20A%20Playlist%20With%20Captions&referringTitle=SMF%20v2%20%22How%20To%22%20Documentation

    I'm not fimilar with this.   But it should be a xml file.

    <?xml version="1.0" encoding="utf-8"?>
    <tt xml:lang="en-GB" xmlns="http://www.w3.org/2006/10/ttaf1">
      <head>
        <metadata>
          <ttm:title xmlns:ttm="http://www.w3.org/2006/10/ttaf1#metadata" />
          <ttm:desc xmlns:ttm="http://www.w3.org/2006/10/ttaf1#metadata" />
          <ttm:copyright xmlns:ttm="http://www.w3.org/2006/10/ttaf1#metadata" />
        </metadata>
        <styling>
          <style xml:id="backgroundStyle" p5:fontFamily="proportionalSansSerif" p5:fontSize="25%" p5:textAlign="center" p5:origin="10% 85%" p5:extent="80% 10%" p5:backgroundColor="rgba(0,0,0,100)" p5:displayAlign="center" xmlns:p5="http://www.w3.org/2006/10/ttaf1#styling" />
          <style xml:id="speakerStyle" p5:style="backgroundStyle" p6:color="white" p6:backgroundColor="transparent" xmlns:p6="http://www.w3.org/2006/10/ttaf1#styling" xmlns:p5="http://www.w3.org/2006/10/ttaf1" />
        </styling>
        <layout>
          <region p4:begin="00:00:00:00" p4:end="00:01:00:00" xmlns:p4="http://www.w3.org/2006/10/ttaf1" xml:id="speaker" p5:style="speakerStyle" p6:zIndex="1" xmlns:p6="http://www.w3.org/2006/10/ttaf1#styling" xmlns:p5="http://www.w3.org/2006/10/ttaf1" />
          <region p4:begin="00:00:00:00" p4:end="00:01:00:00" xmlns:p4="http://www.w3.org/2006/10/ttaf1" xml:id="background" p5:style="backgroundStyle" p6:zIndex="0" xmlns:p6="http://www.w3.org/2006/10/ttaf1#styling" xmlns:p5="http://www.w3.org/2006/10/ttaf1" />
        </layout>
      </head>
      <body>
        <div>
          <p p4:region="speaker" p4:begin="00:00:15:00" p4:end="00:00:17:28" xmlns:p4="http://www.w3.org/2006/10/ttaf1">At the left we can see... </p>
          <p p4:region="speaker" p4:begin="00:00:18:04" p4:end="00:00:20:02" xmlns:p4="http://www.w3.org/2006/10/ttaf1">At the right we can see the... </p>
          <p p4:region="speaker" p4:begin="00:00:20:03" p4:end="00:00:21:28" xmlns:p4="http://www.w3.org/2006/10/ttaf1">...the head-snarlers </p>
          <p p4:region="speaker" p4:begin="00:00:21:29" p4:end="00:00:24:11" xmlns:p4="http://www.w3.org/2006/10/ttaf1">Everything is safe. Perfectly safe. </p>
          <p p4:region="speaker" p4:begin="00:00:24:17" p4:end="00:00:27:01" xmlns:p4="http://www.w3.org/2006/10/ttaf1">Emo? </p>
          <p p4:region="speaker" p4:begin="00:00:28:06" p4:end="00:00:29:29" xmlns:p4="http://www.w3.org/2006/10/ttaf1">Watch out! </p>
          <p p4:region="speaker" p4:begin="00:00:47:01" p4:end="00:00:48:14" xmlns:p4="http://www.w3.org/2006/10/ttaf1">Are you hurt? </p>
          <p p4:region="speaker" p4:begin="00:00:51:29" p4:end="00:00:53:28" xmlns:p4="http://www.w3.org/2006/10/ttaf1">I don't think so. You? </p>
          <p p4:region="speaker" p4:begin="00:00:55:04" p4:end="00:00:56:29" xmlns:p4="http://www.w3.org/2006/10/ttaf1">I'm Ok. </p>
          <p p4:region="speaker" p4:begin="00:00:57:03" p4:end="00:01:00:00" xmlns:p4="http://www.w3.org/2006/10/ttaf1">Get up. Emo, it's not safe here. </p>
        </div>
      </body>
    </tt>

    <smf:SMFPlayer Margin="0" d:LayoutOverrides="Width, Height">
                <smf:SMFPlayer.Playlist>
                    <smf_media:PlaylistItem DeliveryMethod="AdaptiveStreaming" MediaSource="http://video3.smoothhd.com.edgesuite.net/ondemand/Big%20Buck%20Bunny%20Adaptive.ism/Manifest">
                        <smf_media:PlaylistItem.MarkerResource>
                            <smf_media:MarkerResource Source="examplecaptions.xml"/>
                        </smf_media:PlaylistItem.MarkerResource>
                    </smf_media:PlaylistItem>
                </smf:SMFPlayer.Playlist>
            </smf:SMFPlayer>


    http://smf.codeplex.com/wikipage?title=SMF%20v2%20%22How%20To%22%20Documentation&referringTitle=Documentation