> For the complete documentation index, see [llms.txt](https://overleaf-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://overleaf-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に組み込まれている音声・動画再生ソフトウェアに依存しています。Flash後の直後の、PDFに埋め込まれた動画の再生をめぐる技術状況はやや流動的で、特に一部の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技術を取得しました（ [Wikipedia](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は [ISO 32000 PDF仕様の拡張](https://www.adobe.com/content/dam/acom/en/devnet/pdf/adobe_supplement_iso32000.pdf) を公開し、PDFファイル内に埋め込まれたFlashベースのコンテンツに対するPDFのサポートを導入しました。これにより、PDFファイルに動画、音声、Flashアニメーションを含むさまざまな形式の「リッチメディア」を収める便利な方法が提供されました。これらのPDF仕様拡張は、 [Adobe Reader 9のリリースと時期を同じくしていました](https://en.wikipedia.org/wiki/Adobe_Acrobat_version_history) 。Adobe Reader 9は、埋め込まれた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ファイルに適切な演算子を挿入する独自のマクロを通じて、FlashベースのメディアをPDFに埋め込むことを妨げるものは何もありません—しかし、そのコンテンツは現在および将来の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://overleaf-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.
