makeptr<VideoFileSource>(inputpath) does not showing the input file path

asked 2017-04-04 15:51:14 -0600

jg2832 gravatar image

I was trying to do stabilization of video using this link as reference github.com/opencv/opencv/blob/master/samples/cpp/videostab.cpp but the code breaks in the following line (line number 369) in Android platform.

Ptr<VideoFileSource> source = makePtr<VideoFileSource>(inputPath)

It shows the following error even though the file is presnt in the inputpath location:

Error: CV_Error(0, "can't open file: [inputpath])

I am using opencv for android version 3.2.0. Can anyone please tell me how to resolve this issue. Thanks in advance.

edit retag flag offensive close merge delete

Comments

are you aware, that on android only avi files with MJPG encoding are supported ?

berak gravatar imageberak ( 2017-04-04 20:55:22 -0600 )edit