texlive[45129] Master/texmf-dist: media9 (25aug17)

commits+karl at tug.org commits+karl at tug.org
Sat Aug 26 00:24:59 CEST 2017


Revision: 45129
          http://tug.org/svn/texlive?view=revision&revision=45129
Author:   karl
Date:     2017-08-26 00:24:59 +0200 (Sat, 26 Aug 2017)
Log Message:
-----------
media9 (25aug17)

Modified Paths:
--------------
    trunk/Master/texmf-dist/doc/latex/media9/ChangeLog
    trunk/Master/texmf-dist/doc/latex/media9/media9.pdf
    trunk/Master/texmf-dist/source/latex/media9/media9.tex
    trunk/Master/texmf-dist/tex/latex/media9/media9.sty
    trunk/Master/texmf-dist/tex/latex/media9/pdfbase.sty

Modified: trunk/Master/texmf-dist/doc/latex/media9/ChangeLog
===================================================================
--- trunk/Master/texmf-dist/doc/latex/media9/ChangeLog	2017-08-25 22:24:43 UTC (rev 45128)
+++ trunk/Master/texmf-dist/doc/latex/media9/ChangeLog	2017-08-25 22:24:59 UTC (rev 45129)
@@ -1,3 +1,9 @@
+2017-08-25
+	* v0.85 : media9.sty
+	* v0.17 : pdfbase.sty
+	* fix : fixing output routine in pdfbase.sty: small vertical offset of page
+	content when loading package ocgx2
+
 2017-08-23
 	* v0.84 : media9.sty
 	* v0.16 : pdfbase.sty

Modified: trunk/Master/texmf-dist/doc/latex/media9/media9.pdf
===================================================================
(Binary files differ)

Modified: trunk/Master/texmf-dist/source/latex/media9/media9.tex
===================================================================
--- trunk/Master/texmf-dist/source/latex/media9/media9.tex	2017-08-25 22:24:43 UTC (rev 45128)
+++ trunk/Master/texmf-dist/source/latex/media9/media9.tex	2017-08-25 22:24:59 UTC (rev 45129)
@@ -106,13 +106,15 @@
 \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.
 

Modified: trunk/Master/texmf-dist/tex/latex/media9/media9.sty
===================================================================
--- trunk/Master/texmf-dist/tex/latex/media9/media9.sty	2017-08-25 22:24:43 UTC (rev 45128)
+++ trunk/Master/texmf-dist/tex/latex/media9/media9.sty	2017-08-25 22:24:59 UTC (rev 45129)
@@ -37,8 +37,8 @@
 \RequirePackage{xparse}
 \RequirePackage{atbegshi}
 
-\def\g at mix@date at tl{2017/08/23}
-\def\g at mix@version at tl{0.84}
+\def\g at mix@date at tl{2017/08/25}
+\def\g at mix@version at tl{0.85}
 
 \def\g at mix@liiikerneldate{2017/05/29}
 \def\g at mix@liiipkgdate{2017/05/29}

Modified: trunk/Master/texmf-dist/tex/latex/media9/pdfbase.sty
===================================================================
--- trunk/Master/texmf-dist/tex/latex/media9/pdfbase.sty	2017-08-25 22:24:43 UTC (rev 45128)
+++ trunk/Master/texmf-dist/tex/latex/media9/pdfbase.sty	2017-08-25 22:24:59 UTC (rev 45129)
@@ -128,8 +128,8 @@
 \RequirePackage{expl3}
 \RequirePackage{l3keys2e}
 
-\def\g at pbs@date at tl{2017/08/23}
-\def\g at pbs@version at tl{0.16}
+\def\g at pbs@date at tl{2017/08/25}
+\def\g at pbs@version at tl{0.17}
 
 \ProvidesExplPackage{pdfbase}{\g at pbs@date at tl}{\g at pbs@version at tl}
 {driver independent access to low-level PDF features}
@@ -942,6 +942,7 @@
 }
 
 %modify output routine for output box insertions
+\bool_new:N\l_pbs_is_vertical_bool
 \cs_set_eq:NN\pbs_outputpage_orig:\@outputpage
 \cs_set_nopar:Npn\@outputpage{
   \int_gincr:N\g_pbs_page_int
@@ -948,20 +949,25 @@
   \iow_now:Nx\@mainaux{
     \token_to_str:N\pbs at newkey{pbs at last@page}{\int_use:N\g_pbs_page_int}
   }
-  \vbox_set:Nn\@outputbox{
+  \box_if_vertical:cTF{@outputbox}{
+    \bool_set_true:N\l_pbs_is_vertical_bool
+  }{
+    \bool_set_false:N\l_pbs_is_vertical_bool
+  }
+  \hbox_set:Nn\@outputbox{
     %begin of page
-    \seq_map_inline:Nn\g_pbs_bop_seq{
-      \hbox_overlap_right:n{\vbox_to_zero:n{##1 \vss}}}
+    \hbox_overlap_right:n{\seq_map_inline:Nn\g_pbs_bop_seq{##1}}
     \box_use_clear:N\@outputbox
     %end of page
-    \seq_map_inline:Nn\g_pbs_eop_seq{
-      \hbox_overlap_right:n{\vbox_to_zero:n{\vss ##1}}}
+    \hbox_overlap_right:n{\seq_map_inline:Nn\g_pbs_eop_seq{##1}}
     %end of dvi
     \int_compare:nT{\pbs at last@page=\g_pbs_page_int}{
-      \seq_map_inline:Nn\g_pbs_eod_seq{
-        \hbox_overlap_right:n{\vbox_to_zero:n{\vss ##1}}}
+      \hbox_overlap_right:n{\seq_map_inline:Nn\g_pbs_eod_seq{##1}}
     }
   }
+  \bool_if:NT\l_pbs_is_vertical_bool{
+    \vbox_set:Nn\@outputbox{\box_use_clear:N\@outputbox}
+  }
   %insert /Properties into current page's resources
   \pbs_insert_properties_entry:
   \pbs_outputpage_orig:



More information about the tex-live-commits mailing list