Ask Your Question
-1

Does OpenCV capture/write audio to video??

asked 2016-08-31 10:38:29 -0600

AssemblerX86 gravatar image

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!

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
2

answered 2016-08-31 10:45:26 -0600

berak gravatar image

updated 2016-08-31 10:46:37 -0600

no, it does not.

opencv is a computer-vision library, not a general video editing tool.

please use another library instead (libvlc, ffmpeg, gstreamer)

edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2016-08-31 10:38:29 -0600

Seen: 17,774 times

Last updated: Aug 31 '16