7

Lyx で作成されたプレゼンテーションにビデオ クリップを挿入するにはどうすればよいですか?

http://www.latex-community.org/forum/viewtopic.php?f=19&t=48を見たことがあります。動作しますが、外部プレーヤーのバックグラウンドでビデオが開始されます。

プレゼンテーション自体で再生することをお勧めします。外部プレーヤーを使用する場合は、少なくともフォアグラウンドで開始する必要があります。しかし、プレゼンテーションは前景になります。GNU/linux で evince を PDF ビューアとして使用します。Beamer はプレゼンテーション テンプレートとして使用されます。

プレゼンテーション自体に埋め込まれたプレーヤーでビデオ ファイルを再生することはできますか?

例のプレゼンテーションを作成しました。コードは以下にあります。

\documentclass[english]{beamer}
\usepackage{mathptmx}
\usepackage[T1]{fontenc}
\usepackage[latin9]{inputenc}
\usepackage{amsmath}
\usepackage{amssymb}

\makeatletter
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Textclass specific LaTeX commands.
 % this default might be overridden by plain title style
 \newcommand\makebeamertitle{\frame{\maketitle}}%
 \AtBeginDocument{
   \let\origtableofcontents=\tableofcontents
   \def\tableofcontents{\@ifnextchar[{\origtableofcontents}{\gobbletableofcontents}}
   \def\gobbletableofcontents#1{\origtableofcontents}
 }
 \makeatletter
 \long\def\lyxframe#1{\@lyxframe#1\@lyxframestop}%
 \def\@lyxframe{\@ifnextchar<{\@@lyxframe}{\@@lyxframe<*>}}%
 \def\@@lyxframe<#1>{\@ifnextchar[{\@@@lyxframe<#1>}{\@@@lyxframe<#1>[]}}
 \def\@@@lyxframe<#1>[{\@ifnextchar<{\@@@@@lyxframe<#1>[}{\@@@@lyxframe<#1>[<*>][}}
 \def\@@@@@lyxframe<#1>[#2]{\@ifnextchar[{\@@@@lyxframe<#1>[#2]}{\@@@@lyxframe<#1>[#2][]}}
 \long\def\@@@@lyxframe<#1>[#2][#3]#4\@lyxframestop#5\lyxframeend{%
   \frame<#1>[#2][#3]{\frametitle{#4}#5}}
 \makeatother
 \def\lyxframeend{} % In case there is a superfluous frame end

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% User specified LaTeX commands.
\usetheme{Warsaw}
\usepackage{hyperref}

\makeatother

\usepackage{babel}

\begin{document}

\title{Testing video}

\makebeamertitle

\lyxframeend{}\section{Testing video}


\lyxframeend{}\subsection{Testing video}


\lyxframeend{}\lyxframe{Testing video}

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

\appendix

\lyxframeend{}
\end{document}
4

3 に答える 3

5

あなたが求めていることは、(今では、おそらく以前ではなかったのでしょうか?) ビューアーとして Okular を使用することで可能になったようです。LaTeX プリアンブルに必ず含めてください\usepackage{multimedia}。その後、ERT に追加できます。

\movie[
height = 0.6 \textwidth, 
width = 1.0 \textwidth,
showcontrols
] 
{} {movie.mp4}

これは私のシステムでは機能しますが、\movieコマンドのほとんどのオプション (ポスター、自動開始など) は機能しません。再起動されます。とはいえ、これまで Linux にムービーを埋め込む方法を知らなかったので、これが始まりです。

記録のために、私は Ubuntu 10.10 と Okular 0.11.2 を持っています。私はかなり新しい LyX 2.0.0 も使用していますが、LyX のバージョンは問題ではないと思います。

役立つリンク:

于 2011-06-13T19:20:00.437 に答える
1

非常に非専門的な方法は、HTML5 メソッドを使用することです。ドキュメントをブラウザ ベースのプレゼンテーションに変換します。多分inkscapeを使うか、手動で変換してからビデオタグを追加してください

于 2011-05-10T07:43:03.960 に答える
1

How to insert video clips into PDF produced with LaTex, see: http://www.uoregon.edu/~noeckel/PDFmovie.html (using movie15 package).

Unfortunately, you can insert, but you cannot play that video on Linux (evince & okular don't support it, acroread plays it only if you have installed realplayer and are really lucky). Such video-in-a-PDF is playable on Windows.

You can produce cross-platform animations in PDF (not video) by using animate package and tikz/pgf. They play both in Linux and Windows acroread (if JavaScript is enabled) (but not in evince nor okular).

Otherwise you can create presentations with OpenOffice Impress or S5, both allow to embed videos easily, and both play well on Linux. For PDF putting a hyperlink, like you do, seems to be the most reliable way.

于 2010-04-12T13:59:21.887 に答える