Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Does OpenCV capture/write audio to video??

Hi,

I was trying to capture frames from one video and write them to a new video file using VideoCapture and VideoWriter, I could get AVI and MP4 videos after trying different FOURCC such as "XVID", "FMP4", "MP4V" (For MP4) and "IYUV" (AVI). The problem is that the video I get has no audio, just video, so is OpenCV just for image related operations (No audio involved)? What is the purpose of VideoWriter if you were going to create a video with no audio (80% of videos have audio... If not more)?

Thanks in advance!