2

I want to play video in pdf using latex. Following is my sample code. When I try to play it, just an empty screen comes and video is not played. My basic requirement is that it should display picture with play/pause and when I play it should play. I could not understand much from media9 package file. Please help

\documentclass{article}

\usepackage{media9}

\begin{document}

\includemedia[label=videofile, width=1.0\textwidth, addresource=srs.mp4,
flashvars={source=srs.mp4}]{\includegraphics[width=1.0\textwidth]
{views}}{VPlayer.swf} 

\end{document}
5
  • What viewer do you use to open the pdf?
    – Clément
    Commented Jul 12, 2014 at 20:57
  • I use Adobe reader
    – shivam
    Commented Jul 13, 2014 at 1:13
  • On Linux? If so, see tex.stackexchange.com/a/70931 . Otherwise there may be an issue with the video encoding of your file. Does cube.mp4 from the media9 package play?
    – AlexG
    Commented Jul 15, 2014 at 10:57
  • When i run srs.mp4 in pdf through latex audio comes but not video
    – shivam
    Commented Jul 16, 2014 at 9:35
  • Then it is a video encoding issue. Which tool did you use to produce the mp4? Try video.online-convert.com/convert-to-mp4 to re-encode the video file into a usable format.
    – AlexG
    Commented Jul 17, 2014 at 10:31

1 Answer 1

3

Flash support has discontinued from Dec 2020. Media9 no longer works as above. Fixes are in Media9 Alternatives

You must log in to answer this question.

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