code with video overlay, gnuplot, csv plot with new threshold