| 1 | #!/usr/bin/perl -w | ||
| 2 | |||
| 3 | use strict; | ||
| 4 | use FFMPEG::Effects; | ||
| 5 | |||
| 6 | my $textfile = "~/Title-Text-File.txt"; | ||
| 7 | |||
| 8 | |||
| 9 | my $effect = FFMPEG::Effects->new('debug=0'); | ||
| 10 | |||
| 11 | |||
| 12 | $effect->TitleSplash( | ||
| 13 | "size=cif", | ||
| 14 | "framerate=30", | ||
| 15 | "fadeinframes=55", | ||
| 16 | "fadeoutframes=55", | ||
| 17 | "holdframes=30", | ||
| 18 | "titleframes=160", | ||
| 19 | "justify=center", | ||
| 20 | "fontcolor=yellow", | ||
| 21 | "color=black", | ||
| 22 | "font=Helvetica", | ||
| 23 | "textfile=$textfile", | ||
| 24 | ); | ||
| 25 |