ffmpeg and motion source code