Finally was able to get the video working. The video playback is soundless since OpenCV doesn't handle sound and the playback is also a little fast.