process video directory by directory