Frame differencing with FFmpeg