用Latex嵌入pdf的视频无法正常播放 [英] Video embedded into pdf with Latex does not play correctly

查看:120
本文介绍了用Latex嵌入pdf的视频无法正常播放的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想使用.

激活后,pdf看起来像

media9中的视频文件也是如此文档以及嵌入其他pdf文件中的视频.在 media9 文档中找到的其他多媒体文件,例如音频文件和3D对象,都可以正常工作.

我的pdf阅读器是 Adob​​e Acrobat Reader DC(20.012.20048),我将Internet浏览器Mozilla Firefox的Shockwave Flash插件更新为 Shockwave Flash 32.0 r0 ,media9文档在其要求中提到了Firefox的 Adob​​e Flash Player 插件(第2章).

出现黑色窗口而无法显示视频的原因是什么?

PS:如果其他任何Latex软件包都能很好地处理pdf文件中的视频(即使已过时,例如 movie15 multimedia ),这对我来说也是一种替代选择.

解决方案

Adob​​e将于2020年底停止对Flash的支持.

在过去(不久的将来)的某个地方,您可能已经确定可以停止在Acrobat Reader中使用Flash.您想在播放嵌入式视频时在弹出窗口中询问您.从该决定开始,或者从1/1/2021起,最新的视频和音频播放将取决于您操作系统的媒体插件,在大多数情况下,该插件很不稳定.另外,将不再有任何可用的播放器配置方式,例如循环",控制",自动播放".等

如乔尔·格拉西(Joel Geraci)所说media9 package. There are no error messages during compilation. Before activating the video in the pdf, there is a still image (as intended), but after activation, there is just a black window, without the video being played properly.

A minimal example to illustrate is given below. It is a shortened version of an Overleaf template for embedding mp4 files into pdf documents with Latex. I have attached the still image penguins.jpg to this question, but I cannot (or don't know how to) attach the video penguinschasingbutterfly.mp4 in stackoverflow.

\documentclass[12pt,a4paper]{article}

\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{parskip}
\usepackage{graphicx}
\usepackage{media9}

\begin{document}

This is an .mp4 file:

% using a .mp4; downloaded from https://www.youtube.com/watch?v=-9iXD2-hbJM
\includemedia[width=0.6\linewidth,height=0.6\linewidth,activate=pageopen,
passcontext,
transparent,
addresource=penguinschasingbutterfly.mp4,
flashvars={source=penguinschasingbutterfly.mp4}
]{\includegraphics[width=0.6\linewidth]{penguins}}{VPlayer.swf}

\end{document}

Before activation the pdf looks like

.

After activation the pdf looks like

The same happens also with the video files in the media9 documentation and videos embedded in other pdfs. Other multimedia files found in the media9 documentation, such as audio files and 3D objects, do work as intended.

My pdf reader is Adobe Acrobat Reader DC (20.012.20048) and I updated the Shockwave Flash plugin for my internet browser Mozilla Firefox to Shockwave Flash 32.0 r0, as the media9 documentation mentions the Adobe Flash Player plugin for Firefox among its requirements (Chapter 2).

What could be the reason for the black windows showing up and the videos not being displayed?

P.S.: If any other Latex package works well for videos within pdf files (even if outdated, like movie15 or multimedia), this would be an alternative for me.

解决方案

Adobe stops Flash support by the end of 2020.

Once, somewhere in the (not so far) past, you may have given your OK to stop using Flash anymore in Acrobat Reader. You were asked this in a pop-up window while you wanted to play an embedded video. From that decision on, or from 1/1/2021 the latest, video and audio playback will depend on the media plugin of your OS, which is flaky in most cases. Plus, there won't be any means of player configuration available anymore, such as "loop", "controls", "autoplay" etc.

As Joel Geraci puts it in one of his answers in the Acrobat support forum, now, best-practice is linking videos instead of embedding them.

I am sorry for this regression :(.

Disclaimer: I am the author of the media9 LaTeX package.

这篇关于用Latex嵌入pdf的视频无法正常播放的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