algin code with ffmpeg2.5