implemented the generation of video thumbnails using avlib