Video Embedding in PDF (external viewer)

Asked by Christian Herenz

I like qpdfview a lot - but one feature that is missing is the functionality to launch an external application for embedded multimedia files, e.g. which were put into the pdf with latex beamer \movie[externalviewer]{...}{movie.mp4}.

Question information

Language:
English Edit question
Status:
Answered
For:
qpdfview Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Adam Reichold (adamreichold) said :
#1

Hello Christian,

if it's just about extracting some data stream into a temporary file and giving to the XDG integration which will launch the user's preferred application, I would be fine with it. But I'll have to investigate how Poppler's support for embedded media is handled exactly. Maybe I'll find some time for this on the weekend. You could help by linking to some example files which I could use to explore and test this.

Regards, Adam.

Revision history for this message
Adam Reichold (adamreichold) said :
#2

Hello again,

if am to implement this, I need a file or two prepared in this way. Could you upload them somewhere and link them or send them to me via mail?

Regards, Adam.

Revision history for this message
Christian Herenz (cherenz) said :
#3

Hello,

first I would like to point to the LaTeX Beamer User Guide (Sect. 14.1.1) which has
some information on how I prepare the PDF that contains the embedded
movie:
http://mirrors.ctan.org/macros/latex/contrib/beamer/doc/beameruserguide.pdf

Note that although it is called an "embedded movie" it actually
resides in an external file and is only linked to. The section also
contains some information on compatibility of playing the movie inside
the PDF viewer, however that is probably harder to implement and very
architecture dependent. So I actaually prefer the option
"externalviewer" in LaTeX Beamer.

I prepared an archive with a movie, a simple PDF file linking to that
movie and the TeX source from which pdflatex compiled the PDF - please
find it at:

http://ooo.aip.de/People/cherenz/movie_pres_example.tar.gz (21 MB)

Thanks for looking into this!

Best regards,
CH.

Revision history for this message
Adam Reichold (adamreichold) said :
#4

Hello again,

I implemented this by simply treating the execution link in the document as a link to any other URL (meaning the "open URL" settings need to be enabled which IMHO seems a sensible precaution) and resolving relative path w.r.t. the document file. I also created a wishlist bug to track further work on this feature. It is linked to a branch which should trigger the desired action. Please test and report your findings in the bug report.

Regards, Adam.

Revision history for this message
Arnaud Schmittbuhl (aschmittbuhl) said :
#5

Le Fri, 18 Oct 2013 13:26:17 -0000,
Adam Reichold <email address hidden> a écrit :

> Question #237323 on qpdfview changed:
> https://answers.launchpad.net/qpdfview/+question/237323
>
> Status: Open => Answered
>
> Adam Reichold proposed the following answer:
> Hello again,
>
> I implemented this by simply treating the execution link in the
> document as a link to any other URL (meaning the "open URL" settings
> need to be enabled which IMHO seems a sensible precaution) and
> resolving relative path w.r.t. the document file. I also created a
> wishlist bug to track further work on this feature. It is linked to a
> branch which should trigger the desired action. Please test and
> report your findings in the bug report.

Hi all,

I gave it a try.

It works with the (huge ;-) file provided by Christian but does not
work with some others.
For example, here
  http://pages.uoregon.edu/noeckel/PDFmovie.html
we can find some ways to include a movie in a pdf generated by latex.
This one can be opened with evince (I do not test anything else)
  http://pages.uoregon.edu/noeckel/computernotes/movieExample/movie.pdf
but fails with qpdfview.

bye,

--
Arnaud Schmittbuhl
Physique-Chimie MP

Revision history for this message
Adam Reichold (adamreichold) said :
#6

Hello Arnuad,

the file you linked to contains an movie embedded into the PDF file which is a different way of preparing it and supporting it would entail further work (as we need to extract the data somewhere before starting an external viewer). But I'll look into it after the search stuff...

Best regards, Adam.

Revision history for this message
Adam Reichold (adamreichold) said :
#7

I updated the branch so that it allows to store file attachments and hence will give you at least access to the embedded movie... But I feel this is a stop gap measure and the whole interactive elements stuff will need to be redone with annotations and attachments becoming widget-like objects...

Can you help with this problem?

Provide an answer of your own, or ask Christian Herenz for more information if necessary.

To post a message you must log in.