I found a way for modifying captions suitably for my need using captioner
(thanks to @stephhazlitt and @jcblum). I mentioned them here. Though it still does not solve the problem of automation (I have been recommended against it there), I'm marking this thread to be solved.
2 Likes