extract ffmpeg cmd to its own method