I was having issues using grep on a string variable, I got it figured out though. I'm kinda renewing your work you did a while ago making a bash script to run comskip and videoredu, except I'm using all free software to accomplish the same. Its not complete yet, but you can see it on the linux forums