> For the complete documentation index, see [llms.txt](https://ayakaleaf-pro.ayaka.space/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://ayakaleaf-pro.ayaka.space/latex/ja/to-2/14-how-can-i-embed-a-video-in-my-pdf-using-latex.md).

# LaTeX を使って PDF に動画を埋め込むにはどうすればよいですか？

以前は〜を通じて可能でした [`media9` パッケージ](https://ctan.org/pkg/media9?lang=en) しかし、Adobe が 2020 年末に Flash のサポートを終了したため、 **〜のバージョンは** [**`media9` パッケージ**](https://ctan.org/pkg/media9?lang=en) **Flash に依存するものはもはや使用すべきではありません** LaTeX 生成の PDF ファイルに動画やその他のマルチメディアコンテンツを埋め込むために、Overleaf で作成されたプロジェクトも含まれます。ただし、おそらくその `media9` パッケージ [は著者によって更新されるでしょう](https://gitlab.com/agrahn/media9) LaTeX 生成の PDF に動画を埋め込むために、Flash を使わない方法を使用するように。

## Flash 非依存の動画埋め込み: 概念実証

〜の著者は `media9` 〜を投稿しました [tex.stackexchange に概念実証の例を](https://tex.stackexchange.com/a/516102) Flash に依存しない手法を使って PDF に動画を埋め込む方法を示しています。そのコードを示す Overleaf プロジェクトは [こちら](https://www.overleaf.com/read/rcfqksxktygc)—なお、動画は Overleaf のプレビュー パネルでは再生されません。代わりに PDF をダウンロードし、Adobe Reader などの適切なビューアで開いてください。

## 2021 年 2 月時点の状況

Flash のサポート終了を受けて、PDF に埋め込まれた動画や音声の再生は、現在、ホスト OS に組み込まれている音声・動画再生ソフトウェアに依存しています。PDF に埋め込まれた動画の再生に関する Flash 後の技術状況はやや流動的で、特に一部の Windows 10 環境で動画再生に問題があるため、Windows 10 に依存しているユーザーにとってはそうです。Windows 10 向けの回避策は [2021 年 2 月 10 日に Adobe Support Community フォーラムに投稿されました](https://community.adobe.com/t5/acrobat-reader/playing-embedded-video-without-flash/td-p/11266205/page/2)—その日に投稿された Himanshu Sagar の投稿を探してください。

〜の著者は `media9` パッケージについて次のように述べています（[こちら](https://stackoverflow.com/a/64789038) と [こちら](https://tex.stackexchange.com/a/516102)）と、 *当面は*、ベストプラクティスとしては、動画ファイルを埋め込むのではなくリンクを提供することかもしれません。PDF から動画コンテンツへのリンクを提供することを選ぶユーザーは、それらの動画が PDF 文書を読むすべての人に利用できることを確認する必要があります。

PDF に埋め込まれた動画コンテンツの Flash 後の状況に関するさらなる議論は、たとえば `.mp4` ファイルについては、 [Adobe のオンライン フォーラムで見つけることができます](https://community.adobe.com/t5/acrobat-reader/playing-embedded-video-without-flash/td-p/11266205)。LaTeX ユーザー向けの詳細情報や議論は tex.stackexchange で見つかります:

* [Media9 は 2020 年 12 月で使われなくなりつつあります。LaTeX で動画/音声を埋め込む代替手段はありますか？](https://tex.stackexchange.com/questions/516029/media9-is-becoming-obsolete-dec-2020-any-alternatives-for-embedding-video-audio/)
* [Overleaf で 2020 年 12 月以降の media9 の代替手段](https://tex.stackexchange.com/questions/577986/alternatives-for-media9-after-dec-2020-in-overleaf)

## PDF における Flash: 簡単な背景と歴史

Adobe は 2005 年に Macromedia という会社を買収した際、Flash 技術を取得しました（ [ウィキペディア](https://en.wikipedia.org/wiki/Macromedia) または [こちら](https://www.adexchanger.com/data-driven-thinking/flash-in-the-pan-historical-lessons-of-adobes-macromedia-acquisition/) 歴史や概要について）。2008 年 6 月、Adobe は [IS0 32000 PDF 仕様の拡張](https://www.adobe.com/content/dam/acom/en/devnet/pdf/adobe_supplement_iso32000.pdf) これにより、PDF ファイルに埋め込まれた Flash ベースのコンテンツへの PDF の対応が導入され、動画、音声、Flash アニメーションを含むさまざまな形式の「リッチメディア」を PDF ファイルに含める便利な方法が提供されました。これらの PDF 仕様の拡張は、〜と時期を同じくしていました [Adobe Reader 9 のリリース](https://en.wikipedia.org/wiki/Adobe_Acrobat_version_history) これは、埋め込まれた Flash ベースの「リッチメディア」の表示と再生をサポートしていました。

Flash は、Web ページ内を含むリッチでインタラクティブなコンテンツの作成、埋め込み、共有に非常に人気のある技術でしたが、時間の経過とともに Flash へのサポートは減少し、新しいオープンな Web 技術や標準が登場して、技術の組み合わせにおける Flash の役割はいっそう弱まりました。ついに、その終わりが明確になったのは、2017 年 7 月 25 日に Adobe が [発表したときでした](https://blog.adobe.com/en/publish/2017/07/25/adobe-flash-update.html) 2020 年末に Flash のサポートを終了すると発表したためです。現在、Adobe の最新の PDF 製品は、Flash ベースのメディア形式の埋め込みや再生（表示）をもはやサポートしていません—`*.flv` と `*.swf` ファイル。参照も [Flash Player のサポート終了: Reader と Acrobat への影響](https://helpx.adobe.com/uk/acrobat/kb/flash-format-support-in-pdf.html).

技術的な観点からは、LaTeX パッケージや、出力 PDF ファイルに適切な演算子を挿入する独自のカスタムマクロを使って、PDF に Flash ベースのメディアを埋め込むことを妨げるものは何もありません—しかし、そのコンテンツは、現在および将来の世代の PDF 閲覧アプリケーションではサポートされず、そのため読者が利用できません。


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://ayakaleaf-pro.ayaka.space/latex/ja/to-2/14-how-can-i-embed-a-video-in-my-pdf-using-latex.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
