improved ffmpeg script. add gitignore
fixed compile error with opencv/master(2.5)
fix ffmpeg command line parameters