<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body>
    <p><font size="-1"><font face="Helvetica, Arial, sans-serif">Hi
          Kevin,</font></font></p>
    <p><font size="-1"><font face="Helvetica, Arial, sans-serif">You
          have been very helpful, as always.  My client decided to
          follow your advice and use the attachment feature.</font></font></p>
    <p><font size="-1"><font face="Helvetica, Arial, sans-serif">Thanks.</font></font><br>
    </p>
    <pre class="moz-signature" cols="72">Bob Stayton
<a class="moz-txt-link-abbreviated" href="mailto:bobs@sagehill.net">bobs@sagehill.net</a></pre>
    <div class="moz-cite-prefix">On 5/21/2020 12:43 PM,
      <a class="moz-txt-link-abbreviated" href="mailto:kevin@renderx.com">kevin@renderx.com</a> wrote:<br>
    </div>
    <blockquote type="cite"
      cite="mid:014001d62fa8$164aa450$42dfecf0$@renderx.com">
      <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
      <meta name="Generator" content="Microsoft Word 15 (filtered
        medium)">
      <style><!--
/* Font Definitions */
@font-face
        {font-family:Helvetica;
        panose-1:2 11 6 4 2 2 2 2 2 4;}
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Consolas;
        panose-1:2 11 6 9 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
pre
        {mso-style-priority:99;
        mso-style-link:"HTML Preformatted Char";
        margin:0in;
        margin-bottom:.0001pt;
        font-size:10.0pt;
        font-family:"Courier New";}
span.HTMLPreformattedChar
        {mso-style-name:"HTML Preformatted Char";
        mso-style-priority:99;
        mso-style-link:"HTML Preformatted";
        font-family:Consolas;}
