<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">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.<br>
        </font></font></p>
    <p><font size="-1"><font face="Helvetica, Arial, sans-serif">I
          followed the XEP User Guide, and so I insert an
          rx:media-object element in an fo:block for the video.</font></font></p>
    <p><font size="-1"><font face="Helvetica, Arial, sans-serif"><rx:media-object
          xmlns:rx=<a class="moz-txt-link-rfc2396E" href="http://www.renderx.com/XSL/Extensions">"http://www.renderx.com/XSL/Extensions"</a> embed="true"
          show-controls="true"
          src="url(<a class="moz-txt-link-freetext" href="file:///C:/xml/video_files/video2.mp4">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"/></font></font></p>
    <p><font size="-1"><font face="Helvetica, Arial, sans-serif">I also
          included the following pdf-version processing instruction at
          the top of the FO:</font></font></p>
    <p><font size="-1"><font face="Helvetica, Arial, sans-serif"><?xml
          version="1.0" encoding="utf-8"?><br>
          <?xep-pdf-pdf-version 1.5?><br>
          <fo:root xmlns:fo=<a class="moz-txt-link-rfc2396E" href="http://www.w3.org/1999/XSL/Format">"http://www.w3.org/1999/XSL/Format"</a> ...<br>
        </font></font></p>
    <p><font size="-1"><font face="Helvetica, Arial, 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).<br>
        </font></font></p>
    <p><font size="-1"><font face="Helvetica, Arial, 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:</font></font></p>
    <p><font size="-1"><font face="Helvetica, Arial, sans-serif">"The
          media requires an additional player.  Please click 'Get Media
          Player' to download the correct media player."</font></font></p>
    <p><font size="-1"><font face="Helvetica, Arial, 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:</font></font></p>
    <p><font size="-1"><font face="Helvetica, Arial, sans-serif">content-type="content:video/mp4"<br>
          content-type="video/mp4"<br>
          content-type="content:video/mpeg"<br>
        </font></font><font size="-1"><font face="Helvetica, Arial,
          sans-serif"><font size="-1"><font face="Helvetica, Arial,
              sans-serif">content-type="video/mpeg"<br>
            </font></font>content-type="content:auto"<br>
          content-type="auto"<br>
        </font></font></p>
    <p><font size="-1"><font face="Helvetica, Arial, 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 </font></font><font size="-1"><font face="Helvetica,
          Arial, sans-serif">Tools > Multimedia > Video Tool. 
          That inserts the video, displays the video controls, and
          allows me to successfully play the video in the reader.</font></font></p>
    <p><font size="-1"><font face="Helvetica, Arial, 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.</font></font><br>
    </p>
    <pre class="moz-signature" cols="72">-- 
Bob Stayton
Sagehill Enterprises
<a class="moz-txt-link-abbreviated" href="mailto:bobs@sagehill.net">bobs@sagehill.net</a></pre>
  </body>
</html>