From 0a4c81ff64276411d2a8308cbb0716621103237a Mon Sep 17 00:00:00 2001 From: Karl Berry Date: Fri, 25 Aug 2017 22:24:59 +0000 Subject: media9 (25aug17) git-svn-id: svn://tug.org/texlive/trunk@45129 c570f23f-e606-0410-a88d-b1316a301751 --- Master/texmf-dist/source/latex/media9/media9.tex | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'Master/texmf-dist/source/latex/media9') 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. -- cgit v1.2.3