Opencv error: Unknown error code -10 (Raw image encoder error: Empty JPEG not supported (DNL not supported)

Thank you. But, I we split the video in to frames and then assemble back to video the sound can be heard