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.
Post Reply
happyblueeyes
Posts: 11
Joined: Sun Jan 14, 2007 4:53 pm

how to insert a video clip in Lyx?

Post by happyblueeyes »

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.

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org
LaTeX books
happyblueeyes
Posts: 11
Joined: Sun Jan 14, 2007 4:53 pm

Re: how to insert a video clip in Lyx?

Post by happyblueeyes »

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

how to insert a video clip in Lyx?

Post by Kris »

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
Last edited by Kris on Sat Feb 03, 2007 12:03 pm, edited 1 time in total.
happyblueeyes
Posts: 11
Joined: Sun Jan 14, 2007 4:53 pm

Re: how to insert a video clip in Lyx?

Post by happyblueeyes »

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

Re: how to insert a video clip in Lyx?

Post by happyblueeyes »

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.
Post Reply