updated to use ffmpeg