span.EmailStyle24
        {mso-style-type:personal-compose;
        font-family:"Calibri",sans-serif;
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
        {page:WordSection1;}
--></style>
      <div class="WordSection1">
        <p class="MsoNormal">It could be that when you run Adobe
          Acrobat, you are inserting a video that gets converted in some
          way … like it is played using Flash player.<o:p></o:p></p>
        <p class="MsoNormal">Are you on iOS by any chance?<o:p></o:p></p>
        <p class="MsoNormal">I will note that I did not click any video
          insert tool, I merely ran acrobat and dragged the video into
          the edit area which launched a wizard (possibly the same one).<o:p></o:p></p>
        <p class="MsoNormal"><o:p> </o:p></p>
        <p class="MsoNormal">The proper mimetype is “video/mp4”.<o:p></o:p></p>
        <p class="MsoNormal">The reason I suspect the video is converted
          is that if you get then a message stating that you need a
          plug-in to play the RenderX one, that is suspect.<o:p></o:p></p>
        <p class="MsoNormal">Can you play the video raw?<o:p></o:p></p>
        <p class="MsoNormal">I replicated this in my setup below by
          testing an alternate video that actually was mp2 and I got a
          Windows Store message to download and install the codec to
          support mp2.<o:p></o:p></p>
        <p class="MsoNormal">I then tried to play the video and I got
          the same message as the built-in Windows media player is my
          default player.<o:p></o:p></p>
        <p class="MsoNormal"><o:p> </o:p></p>
        <p class="MsoNormal">So, it is all unclear to me as much of the
          multi-media stuff and not much used in PDF.<o:p></o:p></p>
        <p class="MsoNormal">But file attachments as I suggested are
          widely used, even now we have customized solutions where the
          XML to generate the PDF is injected into the PDF.<o:p></o:p></p>
        <p class="MsoNormal"><o:p> </o:p></p>
        <p class="MsoNormal">Kevin<o:p></o:p></p>
        <p class="MsoNormal"><o:p> </o:p></p>
        <p class="MsoNormal"><o:p> </o:p></p>
        <p class="MsoNormal"><o:p> </o:p></p>
        <div>
          <div style="border:none;border-top:solid #E1E1E1
            1.0pt;padding:3.0pt 0in 0in 0in">
            <p class="MsoNormal"><b>From:</b> Xep-support
              <a class="moz-txt-link-rfc2396E" href="mailto:xep-support-bounces@renderx.com"><xep-support-bounces@renderx.com></a> <b>On Behalf Of </b><a class="moz-txt-link-abbreviated" href="mailto:kevin@renderx.com">kevin@renderx.com</a><br>
              <b>Sent:</b> Thursday, May 21, 2020 12:25 PM<br>
              <b>To:</b> 'RenderX Community Support List'
              <a class="moz-txt-link-rfc2396E" href="mailto:xep-support@renderx.com"><xep-support@renderx.com></a><br>
              <b>Subject:</b> [xep-support] Re: how to embed an mp4
              video in PDF?<o:p></o:p></p>
          </div>
        </div>
        <p class="MsoNormal"><o:p> </o:p></p>
        <p class="MsoNormal">So, I went through many things here and I
          do not believe this is a “RenderX” issue, I believe this is
          some Adobe settings issue.<o:p></o:p></p>
        <p class="MsoNormal"><o:p> </o:p></p>
        <p class="MsoNormal">To test I created one PDF with RenderX and
          one using Adobe Acrobat using the exact same video.<o:p></o:p></p>
        <p class="MsoNormal">At first, I could not get anything to play
          at all … Adobe would open and when the video was selected to
          play, Adobe would just crash.<o:p></o:p></p>
        <p class="MsoNormal">This happens for both the RenderX one and
          Adobe’s own one.<o:p></o:p></p>
        <p class="MsoNormal">I then changed some settings in Acrobat to
          enable protected mode at startup (which is in Security
          Enhanced) and then both would play but Audio only.<o:p></o:p></p>
        <p class="MsoNormal">The important point here is that both
          behave exactly the same.<o:p></o:p></p>
        <p class="MsoNormal">There is nothing in RenderX that is in the
          pure Adobe solution and it yields the exact same result for
          me.<o:p></o:p></p>
        <p class="MsoNormal"><o:p> </o:p></p>
        <p class="MsoNormal">Now, no video but audio is strange as it
          could be I am missing some codec to display the video on my
          machine … but I do not think so.<o:p></o:p></p>
        <p class="MsoNormal">I converted the MP4 to a few other formats
          and went through this exact process and got the exact same
          result.<o:p></o:p></p>
        <p class="MsoNormal">No video, just audio.<o:p></o:p></p>
        <p class="MsoNormal">I can also double click the video and it
          plays in my media player without issue.<o:p></o:p></p>
        <p class="MsoNormal"><o:p> </o:p></p>
        <p class="MsoNormal">So, might I suggest using file annotations
          as I would think that is actually a better way to do it
          anyway. Then the recipient can view the video in their own
          way, whatever is the default player on their machine.<o:p></o:p></p>
        <p class="MsoNormal"><o:p> </o:p></p>
        <p class="MsoNormal"
          style="background:white;text-autospace:none"><span
            style="color:black">To do this, one could do like this:<br>
            <br>
          </span><span style="font-size:12.0pt;font-family:"Times
            New
            Roman",serif;color:#000096;background:white;mso-highlight:white"><rx:pdf-comment</span><span
            style="font-size:12.0pt;font-family:"Times New
            Roman",serif;color:#F5844C;background:white;mso-highlight:white">
            title</span><span
            style="font-size:12.0pt;font-family:"Times New
            Roman",serif;color:#FF8040;background:white;mso-highlight:white">=</span><span
            style="font-size:12.0pt;font-family:"Times New
            Roman",serif;color:#993300;background:white;mso-highlight:white">"Video
            Attachement"</span><span
            style="font-size:12.0pt;font-family:"Times New
            Roman",serif;color:#F5844C;background:white;mso-highlight:white">
            content</span><span
            style="font-size:12.0pt;font-family:"Times New
            Roman",serif;color:#FF8040;background:white;mso-highlight:white">=</span><span
            style="font-size:12.0pt;font-family:"Times New
            Roman",serif;color:#993300;background:white;mso-highlight:white">"A
            video"</span><span
            style="font-size:12.0pt;font-family:"Times New
            Roman",serif;color:#000096;background:white;mso-highlight:white">></span><span
            style="font-size:12.0pt;font-family:"Times New
            Roman",serif;color:black;background:white;mso-highlight:white"><br>
                        </span><span
            style="font-size:12.0pt;font-family:"Times New
            Roman",serif;color:#000096;background:white;mso-highlight:white"><rx:pdf-file-attachment</span><span
            style="font-size:12.0pt;font-family:"Times New
            Roman",serif;color:#F5844C;background:white;mso-highlight:white">
            src</span><span
            style="font-size:12.0pt;font-family:"Times New
            Roman",serif;color:#FF8040;background:white;mso-highlight:white">=</span><span
            style="font-size:12.0pt;font-family:"Times New
            Roman",serif;color:#993300;background:white;mso-highlight:white">"url('SampleVideo_1280x720_1mb.mp4')"</span><span
            style="font-size:12.0pt;font-family:"Times New
            Roman",serif;color:black;background:white;mso-highlight:white"><br>
          </span><span style="font-size:12.0pt;font-family:"Times
            New
            Roman",serif;color:#F5844C;background:white;mso-highlight:white">           
            filename</span><span
            style="font-size:12.0pt;font-family:"Times New
            Roman",serif;color:#FF8040;background:white;mso-highlight:white">=</span><span
            style="font-size:12.0pt;font-family:"Times New
            Roman",serif;color:#993300;background:white;mso-highlight:white">"SampleVideo.mp4"</span><span
            style="font-size:12.0pt;font-family:"Times New
            Roman",serif;color:black;background:white;mso-highlight:white"><br>
          </span><span style="font-size:12.0pt;font-family:"Times
            New
            Roman",serif;color:#F5844C;background:white;mso-highlight:white">           
            icon-type</span><span
            style="font-size:12.0pt;font-family:"Times New
            Roman",serif;color:#FF8040;background:white;mso-highlight:white">=</span><span
            style="font-size:12.0pt;font-family:"Times New
            Roman",serif;color:#993300;background:white;mso-highlight:white">"paperclip"</span><span
            style="font-size:12.0pt;font-family:"Times New
            Roman",serif;color:#000096;background:white;mso-highlight:white">/></span><span
            style="font-size:12.0pt;font-family:"Times New
            Roman",serif;color:black;background:white;mso-highlight:white"><br>
          </span><span style="font-size:12.0pt;font-family:"Times
            New
            Roman",serif;color:#000096;background:white;mso-highlight:white"></rx:pdf-comment></span><span
            style="font-size:12.0pt;font-family:"Times New
            Roman",serif;background:white;mso-highlight:white"><o:p></o:p></span></p>
        <p class="MsoNormal"><br>
          This would attach the video inside the PDF and double-clicking
          the icon will launch an external viewer appropriate for the
          filename extension.<o:p></o:p></p>
        <p class="MsoNormal">You can use the same method to embed Word,
          Excel … just about any filetype you wish.<o:p></o:p></p>
        <p class="MsoNormal">You can also expose the “Attachments” bar
          in Adobe Reader to see the attachment and launch from there.<o:p></o:p></p>
        <p class="MsoNormal"><o:p> </o:p></p>
        <p class="MsoNormal">Kevin Brown<o:p></o:p></p>
        <p class="MsoNormal" style="margin-bottom:12.0pt">RenderX<o:p></o:p></p>
        <p class="MsoNormal"><o:p> </o:p></p>
        <div>
          <div style="border:none;border-top:solid #E1E1E1
            1.0pt;padding:3.0pt 0in 0in 0in">
            <p class="MsoNormal"><b>From:</b> Xep-support <<a
                href="mailto:xep-support-bounces@renderx.com"
                moz-do-not-send="true">xep-support-bounces@renderx.com</a>>
              <b>On Behalf Of </b>Bob Stayton<br>
              <b>Sent:</b> Thursday, May 14, 2020 3:21 PM<br>
              <b>To:</b> RenderX Community Support List <<a
                href="mailto:xep-support@renderx.com"
                moz-do-not-send="true">xep-support@renderx.com</a>><br>
              <b>Subject:</b> [xep-support] how to embed an mp4 video in
              PDF?<o:p></o:p></p>
          </div>
        </div>
        <p class="MsoNormal"><o:p> </o:p></p>
        <p><span
            style="font-size:10.0pt;font-family:"Helvetica",sans-serif">I
            have a client who wants to embed an MP4 video into the PDF
            generated by DocBook and XEP, but I'm not having much luck.</span><o:p></o:p></p>
        <p><span
            style="font-size:10.0pt;font-family:"Helvetica",sans-serif">I
            followed the XEP User Guide, and so I insert an
            rx:media-object element in an fo:block for the video.</span><o:p></o:p></p>
        <p><span
            style="font-size:10.0pt;font-family:"Helvetica",sans-serif"><rx:media-object
            xmlns:rx=<a href="http://www.renderx.com/XSL/Extensions"
              moz-do-not-send="true">"http://www.renderx.com/XSL/Extensions"</a>
            embed="true" show-controls="true" src="url(<a
              href="file:///C:/xml/video_files/video2.mp4"
              moz-do-not-send="true">file:///C:/xml/video_files/video2.mp4</a>)"
            width="100%" height="auto" content-width="scale-to-fit"
            content-height="scale-to-fit" content-type="auto"/></span><o:p></o:p></p>
        <p><span
            style="font-size:10.0pt;font-family:"Helvetica",sans-serif">I
            also included the following pdf-version processing
            instruction at the top of the FO:</span><o:p></o:p></p>
        <p><span
            style="font-size:10.0pt;font-family:"Helvetica",sans-serif"><?xml
            version="1.0" encoding="utf-8"?><br>
            <?xep-pdf-pdf-version 1.5?><br>
            <fo:root xmlns:fo=<a
              href="http://www.w3.org/1999/XSL/Format"
              moz-do-not-send="true">"http://www.w3.org/1999/XSL/Format"</a>
            ...</span><o:p></o:p></p>
        <p><span
            style="font-size:10.0pt;font-family:"Helvetica",sans-serif">When
            I process the .fo file with XEP 4.24, it seems the video is
            included in the generated PDF file, because the XEP process
            does not report an error, and the file size indicates the
            video is included (very large file).</span><o:p></o:p></p>
        <p><span
            style="font-size:10.0pt;font-family:"Helvetica",sans-serif">But
            the presentation of the video in the PDF is useless.  I just
            get a Play button that looks like an arrow inside an
            ellipse.  When I press the Play button in Adobe Acrobat Pro
            9, I get a "Multimedia Player Finder" popup that says:</span><o:p></o:p></p>
        <p><span
            style="font-size:10.0pt;font-family:"Helvetica",sans-serif">"The
            media requires an additional player.  Please click 'Get
            Media Player' to download the correct media player."</span><o:p></o:p></p>
        <p><span
            style="font-size:10.0pt;font-family:"Helvetica",sans-serif">I
            thought the issue might be the content-type attribute, but
            every variation I try results in the same display.  Here is
            what I tried:</span><o:p></o:p></p>
        <p><span
            style="font-size:10.0pt;font-family:"Helvetica",sans-serif">content-type="content:video/mp4"<br>
            content-type="video/mp4"<br>
            content-type="content:video/mpeg"<br>
            content-type="video/mpeg"<br>
            content-type="content:auto"<br>
            content-type="auto"</span><o:p></o:p></p>
        <p><span
            style="font-size:10.0pt;font-family:"Helvetica",sans-serif">I
            can demonstrate that Acrobat Pro 9 supports mp4 videos by
            manually inserting the video into the same PDF file using
            the menu items Tools > Multimedia > Video Tool.  That
            inserts the video, displays the video controls, and allows
            me to successfully play the video in the reader.</span><o:p></o:p></p>
        <p><span
            style="font-size:10.0pt;font-family:"Helvetica",sans-serif">So
            I want XEP to be able to embed the video the way Acrobat Pro
            9 does.  I think I'm missing some crucial detail.</span><o:p></o:p></p>
        <pre>-- <o:p></o:p></pre>
        <pre>Bob Stayton<o:p></o:p></pre>
        <pre>Sagehill Enterprises<o:p></o:p></pre>
        <pre><a href="mailto:bobs@sagehill.net" moz-do-not-send="true">bobs@sagehill.net</a><o:p></o:p></pre>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <pre class="moz-quote-pre" wrap="">_______________________________________________
(*) To unsubscribe, please visit <a class="moz-txt-link-freetext" href="http://lists.renderx.com/mailman/options/xep-support">http://lists.renderx.com/mailman/options/xep-support</a>
(*) By using the Service, you expressly agree to these Terms of Service <a class="moz-txt-link-freetext" href="http://w">http://w</a>
ww.renderx.com/terms-of-service.html</pre>
    </blockquote>
  </body>
</html>