ffmosh
these scripts will most likely act non-deterministically
the best advice from me is to consider them as a template and play around with them, edit them, change the parameters until you are satisfied with the output
and most importantly have fun ^_^