LaTeX forum ⇒ LyXhow to insert a video clip in Lyx?

Information and discussion about LyX, a WYSIWYM editor, available for Linux, Windows and Mac OS X systems.
happyblueeyes
Posts: 11
Joined: Sun Jan 14, 2007 4:53 pm

how to insert a video clip in Lyx?

Postby happyblueeyes » Fri Feb 02, 2007 7:03 pm

Hi,
I tried to insert a video in a Lyx document by using the \href command as

\href{run:video.avi}{Movie}

but in the pdf file when I click the link the video does not play.
Anything I am missing?

Please advise.

Thanks in advance.

happyblueeyes
Posts: 11
Joined: Sun Jan 14, 2007 4:53 pm

Postby happyblueeyes » Fri Feb 02, 2007 8:18 pm

Hi,
I just wanted to add that I am using Lyx latest release in Windows 2000. I am unable to link to a video .avi file in the pdf generated using the beamer presentation class in Lyx.

The command I used was \href{vide.avi}{Movie} by inserting a Latex code in Lyx.

Hoping for a quick reply.
Thanks in advance.

happyblueeyes.

User avatar
Kris
Posts: 56
Joined: Sun Jan 14, 2007 4:04 pm

Postby Kris » Sat Feb 03, 2007 12:03 pm

Hi,

I can only guess, but do You have 'installed' the hyperref-package?

\usepackage{hyperref}

Actually, Your first code works for me:

\href{run:video.avi}{Movie}

By the way, do You have installed an AVI-Player on Your system?

A typical error message from Lyx would help...

Regards
Kris

happyblueeyes
Posts: 11
Joined: Sun Jan 14, 2007 4:53 pm

Postby happyblueeyes » Sat Feb 03, 2007 5:17 pm

Hi,
Thanks for the reply Kris!!

I am using the following Latex preamble in Lyx:

\mode<presentation> {
\setbeamertemplate{background canvas}[vertical shading][bottom=cyan!5,top=blue!5]

\usetheme{Darmstadt}
\usefonttheme[onlysmall]{structurebold}
}



%\usetheme{Darmstadt}
%\usecolortheme{lily}
\usepackage{graphicx}
%\usepackage{algorithm}
%\usepackage{algorithmic}
\usepackage{color,graphicx}
\usepackage{epsfig}
%\usepackage{geometry}
%\usepackage{trees}
%\usepackage{html}
\usepackage{amsmath}
\usepackage{amssymb}

\usepackage{hyperref}
%\usepackage{movie15}

\date{}
\setbeamertemplate{caption}[numbered]


I am using \usepackage{hyperref} and Lyx does not generate any error message. I can see the pdf output using pdfLatex command. However, in the pdf when I click on the link for the video, it does not open up.
I tried creating a link for the same video file in HA prosper and it works. I am able to open up the video file in Windows Media Player when I click on the link in the pdf output.

I am using Lyx version 1.4.3-5 on Windows 2000 and with MikTex2.4.

Hope I provided adequate information, is there a way out to link the video file?

Regards,

happyblueeyes
Posts: 11
Joined: Sun Jan 14, 2007 4:53 pm

Postby happyblueeyes » Sat Feb 03, 2007 5:32 pm

Hi,
I think I was a little silly to have not exported the pdf file that I used to generate after compiling the Lyx code. Now that I have exported the pdf file using File-->Export-->PDF(PDFLatex ), the pdf document can open up the video file that I linked to it.

Thanks for the reply Kris anyway,

Bye,
happyblueeyes.


Return to “LyX”

Who is online

Users browsing this forum: No registered users and 1 guest