summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/source/latex/media9/media9.tex
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2017-08-25 22:24:59 +0000
committerKarl Berry <karl@freefriends.org>2017-08-25 22:24:59 +0000
commit0a4c81ff64276411d2a8308cbb0716621103237a (patch)
tree90e240000e67f0c6d097bf2de156703856929c2c /Master/texmf-dist/source/latex/media9/media9.tex
parent75d9f8c2748d75e4c38f97595b12907889c07f88 (diff)
media9 (25aug17)
git-svn-id: svn://tug.org/texlive/trunk@45129 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/source/latex/media9/media9.tex')
-rw-r--r--Master/texmf-dist/source/latex/media9/media9.tex6
1 files changed, 4 insertions, 2 deletions
diff --git a/Master/texmf-dist/source/latex/media9/media9.tex b/Master/texmf-dist/source/latex/media9/media9.tex
index 9e4f88c82df..d2e30555825 100644
--- a/Master/texmf-dist/source/latex/media9/media9.tex
+++ b/Master/texmf-dist/source/latex/media9/media9.tex
@@ -106,13 +106,15 @@ Flash Player supports the efficient H.264 codec for video compression. MP4/H.264
\begin{center}
\begin{Verbatim}
ffmpeg -i video.avi -vf scale="trunc(iw/2)*2:trunc(ih/2)*2"
- -c:v libx264 -profile:v high -pix_fmt yuv420p -g 30 -r 30 video.mp4
+ -c:v libx264 -profile:v high -pix_fmt yuv420p
+ -g 30 -r 30 video.mp4
\end{Verbatim}
\end{center}
From a sequence \verb+frame-0.png+, \verb+frame-1.png+, ... of bitmap files, an MP4 video is produced by
\begin{Verbatim}
ffmpeg -i frame-%d.png -vf scale="trunc(iw/2)*2:trunc(ih/2)*2"
- -c:v libx264 -profile:v high -pix_fmt yuv420p -g 30 -r 30 video.mp4
+ -c:v libx264 -profile:v high -pix_fmt yuv420p
+ -g 30 -r 30 video.mp4
\end{Verbatim}
Both examples insert a key frame (option `\verb+-g+') at every second since the frame rate is set to 30 fps. The video encoder requires even pixel numbers in both dimensions which is ensured by adding `\verb+-vf scale="..."+' to the option list.