MonoS / SupMover

SupMover - Shift timings and Screen Area of PGS/Sup subtitle
GNU Affero General Public License v3.0
39 stars 4 forks source link

Error parsing cutMerge list #10

Closed cemoon95 closed 5 months ago

cemoon95 commented 7 months ago

When I try to run it with the command SupMover 01.sup 01_edit.sup add_zero cut_merge list "[1-2182] [2182-30048] [37265-51086] [51088-51207] [51210-71970] [71969-77015] [76999-77759]" format secut timemode frame 23.976 fixmode cut

it throws an "Error parsing input" error. The cropping etc. functions work fine, so it's possible I'm interpreting how the cut_merge syntax is supposed to be written out; if so I'd appreciate help on how I'm supposed to write it.

MonoS commented 7 months ago

Hi cemoon95, the problem is in the section format, the pattern [frame-frame] [frame-frame] is not supported, the secut format expect the list in pattern frame-frame;frame-frame, something like this will work add_zero cut_merge list "1-2182;2182-30048;37265-51086;51088-51207;51210-71970;71969-77015;76999-77759" format secut timemode frame 23.976 fixmode cut

Please pay attention the cut_merge functionality is currently non functional as there is a serious bug I've yet to solve, it will only works if there are no consecutive lines in the script, for example something like this won't work image