Script seems to be working producing accurately trimmed seamless output.
Have to do some testing to confirm.