Version 1.6 using ffmpeg library; segmentation fault solved