5

Is there a bug in the media9 package that causes H-264 mp4 files to embed properly and play properly on a computer, but not an iPhone? I embedded the exact same mp4 video file in Acrobat X Pro (Mac OS 10.6.8) using the video tool under Multimedia, in which case the video played perfectly in Acrobat X Pro and ezPDF Reader on the iPhone. However, when I embedded the exact same video file via media9 (testing both VPlayer.swf and StrobeMediaPlayback.swf), the file played in Acrobat, but showed up as a blank media folder icon in ezPDF Reader. Clicking on that folder threw up an error message of

Media playback failure. Can not play format.

My LaTeX2e distribution is MacTeX 2012. I am using the LaTeX engine in TeXShop.

1
  • Interesting. I assumed Flash based video playback with Acrobat-9/X compatibility wouldn't work at all on an iPhone. Could you please send me or upload somewhere a minimal Acrobat-X generated example. (Use the mail address in the media9 documentation.)
    – AlexG
    Commented Aug 6, 2012 at 7:15

1 Answer 1

6

MP4/h.264 video and MP3 sound files embedded with media9 version 0.11 are played back in ezPDF Reader on tablets and phones with Android or iOS, yet without using the Flash-based players (StrobeMediaPlayback.swf, VPlayer.swf, APlayer.swf) embedded along with the media file. ezPDF uses its own, built-in player because it doesn't support Flash.

In order to make video and sound files work in ezPDF Reader, they must be embedded without a path component in the file name. If media files reside in another directory than the current one \addmediapath should be used.

Update: Another requirement seems to be the omission of the playbuton overlay.

\addmediapath{path/to/media/files}
...
\includemedia[
  width=0.4\linewidth,height=0.3\linewidth,
  activate=pageopen,
  addresource=random.mp4,
  playbutton=none,
  flashvars={src=random.mp4}
]{}{StrobeMediaPlayback.swf}
11
  • This seems to be true also for playback in Acrobat itself, when I tried to add a path to the resource. The movie was able to play only in the machine I compiled (presumably it looked for the referred file in the filesystem rather than the embedded one.
    – alfC
    Commented Apr 22, 2014 at 9:49
  • I don't think so. I tested with a typical unix path /home/... and it played well on a Windows PC.
    – AlexG
    Commented Apr 22, 2014 at 9:56
  • As we speak, I am trying with Linux (to compile) and Mac (to play) and it only works if I have the movie in the same path as the document (that is, I can include it without the full path). If I try to have the movie in some other location it doesn't play in the Mac. Not sure if I am missing something.
    – alfC
    Commented Apr 22, 2014 at 9:58
  • This amazes me, since the FlashPlayer plugin used by AR isn't allowed to access the local disk for file resources. On the Windows PC I use for viewing, the absolute linux path written into the PDF is definitely not valid.
    – AlexG
    Commented Apr 22, 2014 at 10:06
  • 1
    @alfC As for embedded file attachments, I am working on it.
    – AlexG
    Commented Apr 23, 2014 at 7:41

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .