That will be because OpenCV will be using the FFMpeg api slightly differently to the ffmpeg application.