Ask Your Question
0

OpenCV without FFMPEG and GStreamer does not decode a media file

asked 2017-10-19 06:27:33 -0600

mbaros gravatar image

updated 2017-10-19 06:28:19 -0600

Hi,

Recently, I built the OpenCV 3.3 under Windows with FFMPEG and GStreamer disabled. I noticed that with_DSHOW flag was enabled meaning that even without FFMPEG and GStreamer, OpenCV has to be able to import and decode basic media files (mp4, mov) using DirectShow.

Is there anyone who tried similar experiments and might know why it is not working? Maybe video decoding is still unavailable through DirectShow or I am missing something?

Thanks

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
1

answered 2017-10-19 06:48:12 -0600

berak gravatar image

updated 2017-10-19 06:49:39 -0600

indeed, while DShow itself is able to read video files, the resp. opencv wrappers don't make any attempt to do so.

(VideoCapture_DShow() has only a constructor for a cam id)

if you want to be able to read video files or url streams, you should at least enable WITH_FFMPEG, and have (the supplied) opencv_ffmpeg.dll around.

edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2017-10-19 06:27:33 -0600

Seen: 1,364 times

Last updated: Oct 19 '17