#

Listato 4

La creazione dei menu di testo
 
rem ----------------------------------------
rem DVD authoring suite
rem createsti.bat
rem (c) copyright 2005-2007 Roberto Ceccarelli
rem ----------------------------------------

rem -- creazione immagini vuote  

convert xc:transparent -resize 720X576! emptyframe.png
convert xc:transparent -resize 610X74! emptytitle.png
convert xc:transparent -resize 600X64! -bordercolor green -compose copy -border 5 empty.png

rem -- voci di menu

convert emptytitle.png run.png -geometry +5+5 -composite -font Arial -pointsize 30 -draw "gravity west fill black text 76,1 'Inizio film' fill white text 75,0 'Inizio film'" playfilm.png
convert emptytitle.png filefind.png -geometry +5+5 -composite -font Arial -pointsize 30 -draw "gravity west fill black text 76,1 'Selezione scene' fill white text 75,0 'Selezione scene'" scene.png
convert emptytitle.png kfm.png -geometry +5+5 -composite -font Arial -pointsize 30 -draw "gravity west fill black text 76,1 'Contenuti speciali' fill white text 75,0 'Contenuti speciali'" special.png
convert emptytitle.png gohome.png -geometry +5+5 -composite -font Arial -pointsize 30 -draw "gravity west fill black text 76,1 'Menu principale' fill white text 75,0 'Menu principale'" gomain.png
convert emptytitle.png trash.png -geometry +5+5 -composite -font Arial -pointsize 30 -draw "gravity west fill black text 76,1 'Scena eliminata' fill white text 75,0 'Scena eliminata'" eliminata.png
convert emptytitle.png thumbnail.png -geometry +5+5 -composite -font Arial -pointsize 30 -draw "gravity west fill black text 76,1 'Il trailer' fill white text 75,0 'Il trailer'" trailer.png
convert emptytitle.png run.png -geometry +5+5 -composite -font Arial -pointsize 30 -draw "gravity west fill black text 76,1 'Riprendi il film' fill white text 75,0 'Riprendi il film'" resume.png

rem -- creazione menu

convert figura1.jpg playfilm.png -geometry +64+150 -composite scene.png -geometry +64+225 -composite special.png -geometry +64+300 -composite -font Arial -pointsize 50 -draw "gravity north fill black text 1,61 'Menu principale' fill white text 0,60 'Menu principale'" main_1.jpg
convert emptyframe.png empty.png -geometry +64+150 -composite empty.png -geometry +64+225 -composite empty.png -geometry +64+300 -composite main_1_mask.png
convert figura1.jpg eliminata.png -geometry +64+150 -composite trailer.png -geometry +64+225 -composite gomain.png -geometry +64+300 -composite -font Arial -pointsize 50 -draw "gravity north fill black text 1,61 'Contenuti speciali' fill white text 0,60 'Contenuti speciali'" main_2.jpg
convert emptyframe.png empty.png -geometry +64+150 -composite empty.png -geometry +64+225 -composite empty.png -geometry +64+300 -composite main_2_mask.png
convert figura1.jpg gomain.png -geometry +64+150 -composite scene.png -geometry +64+225 -composite resume.png -geometry +64+300 -composite -font Arial -pointsize 50 -draw "gravity north fill black text 1,61 'Menu play' fill white text 0,60 'Menu play'" main_3.jpg
convert emptyframe.png empty.png -geometry +64+150 -composite empty.png -geometry +64+225 -composite empty.png -geometry +64+300 -composite main_3_mask.png

rem -- creazione flussi mpeg

set name=main_1
ffmpeg -loop_input -i %name%.jpg -t 2 -vcodec mpeg2video -f mpeg2video -r 25 -aspect 4:3 -b 5M %name%.m2v
f:\programmi\dvdauthor\mplex -f 8 -o %name%.mpg f:\programmi\dvdauthor\silence.ac3 %name%.m2v
set name=main_2
ffmpeg -loop_input -i %name%.jpg -t 2 -vcodec mpeg2video -f mpeg2video -r 25 -aspect 4:3 -b 5M %name%.m2v
f:\programmi\dvdauthor\mplex -f 8 -o %name%.mpg f:\programmi\dvdauthor\silence.ac3 %name%.m2v
set name=main_3
ffmpeg -loop_input -i %name%.jpg -t 2 -vcodec mpeg2video -f mpeg2video -r 25 -aspect 4:3 -b 5M %name%.m2v
f:\programmi\dvdauthor\mplex -f 8 -o %name%.mpg f:\programmi\dvdauthor\silence.ac3 %name%.m2v
del *.m2v

rem -- appendiamo i sottotitoli per il menu

spumux main_1.xml <main_1.mpg >main_1_menu.mpg
spumux main_2.xml <main_2.mpg >main_2_menu.mpg
spumux main_3.xml <main_3.mpg >main_3_menu.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