![movie15とDistillerを使って映画を埋め込む方法](https://rvso.com/image/335492/movie15%E3%81%A8Distiller%E3%82%92%E4%BD%BF%E3%81%A3%E3%81%A6%E6%98%A0%E7%94%BB%E3%82%92%E5%9F%8B%E3%82%81%E8%BE%BC%E3%82%80%E6%96%B9%E6%B3%95.png)
以下は、PDF に映画を埋め込む最小限の動作例です。
\documentclass{article}
\pdfoutput=0
\usepackage{graphicx}
\usepackage[british]{babel}
\usepackage[ps2pdf]{hyperref}
\usepackage{movie15}
\begin{document}
Test.
\begin{figure}[ht]
\includemovie[playerid=AAPL_QuickTime,autoplay,controls,repeat,%
text={Anything here}]{10cm}{10cm}%
{/Users/christoph/Desktop/BLF/Films/Ultrafast-camera.mov}
\end{figure}
\end{document}
dvi - ps - Distiller ルートでは動作しません。latex でコンパイルされ、ps が生成されますが、Distiller は次のように言います:
Distilling: minworkex.ps
%%[ Error: undefinedfilename; OffendingCommand: file ]%%
Stack:
(r)
(/Users/christoph/Desktop/BLF/Films/Ultrafast-camera.mov)
{fstream1}
-mark-
%%[ Flushing: rest of job (to end-of-file) will be ignored ]%%
%%[ Warning: PostScript error. No PDF file produced. ] %%
Distill Time: 0 seconds (00:00:00)
**** End of Job ****
明らかな間違いがないことを示すために、ファイル名を相対パスに変更し、Distiller の代わりに ps2pdf を使用すると、pdf が正しく生成されることを付け加えておきます。
ご協力いただければ幸いです。次版では Distiller を使用して無料でダウンロードできる教科書を作成したいと考えています。
PS movie15 が廃止されていることは承知していますが、当面は、Tex ソース内の数十本の映画の多くの種類のコードを変更するのは難しいようです。
答え1
Postscript でのファイル読み取りおよび書き込みコマンドは、現在の Ghostscript および Distiller バージョンでは「安全ではない」とみなされ、PS から PDF への変換中にエラーが発生します。このデフォルトの動作は、これらのプログラムを実行するときに特定のコマンドライン オプションを使用して上書きできます。
acrodist /F ...
ps2pdf -dNOSAFER ...
http://www.adobe.com/content/dam/Adobe/en/devnet/acrobat/pdfs/Distiller9APIReference.pdf#G4.1503951