Script file generated from LiVES
desub
1.3
Marco de la Cruz & Salsaman
Remove subtitles|Removing subtitles from|1|1|
desub.py
python2.3
convert
identify
mogrify
composite
_Height of subtitles (%) |2|num0|0|0|100|
Height of subtitles (_pixels)|2|num0|0|0|10000|
Subtitles are at the _top i.e. they're surtitles (only if using the above methods)|0|bool|0|
_Crop|1|bool|1|
_Replace with section from keyframe|1|num0|1|1|10000000|
Subtitle _geometry (WxH+X+Y)|2|string||40|
layout|p1|
layout|p2|
layout|p3|
layout|p6|
layout|hseparator|
layout|"Removal method (select keyframe if specifying geometry)"|
0x0001
0xF0
$top="";
if ($p3) {
$top="-t";
}
if (!$p4) {
$newname=&mkname($p5);
if ($p6) {
$method="-o -g $p6 -k $newname$img_ext";
}
else {
$method="-r -k $newname$img_ext";
}
}
else {
$method="-c";
}
$sh="";
if ($p1) {
$sh="-s '$p1%'";
}
elsif ($p2) {
$sh="-s $p2";
}
system("desub.py -q $method $sh $top -p c -x -e ".substr($out_ext,1)." $in");
init|$p2_max=$height;
init|$p5_max=$last;$p5=$start-1;if (!$p5) {$p5=$end+1; if ($p5>$last) {$p5=1;}}