Improved parameters validation in video_example, added support for both seam_merging and seam_carving method