Ask Your Question

Rafa's profile - activity

2015-02-17 10:33:35 -0600 received badge  Editor (source)
2015-02-17 10:33:00 -0600 asked a question Stabilize saved video on iOS

I'm trying to use the script below to stabilize a saved video in my iOS project:

https://github.com/Itseez/opencv/blob...

However when it attempts to open the video Ptr<VideoFileSource> source = makePtr<VideoFileSource>(inputPath); it throws the following error:

OpenCV Error: No Error (can't open file: file:///private/var/mobile/Containers/Data/Application/D7312D3B-35DD-4292-9781-4C5D04CF62D4/tmp/output.mp4) in reset, file /Users/rafa/projects/opencv/modules/videostab/src/frame_source.cpp, line 71
error: /Users/rafa/projects/opencv/modules/videostab/src/frame_source.cpp:71: error: (0) can't open file: file:///private/var/mobile/Containers/Data/Application/D7312D3B-35DD-4292-9781-4C5D04CF62D4/tmp/output.mp4 in function reset

And I have no clue why, have anyone faced this issue and can help? Thanks

2015-02-17 00:48:20 -0600 asked a question Error on attempt to open a video file

I'm trying to use videostab's OnePassStabilizer, but when I attempt to open the file that the user just created, I throws an exception.

Here is the code I'm using to open the file:

+ (void)oneStepProcessing:(NSURL *)url {
    string fileUrl = url.absoluteString.UTF8String;
    VideoFileSource *source = new VideoFileSource(fileUrl);

It throws this error:

OpenCV Error: No Error (can't open file: file:///private/var/mobile/Containers/Data/Application/D6BE61F3-4B12-41CA-8490-82AC5C0941/tmp/output.mp4) in reset, file $HOME/opencv/modules/videostab/src/frame_source.cpp, line 71

libc++abi.dylib: terminating with uncaught exception of type  cv::Exception: $HOME/opencv/modules/videostab/src/frame_source.cpp:71: error: (0) can't open file: file:///private/var/mobile/Containers/Data/Application/D6BE61F3-4B12-41CA-8490-82AC5C0941/tmp/output.mp4 in function reset

I've used the master branch of OpenCV to build opencv2.framework for iOS and added it to my project.

I've just started to use OpenCV, so I don't know much.

Does anyone know what is the issue here?

Thanks.