Complete version 1(using ffmpeg library) with makefile