#

Listato 19

Costruiamo tutti i menu con le actions.
 
rem ----------------------------------------
rem DVD authoring suite
rem creimg2.bat
rem (c) copyright 2005-2009 Roberto Ceccarelli
rem ----------------------------------------

rem -- maschera per immagini widescreen

set name=wide
convert xc:transparent -resize 224X126! -bordercolor green -compose copy -border 10 empty.png
convert xc:transparent -resize 1024X576! empty.png -geometry +150+215 -composite -sample 720x576! work\%name%_169_mask.png
convert xc:transparent -resize 1024X576! empty.png -geometry +150+215 -composite -sample 720x432! work\%name%_page_43_mask.png
convert xc:transparent -resize 720X576! work\%name%_page_43_mask.png -geometry +0+72 -composite work\%name%_43_mask.png

rem -- creazione files spumux

makespumuxactions /filename:work\%name%_43 /outputaspect:normal
makespumuxactions /filename:work\%name%_169
makespumuxactions /filename:work\%name%_43 /outputaspect:normal /sequence:first
makespumuxactions /filename:work\%name%_169 /sequence:first
makespumuxactions /filename:work\%name%_43 /outputaspect:normal /sequence:last
makespumuxactions /filename:work\%name%_169 /sequence:last

rem -- maschera per immagini normali

set name=normal
convert xc:transparent -resize 168X126! -bordercolor green -compose copy -border 10 empty.png
convert xc:transparent -resize 1024X576! empty.png -geometry +178+215 -composite -sample 720x576!  work\%name%_169_mask.png
convert xc:transparent -resize 1024X576! empty.png -geometry +178+215 -composite -sample 720x432!  work\%name%_page_43_mask.png
convert xc:transparent -resize 720X576! work\%name%_page_43_mask.png -geometry +0+72 -composite  work\%name%_43_mask.png

rem -- creazione files spumux

makespumuxactions /filename:work\%name%_43 /outputaspect:normal /inputaspect:normal
makespumuxactions /filename:work\%name%_169 /inputaspect:normal
makespumuxactions /filename:work\%name%_43 /outputaspect:normal /sequence:first /inputaspect:normal
makespumuxactions /filename:work\%name%_169 /sequence:first /inputaspect:normal

rem -- montaggio immagini per selezione scene

set name=scene
cscript makemenuimages.wsf /filename:%name% /backfile:sfondo.jpg /font:verdanaz.ttf /color:red /pointsize:28
for /L %%n in (1,1,9) do ffmpeg -loop_input -i work\%name%%%n.jpg -t 2 -vcodec mpeg2video -f mpeg2video -r 25 -g 50 -qscale 1 -aspect 16:9 -b 8M work\%name%%%n.m2v
for /L %%n in (1,1,9) do f:\programmi\dvdauthor\mplex -f 8 -o work\%name%%%n.mpg f:\programmi\dvdauthor\silence.ac3 work\%name%%%n.m2v
del work\%name%*.m2v
spumux -s 0 work\wide_169_first.xml < work\%name%1.mpg | spumux -s 1 work\wide_43_first.xml > %name%1.mpg
spumux -s 0 work\wide_169_last.xml < work\%name%9.mpg | spumux -s 1 work\wide_43_last.xml > %name%9.mpg
for /L %%n in (2,1,8) do spumux -s 0 work\wide_169_inner.xml < work\%name%%%n.mpg | spumux -s 1 work\wide_43_inner.xml > %name%%%n.mpg
 

rem -- montaggio immagini per selezione trailers

set name=trailers
makemenuimages /filename:trailers /backfile:sfondo.jpg /font:verdanaz.ttf /pointsize:28 /color:red
for /L %%n in (1,1,20) do ffmpeg -loop_input -i work\%name%%%n.jpg -t 2 -vcodec mpeg2video -f mpeg2video -r 25 -g 50 -qscale 1 -aspect 16:9 -b 8M work\%name%%%n.m2v
for /L %%n in (1,1,20) do f:\programmi\dvdauthor\mplex -f 8 -o work\%name%%%n.mpg f:\programmi\dvdauthor\silence.ac3 work\%name%%%n.m2v
del work\%name%*.m2v
spumux -s 0 work\normal_169_first.xml < work\%name%1.mpg | spumux -s 1 work\normal_43_first.xml > %name%1.mpg
spumux -s 0 work\wide_169_last.xml < work\%name%20.mpg | spumux -s 1 work\wide_43_last.xml > %name%20.mpg
for /L %%n in (2,1,6) do spumux -s 0 work\normal_169_inner.xml < work\%name%%%n.mpg | spumux -s 1 work\normal_43_inner.xml > %name%%%n.mpg
for /L %%n in (7,1,19) do spumux -s 0 work\wide_169_inner.xml < work\%name%%%n.mpg | spumux -s 1 work\wide_43_inner.xml > %name%%%n.mpg
 
Inizio pagina
Home page
 
Creative Commons  License BY-NC-SA
Ove non diversamente specificato i contenuti del sito sono rilasciati con licenza Creative Commons BY-NC-SA 4.0 

Copyright © 2007-2020 The Strawberry Field - Roberto Ceccarelli